Initiates a test call using the specified AI agent and phone numbers
/v1/calls/make-callPOSTAPI KEY or JWT Token)src/api/public_apis_v1/call/test_call/test_call_controller.rs| Header | Value | Description |
|---|---|---|
Authorization | Bearer <api_key> | Your API KEY or JWT Token |
| Field | Type | Description | Example |
|---|---|---|---|
ai_agent_id | String (UUID format) | The unique identifier for the AI agent initiating the call. | "550e8400-e29b-41d4-a716-446655440000" |
call_from | String | The phone number to call from. Supports various formats including E.164 and national formats. | "+1234567890" or "(123) 456-7890" |
call_to | String | The phone number to call. Supports various formats including E.164 and national formats. | "+9876543210" or "987-654-3210" |
dynamic_variables | Array of Objects (optional) | A list of name-value pairs representing dynamic variables that can influence the behavior of the call. | [{"name": "customer_name", "value": "John"}] |
workspace | String (optional) | The workspace identifier. Defaults to “default” if not provided. | "production" or "staging" |
call_from and call_to accept various phone number formats:
+1234567890(123) 456-7890, 123-456-7890123.456.7890123 456 78901234567890 ext 123+1 (123) 456-7890200 OK400 Bad Request400 Bad RequestBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Test call configuration data
Data required to make a test call
The unique identifier for the AI agent initiating the call
The phone number to call from. Supports various formats including E.164 and national formats
The phone number to call. Supports various formats including E.164 and national formats
A list of name-value pairs representing dynamic variables that can influence the behavior of the call
The workspace identifier. Defaults to 'default' if not provided