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

# Submit Document

> Submit a document for scoring and analysis by providing a publicly accessible URL to the PDF file.

## Document Requirements

Before submitting documents, ensure they meet these requirements:

* **Supported formats:** PDF
* **Maximum file size:** 100MB


## OpenAPI

````yaml /api-reference/openapi.json post /scoring/submitDocument
openapi: 3.0.3
info:
  title: EmberQA Call Scoring API
  description: >-
    Submit call recordings programmatically for scoring and analysis. This API
    allows you to integrate call scoring directly into your existing systems and
    workflows.


    ## Authentication

    All requests require a Bearer token in the Authorization header. API keys
    are provided on the EmberQA dashboard under the "Integrations" tab.


    ## Audio Requirements

    - **Supported formats:** MP3, WAV

    - **Maximum file size:** 100MB

    - **Audio quality:** Minimum 8kHz sample rate recommended
  version: 1.0.0
  contact:
    name: EmberQA Support
    url: https://emberqa.com
servers:
  - url: https://api.emberqa.com/api
    description: Production server
security:
  - BearerAuth: []
paths:
  /scoring/submitDocument:
    post:
      tags:
        - Scoring
      summary: Submit Document
      description: >-
        Submit a document for scoring and analysis by providing a publicly
        accessible URL to the PDF file.
      operationId: submitDocument
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentUrlRequest'
            examples:
              single_url:
                summary: Single document URL
                value:
                  agent_name: John D
                  media_url: https://example.com/document.pdf
                  metadata:
                    example_property: example_value
                    example_property2: example_value2
              multiple_urls:
                summary: Multiple document URLs
                value:
                  agent_name: John D
                  media_url:
                    - https://example.com/document1.pdf
                    - https://example.com/document2.pdf
                  metadata:
                    example_property: example_value
                    example_property2: example_value2
      responses:
        '202':
          description: File Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
              example:
                message: File Accepted
        '400':
          description: Bad Request - Invalid parameters or file format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '413':
          description: Payload Too Large - File exceeds 100MB limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '415':
          description: Unsupported Media Type - File format not supported
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    DocumentUrlRequest:
      type: object
      required:
        - media_url
      properties:
        agent_name:
          type: string
          description: Name of the agent who handled the interaction
          example: John D
        media_url:
          oneOf:
            - type: string
              format: uri
              example: https://example.com/document.pdf
            - type: array
              items:
                type: string
                format: uri
              example:
                - https://example.com/document1.pdf
                - https://example.com/document2.pdf
          description: >-
            Publicly accessible URL(s) to the PDF file(s) (max 100MB each). Can
            be a single URL string or an array of URL strings.
        metadata:
          type: object
          additionalProperties:
            type: string
          description: Key-value pairs for additional document metadata
          example:
            example_property: example_value
            example_property2: example_value2
    SuccessResponse:
      type: object
      properties:
        message:
          type: string
          example: File Accepted
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message describing what went wrong
        details:
          type: string
          description: Additional details about the error (optional)
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key obtained from the EmberQA dashboard under the "Integrations" tab

````