Skip to main content
POST
/
api
/
agents
/
{agent_id}
/
calls
Create Call
curl --request POST \
  --url https://api.getello.ai/api/agents/{agent_id}/calls \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "message": "Hello! Am I speaking to Sri?",
  "to_number": "12345567890",
  "source": "something",
  "agent_type": "webcall",
  "context": "something",
  "hook_url": "http://soetinsdfdfd",
  "siptrunk_id": "s3434ededs",
  "name": "sri"
}
'
{
  "status": 200,
  "message": "Message published successfully",
  "data": {
    "conversation_id": "6900b87ca70928b1224f0619",
    "call_status": "success"
  }
}

Authorizations

X-API-Key
string
header
required

Path Parameters

agent_id
string
required

Unique identifier of the agent initiating the call.

Body

application/json
message
string
required
Example:

"Hello! Am I speaking to Sri?"

to_number
string
required
Example:

"12345567890"

source
string
required
Example:

"something"

agent_type
string
required
Example:

"webcall"

context
string
Example:

"something"

hook_url
string
Example:

"http://soetinsdfdfd"

siptrunk_id
string
Example:

"s3434ededs"

name
string
Example:

"sri"

Response

Message published successfully

status
integer
Example:

200

message
string
Example:

"Message published successfully"

data
object
Example:
{
"conversation_id": "6900b87ca70928b1224f0619",
"call_status": "success"
}