Skip to main content
POST
/
v1
/
calls
Create Call
curl --request POST \
  --url https://api.oneinbox.ai/v1/calls \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "to_number": "<string>",
  "from_number": "<string>",
  "scheduled_at": "2023-11-07T05:31:56Z",
  "variables": {},
  "webhook_url": "<string>",
  "overrides": {
    "llm": {
      "model": "<string>",
      "temperature": 123,
      "system_prompt": "<string>"
    },
    "transcriber": {
      "model": "<string>",
      "language": "<string>"
    },
    "tts": {
      "voice_id": "<string>",
      "model": "<string>",
      "speed": 123,
      "stability": 123
    },
    "first_message": "<string>"
  },
  "metadata": {}
}
'
{
  "id": "<string>",
  "agent_id": "<string>",
  "type": "<string>",
  "status": "<string>",
  "from_number": "<string>",
  "to_number": "<string>",
  "room_name": "<string>",
  "direction": "<string>",
  "scheduled_at": "2023-11-07T05:31:56Z",
  "variables": {},
  "started_at": "2023-11-07T05:31:56Z",
  "ended_at": "2023-11-07T05:31:56Z",
  "duration_seconds": 123,
  "end_reason": "<string>",
  "transcript": "<string>",
  "messages": [
    "<unknown>"
  ],
  "recording_url": "<string>",
  "analysis": {},
  "latency": {},
  "cost_cents": 123,
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "twilio_call_sid": "<string>",
  "outcome": "<string>",
  "ai_summary": "<string>",
  "credits_used": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
agent_id
string<uuid>
required
to_number
string
required
Pattern: ^\+[1-9]\d{1,14}$
from_number
string
required
Pattern: ^\+[1-9]\d{1,14}$
scheduled_at
string<date-time> | null
variables
Variables · object
webhook_url
string | null
overrides
CallOverrides · object

Per-call overrides — merged on top of the agent's stored config at dispatch.

metadata
Metadata · object

Response

Successful Response

id
string
required
agent_id
string
required
type
string
required
status
string
required
from_number
string | null
required
to_number
string | null
required
room_name
string | null
required
direction
string
required
scheduled_at
string<date-time> | null
required
variables
Variables · object
required
started_at
string<date-time> | null
required
ended_at
string<date-time> | null
required
duration_seconds
number | null
required
end_reason
string | null
required
transcript
string | null
required
messages
any[]
required
recording_url
string | null
required
analysis
Analysis · object
required
latency
Latency · object
required
cost_cents
integer | null
required
metadata
Metadata · object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
twilio_call_sid
string | null
outcome
string | null
ai_summary
string | null
credits_used
number | null