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

# Ingest a voice call (ASR + PII scrub + optional audio retention)



## OpenAPI

````yaml /api-reference/openapi.json post /v1/voice/calls
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/voice/calls:
    post:
      tags:
        - voice
      summary: Ingest a voice call (ASR + PII scrub + optional audio retention)
      operationId: ingestVoiceCall
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_ingestVoiceCall'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoiceCallIngestResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    Body_ingestVoiceCall:
      properties:
        audio:
          type: string
          contentMediaType: application/octet-stream
          title: Audio
          description: Voice call audio (PCM WAV recommended)
        metadata:
          type: string
          title: Metadata
          description: >-
            JSON object with keys: channel (str, required), external_id (str,
            optional), language (str, optional, default "en"), metadata (object,
            optional)
      type: object
      required:
        - audio
        - metadata
      title: Body_ingestVoiceCall
    VoiceCallIngestResponse:
      properties:
        call:
          $ref: '#/components/schemas/VoiceCallSummary'
        transcript:
          $ref: '#/components/schemas/VoiceTranscriptOut'
        audio_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Audio Url
      type: object
      required:
        - call
        - transcript
      title: VoiceCallIngestResponse
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    VoiceCallSummary:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
        channel:
          type: string
          title: Channel
        duration_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Duration Ms
        audio_mime_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Audio Mime Type
        audio_retention_policy:
          type: string
          title: Audio Retention Policy
        scrub_status:
          type: string
          title: Scrub Status
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - organization_id
        - external_id
        - channel
        - duration_ms
        - audio_mime_type
        - audio_retention_policy
        - scrub_status
        - created_at
      title: VoiceCallSummary
    VoiceTranscriptOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        voice_call_id:
          type: string
          format: uuid
          title: Voice Call Id
        full_text:
          type: string
          title: Full Text
        was_scrubbed:
          type: boolean
          title: Was Scrubbed
        scrub_detection_count:
          type: integer
          title: Scrub Detection Count
        language:
          type: string
          title: Language
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - voice_call_id
        - full_text
        - was_scrubbed
        - scrub_detection_count
        - language
        - created_at
      title: VoiceTranscriptOut
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````