Skip to main content
POST
/
api
/
calls
/
outbound
Create Outbound Call
curl --request POST \
  --url http://localhost:8000/api/calls/outbound \
  --header 'Content-Type: application/json' \
  --header 'x-user-id: <x-user-id>' \
  --data '
{
  "agent_id": "<string>",
  "phone_number": "<string>",
  "callback_url": "<string>"
}
'
{
  "call_id": "<string>",
  "room_name": "<string>",
  "status": "RINGING"
}

Headers

x-user-id
string
required

Body

application/json
agent_id
string
required
phone_number
string
required
callback_url
string | null

Response

Successful Response

call_id
string
required
room_name
string
required
status
enum<string>
required
Available options:
RINGING,
ANSWERED,
COMPLETED,
FAILED,
NO_ANSWER