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

# Read a parsed document owned by this API key

> Use this operation to read a parsed document owned by this api key. Authenticate with Authorization: Bearer <AGENTBODY_API_KEY>. Correct a 400 invalid-input error; do not retry unchanged.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/documents/{document_id}
openapi: 3.1.0
info:
  description: >-
    Direct authenticated APIs for public social data, people data, transcripts,
    documents, text, and SEO. Send an API key as a Bearer token. Responses never
    include provider credentials or raw provider payloads.
  license:
    name: Proprietary
    url: https://agentbody.io
  title: AgentBody API
  version: '2026-08-19'
servers:
  - url: https://api.agentbody.io
security:
  - bearerAuth: []
paths:
  /v1/documents/{document_id}:
    get:
      tags:
        - documents
      summary: Read a parsed document owned by this API key
      description: >-
        Use this operation to read a parsed document owned by this api key.
        Authenticate with Authorization: Bearer <AGENTBODY_API_KEY>. Correct a
        400 invalid-input error; do not retry unchanged.
      operationId: get_v1_documents_document_id
      parameters:
        - in: path
          name: document_id
          required: true
          schema:
            format: uuid
            type: string
        - in: query
          name: page_start
          schema:
            minimum: 1
            type: integer
        - in: query
          name: page_end
          schema:
            maximum: 100
            minimum: 1
            type: integer
        - in: query
          name: markdown_start
          schema:
            minimum: 0
            type: integer
        - in: query
          name: markdown_end
          schema:
            minimum: 0
            type: integer
      responses:
        '200':
          $ref: '#/components/responses/DocumentResultSuccess'
        '400':
          content:
            application/json:
              example:
                error:
                  code: INVALID_ARGUMENT
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: INVALID_ARGUMENT
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Correct the input; do not retry unchanged.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '401':
          content:
            application/json:
              example:
                error:
                  code: UNAUTHENTICATED
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: UNAUTHENTICATED
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: Configure a valid API key; do not retry unchanged.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
        '404':
          content:
            application/json:
              example:
                error:
                  code: NOT_FOUND
                  message: example error
              schema:
                additionalProperties: false
                properties:
                  error:
                    additionalProperties: false
                    properties:
                      code:
                        const: NOT_FOUND
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                    type: object
                required:
                  - error
                type: object
          description: >-
            Use a document_id owned by this API key account; do not retry
            unchanged.
          headers:
            X-Request-Id:
              description: Gateway request identifier for support and audit.
              schema:
                format: uuid
                type: string
components:
  responses:
    DocumentResultSuccess:
      content:
        application/json:
          example:
            blocks: []
            document_id: example_value
            markdown: example_value
            markdown_spans: []
            page_end: 0
            page_start: 0
            pages: []
          schema:
            $ref: '#/components/schemas/DocumentResult'
      description: Stored parsed document result.
      headers:
        X-Request-Id:
          description: Gateway request identifier for support and audit.
          schema:
            format: uuid
            type: string
  schemas:
    DocumentResult:
      additionalProperties: false
      properties:
        blocks:
          items:
            $ref: '#/components/schemas/DocumentBlock'
          type: array
        document_id:
          type: string
        markdown:
          type: string
        markdown_spans:
          items:
            $ref: '#/components/schemas/DocumentMarkdownSpan'
          type: array
        page_end:
          type: integer
        page_start:
          type: integer
        pages:
          items:
            $ref: '#/components/schemas/DocumentPage'
          type: array
      required:
        - document_id
        - page_start
        - page_end
        - pages
        - markdown
        - blocks
        - markdown_spans
      type: object
    DocumentBlock:
      additionalProperties: false
      properties:
        bbox:
          items:
            type: integer
          type: array
        id:
          type: string
        page:
          type: integer
        text:
          type: string
        type:
          type: string
      required:
        - id
        - type
        - text
        - page
        - bbox
      type: object
    DocumentMarkdownSpan:
      additionalProperties: false
      properties:
        bbox:
          items:
            type: integer
          type: array
        block_id:
          type: string
        markdown_end:
          type: integer
        markdown_start:
          type: integer
        page:
          type: integer
      required:
        - markdown_start
        - markdown_end
        - block_id
        - page
        - bbox
      type: object
    DocumentPage:
      additionalProperties: false
      properties:
        page_num:
          type: integer
        text:
          type: string
      required:
        - page_num
        - text
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````