cURL
curl --request POST \ --url https://server.sellagent.ai/api/phone/createCall \ --header 'Content-Type: <content-type>' \ --header 'x-api-key: <x-api-key>' \ --data ' { "phoneId": "<string>", "phoneNumber": "+14155551234", "agentId": "<string>" } '
{ "callLogId": "686fc43b7702c6e4d8b2543", "output": { "id": "AD_yVkHniBrTmDj", "agentName": "sellagent-outbound", "room": "call_outbound_agent_room_7995", "metadata": { "callLogId": "686fc43b7702c6e4d8b2543", "dynamicVariables": {}, "type": "sip" }, "state": { "jobs": [], "createdAt": "1752155197136324888", "deletedAt": "0" } } }
Create a new outbound phone call
Your API key for authentication
Must be application/json
application/json
Optional Workspace ID. If not provided, defaults to the user's current workspace.
ID of the phone used to initiate the call
The target number to call (must be valid mobile number)
"+14155551234"
The ID of the agent initiating the call
Outbound Call Initiated
"686fc43b7702c6e4d8b2543"
Show child attributes
"AD_yVkHniBrTmDj"
"sellagent-outbound"
"call_outbound_agent_room_7995"
{}
"sip"
[]
"1752155197136324888"
"0"