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

# Start call streaming

> Starts streaming the media of the call identified by `call_id` to the configured destination. Returns the `stream_id`.



## OpenAPI

````yaml https://wavix.github.io/wavix-openapi/wavix-api.yaml post /v1/calls/{call_id}/streams
openapi: 3.1.0
info:
  title: Wavix APIs
  description: >-
    Wavix provides robust APIs that let you integrate voice and text messaging
    features directly into your app. Send text, place calls, and access detailed
    reports  programmatically.
  termsOfService: https://wavix.com/terms-and-conditions
  license:
    name: MIT
    identifier: MIT
  contact:
    name: Wavix
    url: https://wavix.com
    email: support@wavix.com
  version: '1.0'
servers:
  - url: https://api.wavix.com
    description: https://api.wavix.com
    variables: {}
security:
  - bearerAuth: []
tags:
  - name: SIP trunks
    description: SIP trunks
  - name: Buy
    description: Numbers
  - name: Cart
    description: Numbers
  - name: My numbers
    description: Numbers
  - name: Billing
    description: Billing, transactions, and invoices
  - name: Profile
    description: Account profile and customer information
  - name: CDRs
    description: Call detail records and call history
  - name: Speech Analytics
    description: Call transcription and speech analytics
  - name: SMS and MMS
    description: Messaging
  - name: Number Validator
    description: Phone number validation
  - name: Link shortener
    description: Short link and click metrics
  - name: 2FA
    description: Two-factor authentication
  - name: 10DLC
    description: 10DLC Campaigns and Brands
  - name: API Keys
    description: API key management
  - name: Call webhooks
    description: Webhook configuration for call events
  - name: Call control
    description: Programmable Voice
  - name: Call streaming
    description: Real-time call audio streaming over WebSocket
  - name: Call recording
    description: Call recording
  - name: Sub-accounts
    description: Sub-account management
  - name: Voice campaigns
    description: Outbound voice campaigns
  - name: Wavix Embeddable
    description: WebRTC embeddable widget
paths:
  /v1/calls/{call_id}/streams:
    post:
      tags:
        - Call streaming
      summary: Start call streaming
      description: >-
        Starts streaming the media of the call identified by `call_id` to the
        configured destination. Returns the `stream_id`.
      operationId: call_control_streams_create
      parameters:
        - name: call_id
          in: path
          description: The `uuid` of the call.
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        description: Destination and options for the media stream.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CallStreamCreateRequest'
        required: true
      responses:
        '200':
          description: Returns the created media stream, including its `stream_id`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallStreamResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    stream_id: 123e4567-e89b-12d3-a456-426614174000
        '400':
          description: Returns a validation error when a request parameter is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallControlValidationErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
      deprecated: false
      security:
        - bearerAuth:
            - calls:write
components:
  schemas:
    CallStreamCreateRequest:
      type: object
      additionalProperties: false
      required:
        - stream_url
        - stream_type
        - stream_channel
      properties:
        stream_url:
          type: string
          format: uri
          description: WebSocket URL for call streaming
          example: wss://examples.com/stream
        stream_type:
          allOf:
            - $ref: '#/components/schemas/CallStreamType'
          description: Direction of audio streamed to `stream_url`.
          example: twoway
        stream_channel:
          allOf:
            - $ref: '#/components/schemas/CallStreamChannel'
          description: Audio channel streamed to `stream_url`.
          example: inbound
    CallStreamResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates that the request was successful
          example: true
        stream_id:
          type: string
          format: uuid
          description: Stream ID
          example: 123e4567-e89b-12d3-a456-426614174000
    CallControlValidationErrorResponse:
      title: CallControlValidationErrorResponse
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        message:
          type: string
          description: Human-readable summary of the validation failure.
          example: Validation error
        errors:
          type: object
          description: |
            Field-level validation messages, keyed by the offending request
            field name (snake_case). Absent when the request body could not be
            parsed at all (for example, malformed JSON).
          additionalProperties:
            type: string
          example:
            to: required
    CallStreamType:
      type: string
      enum:
        - oneway
        - twoway
      description: >-
        Specifies the streaming type. Can be either `oneway` for unidirectional
        or `twoway` for bidirectional streaming.
    CallStreamChannel:
      type: string
      enum:
        - inbound
        - outbound
        - both
      description: >-
        Specifies which audio channel to stream. Use `inbound` to stream the
        incoming channel (to Wavix), `outbound` for the outbound channel (from
        Wavix), or `both` to stream both. For bidirectional call streaming, this
        setting is ignored and the inbound channel is only streamed.
    UnauthorizedErrorResponse:
      title: UnauthorizedErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        error:
          type: boolean
          description: >-
            Indicates that the response represents an error. Always `true` for
            this error.
          example: true
        message:
          type: string
          description: >-
            Human-readable description stating that authentication is missing or
            invalid.
          example: Unauthorized
  responses:
    UnauthorizedErrorResponse:
      description: Unauthorized
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnauthorizedErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Wavix API key. Pass as `Authorization: Bearer <api_key>`. Keys support
        per-resource scopes (none / read / write). See [Restricted keys and
        scopes](https://docs.wavix.com/api-reference/authentication#restricted-keys-and-scopes).

````