Overview
Retrieve the status of an existing call by providing the call_id, or initiate a new outbound call using query parameters.
Parameters
Existing call ID to retrieve status for. If provided, other parameters are ignored.
Phone number to call in E.164 format (e.g., +1234567890). Required if call_id is not provided.
ID of the AI agent to use for the call. Required if call_id is not provided.
Optional webhook URL to receive call completion notifications. Must be a valid HTTP/HTTPS URL.
Optional external call ID for tracking purposes.
Example Request
curl -X GET "https://api.call24x7.ai/outbound_call?to_phone_number=%2B1234567890&agent_id=agent-123" \
-H "Authorization: Bearer YOUR_API_KEY"
Response
Whether the request was successful
Unique identifier for the call
Current status of the call. Possible values: IDLE, RINGING, IN_PROGRESS, COMPLETED, FAILED
Example Response
{
"success": true,
"call_id": "12345",
"status": "RINGING",
"message": "Call initiated successfully"
}
Error Responses
Human-readable error message
Error code. Possible values: MISSING_PARAMS, AGENT_NOT_FOUND, CALL_NOT_FOUND, INSUFFICIENT_BALANCE, INTERNAL_ERROR
API key authentication. Include your API key in the Authorization header as: Bearer YOUR_API_KEY
Existing call ID to retrieve status for
Phone number to call (E.164 format, e.g., +1234567890). Required if call_id is not provided.
ID of the AI agent to use for the call. Required if call_id is not provided.
Optional webhook URL to receive call completion notifications
Optional external call ID for tracking
Call initiated successfully or call status retrieved
Whether the request was successful
Unique identifier for the call
Current status of the call
Available options:
IDLE,
RINGING,
IN_PROGRESS,
COMPLETED,
FAILED