Skip to main content
POST
/
createCall
Create Outbound Call
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"
    }
  }
}

Headers

x-api-key
string
required

Your API key for authentication

Content-Type
enum<string>
required

Must be application/json

Available options:
application/json
x-workspace-id
string

Optional Workspace ID. If not provided, defaults to the user's current workspace.

Body

application/json
phoneId
string
required

ID of the phone used to initiate the call

phoneNumber
string
required

The target number to call (must be valid mobile number)

Example:

"+14155551234"

agentId
string
required

The ID of the agent initiating the call

Response

Outbound Call Initiated

callLogId
string
Example:

"686fc43b7702c6e4d8b2543"

output
object