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

# Process exams in batch

> Send one or more exam files to be processed and returns the creation result. Processing is performed in batch and asynchronously, so it is necessary to query the exam after creation or have a webhook configured to receive the data.



## OpenAPI

````yaml docs/en/openapi.yaml post /exams/batch
openapi: 3.1.0
info:
  title: DAAI - APIS
  version: 1.0.0
servers:
  - url: https://apim.doctorassistant.ai/api/sandbox
security:
  - ApiKeyAuth: []
tags:
  - name: Consultations
  - name: Exams
  - name: Summaries
paths:
  /exams/batch:
    post:
      tags:
        - Exams
      summary: Process exams in batch
      description: >-
        Send one or more exam files to be processed and returns the creation
        result. Processing is performed in batch and asynchronously, so it is
        necessary to query the exam after creation or have a webhook configured
        to receive the data.
      parameters:
        - name: x-daai-professional-id
          in: header
          required: true
          schema:
            type: string
          description: Professional ID responsible for processing the exams
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                files:
                  type: array
                  items:
                    type: string
                    format: binary
                  maxItems: 10
                  description: >-
                    Exam files for processing - accepts images (JPG, PNG, etc.)
                    and PDF (maximum 10 files, 25MB each)
                metadata:
                  type: string
                  description: Additional metadata in JSON string format (optional)
                  example: '{"patient_id": "123456", "exam_type": "blood_test"}'
              required:
                - files
      responses:
        '200':
          description: Exams processed successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    fileName:
                      type: string
                      description: Name of the submitted file
                      example: Complete_Blood_Count.pdf
                    success:
                      type: boolean
                      description: Indicates if the processing was successful
                      example: true
                    data:
                      type: object
                      description: Processed exam data
                      properties:
                        id:
                          type: string
                          description: Unique ID of the processed exam
                          example: qcp84rvitjjafjur1mmmy6ka
                        status:
                          type: string
                          description: Processing status
                          enum:
                            - pending
                            - in-progress
                            - completed
                            - failed
                          example: pending
                        metadata:
                          type: object
                          description: Exam metadata as sent in the request
                          example:
                            patient_id: '123456'
                            exam_type: blood_test
                        content:
                          type: object
                          description: Processed exam content
                          example: {}
                      required:
                        - id
                        - status
                        - metadata
                        - content
                  required:
                    - fileName
                    - success
                    - data
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                    example: Files are required
                  error:
                    type: string
                    description: Error type
                    example: Bad Request
                  statusCode:
                    type: integer
                    description: HTTP status code
                    example: 400
                required:
                  - message
                  - error
                  - statusCode
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Unauthorized
                  statusCode:
                    type: integer
                    example: 401
                required:
                  - message
                  - statusCode
        '413':
          description: File too large
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error message
                    example: File size exceeds 25MB limit
                  error:
                    type: string
                    description: Error type
                    example: Payload Too Large
                  statusCode:
                    type: integer
                    description: HTTP status code
                    example: 413
                required:
                  - message
                  - error
                  - statusCode
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-daai-api-key
      description: API key for authentication

````