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

# Retrieve a document

> Retrieve a document by its unique identifier for the authenticated team.



## OpenAPI

````yaml get /documents/{id}
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /documents/{id}:
    get:
      tags:
        - Documents
      summary: Retrieve a document
      description: Retrieve a document by its unique identifier for the authenticated team.
      operationId: getDocumentById
      parameters:
        - schema:
            type: string
            nullable: true
          required: true
          in: path
          name: id
      responses:
        '200':
          description: Retrieve a document by its unique identifier
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier for the document.
                    example: doc_1234567890abcdef
                  title:
                    type: string
                    nullable: true
                    description: Title of the document.
                    example: Invoice April 2024
                  pathTokens:
                    type: array
                    items:
                      type: string
                    description: Array of path tokens representing the document's location.
                    example:
                      - invoices
                      - '2024'
                      - april
                      - invoice-123.pdf
                  metadata:
                    type: object
                    nullable: true
                    properties:
                      size:
                        type: number
                        nullable: true
                        description: Size of the document in bytes.
                        example: 204800
                      mimetype:
                        type: string
                        nullable: true
                        description: MIME type of the document.
                        example: application/pdf
                    required:
                      - size
                      - mimetype
                    description: Metadata about the document.
                  processingStatus:
                    type: string
                    description: Processing status of the document.
                    example: processed
                  summary:
                    type: string
                    nullable: true
                    description: Summary or extracted content from the document.
                    example: Invoice for April 2024, total $1,200.00
                  date:
                    type: string
                    nullable: true
                    description: Date associated with the document (ISO 8601).
                    example: '2024-04-30'
                required:
                  - id
                  - title
                  - pathTokens
                  - metadata
                  - processingStatus
                  - summary
                  - date
                description: A single document object response.
                example:
                  id: doc_1234567890abcdef
                  title: Invoice April 2024
                  pathTokens:
                    - invoices
                    - '2024'
                    - april
                    - invoice-123.pdf
                  metadata:
                    size: 204800
                    mimetype: application/pdf
                  processingStatus: processed
                  summary: Invoice for April 2024, total $1,200.00
                  date: '2024-04-30'
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

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