> ## 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.

# Parse

> This API endpoint parses the uploaded file and returns the content in markdown format.



## OpenAPI

````yaml POST /parse
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:
  /parse:
    post:
      summary: Parse a file and return content in markdown format
      description: >-
        This API endpoint parses the uploaded file and returns the content in
        markdown format.
      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_content:
                  type: string
                  description: The base64 encoded content of the file to be parsed.
                file_type:
                  type: string
                  description: The type of the file. Supported values are 'pdf' and 'docx'.
                  enum:
                    - pdf
                    - docx
              required:
                - file_content
                - file_type
      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.
        '429':
          description: Rate limit exceeded. Only 1 request per second is allowed.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````