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

# Upload a VOC recording

> Upload an mp3/wav recording and start asynchronous VOC processing.

Upload a recording and metadata to start asynchronous VOC processing.

## Requirements

* Audio must be **mp3** or **wav**
* Max size: **25 MB**
* `metadata.id` must contain only letters, numbers, dots, dashes, or underscores

## Example: upload with curl

```bash theme={null}
export CRESCENDO_TENANT_ID="tenant-alpha"
export CRESCENDO_API_KEY="YOUR_API_KEY"

curl -sS -X POST \
  -H "Authorization: Bearer $CRESCENDO_API_KEY" \
  -F "audio=@./call.mp3;type=audio/mpeg" \
  -F 'metadata={"id":"call-123","kind":"phonecall","source":"your-system"}' \
  "https://platform.crescendo.ai/api/v1/voc/tenants/$CRESCENDO_TENANT_ID/recording"
```

The response is `202 Accepted` and returns a job ID:

```json theme={null}
{ "id": "job-voc-001" }
```

## Next: poll for status

Use the returned job ID with [VOC recording status](/api-reference/endpoint/voc-recording-status).


## OpenAPI

````yaml POST /api/v1/voc/tenants/{tenantId}/recording
openapi: 3.1.0
info:
  title: Crescendo Platform API
  version: 1.6.0
  description: Public HTTP API for the Crescendo platform.
servers:
  - url: https://platform.crescendo.ai
security:
  - bearerAuth: []
  - bearerTokenQuery: []
tags:
  - name: Service
    description: Service metadata and health.
  - name: Provisioning
    description: Tenant-scoped provisioning resources.
  - name: Reporting
    description: Reporting-friendly exports (cursor pagination).
  - name: VOC
    description: Upload recordings for VOC processing.
  - name: MCP
    description: Model Context Protocol (MCP) endpoints.
paths:
  /api/v1/voc/tenants/{tenantId}/recording:
    post:
      tags:
        - VOC
      summary: Upload a recording for VOC processing
      description: Uploads an audio file and metadata, then starts an asynchronous VOC job.
      operationId: uploadVocRecording
      parameters:
        - $ref: '#/components/parameters/tenantId'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/VocUploadForm'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VocUploadAcceptedResponse'
              examples:
                example:
                  value:
                    id: job-voc-001
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/PermissionDenied'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    tenantId:
      name: tenantId
      in: path
      required: true
      description: Tenant identifier.
      schema:
        type: string
  schemas:
    VocUploadForm:
      type: object
      properties:
        audio:
          type: string
          format: binary
          description: Audio file (mp3 or wav).
        file:
          type: string
          format: binary
          description: Alternative field name for the audio file (mp3 or wav).
        metadata:
          type: string
          description: JSON string containing recording metadata. Must include `id`.
      required:
        - metadata
    VocUploadAcceptedResponse:
      type: object
      properties:
        id:
          type: string
      required:
        - id
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            example:
              value:
                code: BadRequest
                message: Invalid request parameters
    Unauthenticated:
      description: Unauthenticated
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            example:
              value:
                code: Unauthenticated
                message: Authorization header with Bearer token is required
    PermissionDenied:
      description: Permission denied
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            example:
              value:
                code: PermissionDenied
                message: API key does not allow this operation
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            example:
              value:
                code: NotFound
                message: Resource not found
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
            required:
              - message
          examples:
            example:
              value:
                message: Internal Server Error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
    bearerTokenQuery:
      type: apiKey
      in: query
      name: bearer_token
      description: >-
        Alternative to the Authorization header. Prefer the Authorization header
        whenever possible.

````