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

# List Documents

> List all [knowledge base](/line/knowledge-base) documents in your organization



## OpenAPI

````yaml /latest.yml GET /agents/documents
openapi: 3.0.1
info:
  title: Cartesia API
  version: 0.0.1
servers:
  - url: https://api.cartesia.ai
    description: Production
security: []
paths:
  /agents/documents:
    get:
      tags:
        - Documents
      summary: List Documents
      description: >-
        List all [knowledge base](/line/knowledge-base) documents in your
        organization
      operationId: documents_list
      parameters:
        - $ref: '#/components/parameters/CartesiaVersionHeader'
        - name: starting_after
          in: query
          description: >-
            A cursor for pagination. Pass the ID of the last document from the
            previous page to fetch the next page.
          required: false
          schema:
            type: string
        - name: ending_before
          in: query
          description: >-
            A cursor for pagination. Pass the ID of the first document from the
            previous page to fetch the previous page.
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: >-
            The number of documents to return per page, ranging between 1 and
            100. Defaults to 10.
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
      responses:
        '200':
          description: A paginated list of documents.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDocumentsResponse'
      security:
        - APIKeyAuth: []
components:
  parameters:
    CartesiaVersionHeader:
      name: Cartesia-Version
      in: header
      description: API version header.
      required: true
      schema:
        type: string
        format: date
        example: '2026-03-01'
        enum:
          - '2026-03-01'
  schemas:
    ListDocumentsResponse:
      title: ListDocumentsResponse
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/DocumentResponse'
          description: The paginated list of documents.
        has_more:
          type: boolean
          description: Whether more results are available after this page.
        next_page:
          type: string
          nullable: true
          description: >-
            An ID that can be passed as `starting_after` or `ending_before` to
            get the next page.
      required:
        - data
        - has_more
    DocumentResponse:
      title: DocumentResponse
      type: object
      properties:
        id:
          type: string
          description: The ID of the document.
        name:
          type: string
          nullable: true
          description: The document's display name, or `null` if unnamed.
        content:
          type: string
          description: The full document text.
        created_at:
          type: string
          format: date-time
          description: When the document was uploaded.
        metadata:
          type: object
          additionalProperties:
            type: string
          description: User-defined string-keyed metadata.
      required:
        - id
        - name
        - content
        - created_at
        - metadata
  securitySchemes:
    APIKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Cartesia API key (`sk_car_...`). Get one at
        [play.cartesia.ai/keys](https://play.cartesia.ai/keys).

````