> ## Documentation Index
> Fetch the complete documentation index at: https://docs.frictio.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Collections

> ワークスペース内で公開中かつ有効なコレクションを一覧で取得します。
作成日時の降順、同時刻の場合はIDの降順で安定して返却されます。
非公開、無効、別ワークスペースのコレクションは返却されません。




## OpenAPI

````yaml /openapi.yaml get /v1/collections
openapi: 3.1.0
info:
  title: Frictio Public API
  version: 1.0.0-beta
servers:
  - url: https://public-api.frictio.ai
security:
  - ApiKeyAuth: []
paths:
  /v1/collections:
    get:
      summary: List Collections
      description: |
        ワークスペース内で公開中かつ有効なコレクションを一覧で取得します。
        作成日時の降順、同時刻の場合はIDの降順で安定して返却されます。
        非公開、無効、別ワークスペースのコレクションは返却されません。
      operationId: listCollections
      parameters:
        - $ref: '#/components/parameters/workspaceId'
        - name: limit
          in: query
          required: false
          description: 取得件数の上限（1〜50、デフォルト30）
          schema:
            type: integer
            minimum: 1
            maximum: 50
            default: 30
        - name: cursor
          in: query
          required: false
          description: ページネーションカーソル。レスポンスの `next_cursor` をそのまま指定してください。
          schema:
            type: string
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - pagination
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Collection'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    workspaceId:
      name: X-Workspace-Id
      in: header
      required: true
      description: ワークスペースID
      schema:
        type: string
      example: e1f2a3b4-...
  schemas:
    Collection:
      type: object
      description: ワークスペース内で公開中かつ有効なコレクション
      additionalProperties: false
      required:
        - id
        - name
        - description
        - visibility
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
          description: コレクションID
          example: d3d5273b-b103-4a5a-b5d0-bd95e5a81f87
        name:
          type: string
          description: コレクション名
          example: ACME renewal
        description:
          type: string
          description: コレクションの説明
          example: ACME更新案件の会議
        visibility:
          type: string
          description: コレクションの公開範囲。初版では `workspace` のみです。
          enum:
            - workspace
        created_at:
          type: string
          format: date-time
          description: 作成日時（UTC）
          example: '2026-07-01T03:00:00.000Z'
        updated_at:
          type: string
          format: date-time
          description: 更新日時（UTC）
          example: '2026-07-10T08:30:00.000Z'
    Pagination:
      type: object
      required:
        - next_cursor
      properties:
        next_cursor:
          type:
            - string
            - 'null'
          description: |
            次ページ取得用カーソル。
            nullの場合、次ページはありません。
          example: eyJpZCI6MTIzfQ==
    Error:
      type: object
      required:
        - statusCode
        - message
      properties:
        statusCode:
          type: integer
          description: HTTPステータスコード
          example: 404
        message:
          type: string
          description: エラーメッセージ
          example: Meeting not found
        error:
          type: string
          description: |
            エラー種別。メッセージ文字列付きで例外が生成された場合のみ含まれます。
          example: Not Found
  responses:
    BadRequest:
      description: クエリパラメータまたはIDの形式が不正です
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 400
            message: Bad Request
            error: Bad Request
    Unauthorized:
      description: APIキーが無効、失効、期限切れ、または未指定です
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalidApiKey:
              summary: 無効な API キー
              value:
                statusCode: 401
                message: Invalid API key
                error: Unauthorized
            missingApiKey:
              summary: API キー未指定
              value:
                statusCode: 401
                message: Missing X-Api-Key header
                error: Unauthorized
    TooManyRequests:
      description: レートリミット超過
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 429
            message: Too Many Requests
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.