Create Call
Deprecated APIs
Create Call
Create an outbound call to initiate a phone call
POST
Create Call
Create an outbound call to initiate a phone call from a configured phone number to a target number.
Example request:
Example response:
Example error response:
Base URL
Endpoint
Path Parameters
The unique identifier of your project
Headers
Bearer token authentication using your Project API Key (starts with
sk_). Format: Bearer {your-api-key}Request Body
The phone number to call from. This number must be configured in your project’s SIP trunking settings with outbound status set to ‘active’
The phone number to call to. Should be in E.164 format (e.g.,
+1234567890). For Taiwan phone numbers, use local format without the +886 country code prefix (e.g., 0912345678).Optional dynamic variables to pass to the call. These variables can be used in your call flow configuration
Response
Returns a success response indicating the outbound call event was created.Indicates whether the call event was created successfully
Error Responses
| Status Code | Description |
|---|---|
| 400 | Missing required fields (fromNumber or toNumber) or invalid request body |
| 401 | Invalid authentication (API key is invalid or missing) |
| 404 | The given phone number (fromNumber) is not configured for outbound calls or the outbound status is not active |
| 409 | The target phone number (toNumber) is already in the call queue |
| 500 | Internal server error |
Usage Notes
-
Phone Number Configuration: The
fromNumbermust be configured in your project’s SIP trunking settings with:- Outbound SIP status set to ‘active’
-
Call Queue: Each
toNumbercan only have one active call in the queue at a time. If you attempt to create a call to a number that’s already queued, you’ll receive a 409 error. -
Dynamic Variables: Use
dynamicVariablesto pass custom data to your call flow. These variables are available throughout the call session and can be used for personalization or call routing logic.
