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

# Async Fetch

> This endpoint fetches the parsed content or status of a previously uploaded file.



## OpenAPI

````yaml POST /async/fetch
openapi: 3.0.1
info:
  title: AnyParser RT API
  description: >-
    A real-time parser designed to extract content from various file formats,
    including PDFs and DOCX files.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://public-api.cambio-ai.com
security:
  - apiKeyAuth: []
paths:
  /async/fetch:
    post:
      summary: Fetch parsed content or status
      description: >-
        This endpoint fetches the parsed content or status of a previously
        uploaded file.
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
          description: Your API key.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                file_id:
                  type: string
                  description: The unique identifier of the file you want to check.
              required:
                - file_id
      responses:
        '200':
          description: File parsed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  markdown:
                    type: object
                    description: The parsed content in markdown format.
                  pageCount:
                    type: integer
                    description: The number of pages in the result.
        '202':
          description: File processing in progress
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: >-
                      Message indicating that the file processing is still in
                      progress.
        '400':
          description: Client error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Description of the client error encountered.
        '403':
          description: Unauthorized access
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Message indicating unauthorized access.
        '404':
          description: File not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Message indicating that the file was not found.
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Detailed server error message.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````