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

# Create a call

> Create a call session for a saved agent and receive a `joinUrl` to
connect to. Create this server-side so your API key is never exposed to
a browser; hand the client only the `joinUrl`.




## OpenAPI

````yaml /openapi.yaml post /calls
openapi: 3.0.0
info:
  title: Omnia Voice API
  description: >
    The Omnia Voice API allows you to programmatically manage voice agents,
    tools, phone numbers, and call logs.


    ## Authentication

    All API requests require an API key to be passed in the `X-API-Key` header.


    ## Rate Limiting

    API requests are rate limited to 1000 requests per hour per API key.
  version: 1.0.0
  contact:
    email: support@omnia-voice.com
servers:
  - url: https://api.omnia-voice.com/api/v1
    description: Production
  - url: https://dashboard.omnia-voice.com/api/v1
    description: Production (alias — same service)
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
    description: Manage voice agents
  - name: Tools
    description: Manage agent tools and actions
  - name: Phone Numbers
    description: Manage phone number assignments
  - name: Calls
    description: Create and manage voice calls
  - name: Call Logs
    description: View call history and details
  - name: Pricing
    description: Get pricing information and calculate call costs
  - name: Configuration
    description: Get configuration options (voices, languages)
paths:
  /calls:
    post:
      tags:
        - Calls
      summary: Create a call
      description: |
        Create a call session for a saved agent and receive a `joinUrl` to
        connect to. Create this server-side so your API key is never exposed to
        a browser; hand the client only the `joinUrl`.
      operationId: createAgentCall
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - agentId
              properties:
                agentId:
                  type: string
                  description: The agent to run this call. Must be ACTIVE.
                phoneNumber:
                  type: string
                  description: Falls back to the agent's assigned number when omitted.
                to:
                  type: string
                  description: Destination number, for outbound use.
                recordingEnabled:
                  type: boolean
                  description: Overrides the agent's own recording setting for this call.
                metadata:
                  type: object
                  additionalProperties: true
                  description: Arbitrary values echoed back on the call record.
      responses:
        '201':
          description: Call created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  joinUrl:
                    type: string
                    description: Short-lived, single-use URL to connect to this call.
                  createdAt:
                    type: string
                    format: date-time
        '400':
          description: Validation failed, or the agent has no configuration
        '404':
          description: Agent not found
        '500':
          description: Call service unavailable
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````