Initiate an outbound call via PBX
This endpoint initiates an outbound phone call through the PBX system associated with the given robot.
All requests must include an API token in the Authorization header using HTTP Token authentication:
Authorization: Token token=your_api_key
/api/v1/robots/{robot_id}/dial
| Header | Value | Required |
|---|---|---|
Authorization |
Token token=your_api_key |
Yes |
Content-Type |
application/json |
Yes |
| Parameter | Type | Required | Description |
|---|---|---|---|
robot_id |
Integer | Yes | The ID of the robot with configured PBX connection |
| Field | Type | Required | Description |
|---|---|---|---|
extension |
String | Yes | Caller agent extension number on the PBX (e.g. "1001") |
target |
String | Yes | Target phone number to dial (e.g. "+421900000000") |
{
"extension": "1001",
"target": "+421900000000"
}
{
"id": "session_abc123",
"caller": "1001",
"callee": "+421900000000",
"status": "ringing"
}
extension or target)// String error:
{
"error": "Invalid extension number"
}
// Array of errors (from PBX):
{
"error": [
{
"code": "invalid_extension",
"message": "Extension not found",
"detail": "Extension 1001 does not exist on this tenant"
}
]
}
Common PBX errors include:
curl -X POST https://admin.jarabot.com/api/v1/robots/42/dial \
-H "Authorization: Token token=your_api_key" \
-H "Content-Type: application/json" \
-d '{
"extension": "1001",
"target": "+421900000000"
}'
Last updated: