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

# Complete Recording



## OpenAPI

````yaml /openapi.json post /v2/scribe/open-api/recording-uploads/{upload_id}/completion
openapi: 3.1.0
info:
  title: Cortexa Scribe Open API
  description: >-
    Authorized EHR access to Cortexa Scribe. All clinical resources are scoped
    to a partner grant.
  version: 2.0.0
servers:
  - url: https://sandbox.api.cortexanote.com
security: []
paths:
  /v2/scribe/open-api/recording-uploads/{upload_id}/completion:
    post:
      tags:
        - Scribe Open API
      summary: Complete Recording
      operationId: scribe_api_recording_upload_complete
      parameters:
        - name: upload_id
          in: path
          required: true
          schema:
            type: string
            title: Upload Id
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
            title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecordingComplete'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordingCompleted'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '422':
          description: Business rule violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
      security:
        - ScribeApiJWT: []
components:
  schemas:
    RecordingComplete:
      properties:
        parts:
          items:
            $ref: '#/components/schemas/UploadPart'
          type: array
          maxItems: 10000
          minItems: 1
          title: Parts
        duration_ms:
          type: integer
          exclusiveMinimum: 0
          title: Duration Ms
      additionalProperties: false
      type: object
      required:
        - parts
        - duration_ms
      title: RecordingComplete
    RecordingCompleted:
      properties:
        id:
          type: string
          title: Id
        status:
          type: string
          title: Status
        transcription_job_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcription Job Id
      type: object
      required:
        - id
        - status
      title: RecordingCompleted
    ApiErrorResponse:
      type: object
      properties:
        message:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ApiErrorDetail'
        context:
          type: object
          additionalProperties:
            type: string
          description: Explicitly public context for handling business errors.
      required:
        - message
        - errors
    UploadPart:
      properties:
        part_number:
          type: integer
          minimum: 1
          title: Part Number
        etag:
          type: string
          minLength: 1
          title: Etag
      additionalProperties: false
      type: object
      required:
        - part_number
        - etag
      title: UploadPart
    ApiErrorDetail:
      type: object
      properties:
        field:
          type: string
        code:
          type: string
      required:
        - code
  securitySchemes:
    ScribeApiJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.