You must have a valid API key to use this endpoint. Make sure the agent is properly configured before making calls.
API Endpoint
Request Headers
required
Bearer your-api-key
required
application/json
Request Body
string
required
The phone number to call (e.g., “966501234567”). Must match your SIP trunk’s outbound format. You can check the required format on the /phone-number page.
string
required
The ID of the agent you want to make the call. Must be an outbound agent with a configured SIP trunk and phone number. You can verify this configuration on the /phone-number page.
object
Optional dynamic variables in key-value pairs that inject into your agent’s prompt
Example Request
Example Request
Response
boolean
required
Whether the call was successfully initiated
object
required
Call details object containing:
string
required
Unique task ID for tracking the call
string
required
Webhook ID for receiving call status updates
string
required
The phone number that was called
string
required
The agent ID used for the call
string
required
Your company identifier
boolean
required
Whether this is a test call
Example Response
Example Response
Error Handling
string
Error message if the request fails
Common Validation Errors
Example Error Responses
Example Error Responses
Webhooks
Real-time Call Events
Subscribe to webhooks to receive real-time notifications about call events, analysis results, and more. Configure your webhooks at app.sawt.sa/webhooks/subscriptions.