Skip to main content
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

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

Error Handling

string
Error message if the request fails

Common Validation Errors

The following validation errors may occur:
  • Invalid agent type: Agent must be configured for outbound calls (inbound agents are rejected)
  • Missing SIP trunk: Agent must have a SIP trunk and phone number configured (check /phone-number page)
  • Phone number format: Phone number must match your SIP trunk’s outbound format (verify format on /phone-number page)
  • Agent access: Agent must belong to your company (verified via API key)

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.