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

# Create Outbound Call

> Initiate an outbound phone call via LiveKit SIP.

Creates a voice session, a LiveKit room, and dials the phone number.



## OpenAPI

````yaml /openapi.json post /api/calls/outbound
openapi: 3.1.0
info:
  title: Nenyax API
  description: Backend API for Nenyax Voice Agent Platform
  version: 0.1.0
servers:
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /api/calls/outbound:
    post:
      tags:
        - Calls
      summary: Create Outbound Call
      description: |-
        Initiate an outbound phone call via LiveKit SIP.

        Creates a voice session, a LiveKit room, and dials the phone number.
      operationId: create_outbound_call_api_calls_outbound_post
      parameters:
        - name: x-user-id
          in: header
          required: true
          schema:
            type: string
            title: X-User-Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OutboundCallRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OutboundCallResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OutboundCallRequest:
      properties:
        agent_id:
          type: string
          title: Agent Id
        phone_number:
          type: string
          title: Phone Number
        callback_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Callback Url
      type: object
      required:
        - agent_id
        - phone_number
      title: OutboundCallRequest
    OutboundCallResponse:
      properties:
        call_id:
          type: string
          title: Call Id
        room_name:
          type: string
          title: Room Name
        status:
          $ref: '#/components/schemas/CallStatus'
      type: object
      required:
        - call_id
        - room_name
        - status
      title: OutboundCallResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CallStatus:
      type: string
      enum:
        - RINGING
        - ANSWERED
        - COMPLETED
        - FAILED
        - NO_ANSWER
      title: CallStatus
    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

````