Appearance
Initiate Call Test
Initiate a phone call against the latest draft of the agent.
Useful for verifying changes before publishing. Falls back to the published definition when no draft exists.
POST /api/v1/public/agent/test/{uuid}Path parameters
| Parameter | Description |
|---|---|
uuid | Uuid |
Headers
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | Your organization's API key — see Authentication. |
Content-Type | Yes | application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
phone_number | string | Yes | Phone Number |
initial_context | object | null | No |
telephony_configuration_id | integer | null | No |
Response
200 OK:
| Field | Type | Description |
|---|---|---|
status | string | Status |
workflow_run_id | integer | Workflow Run Id |
workflow_run_name | string | Workflow Run Name |
Errors: see Base URL, Errors & Rate Limits.
Example
cURL
bash
curl -X POST "https://api.callmangal.com/api/v1/public/agent/test/YOUR_UUID" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone_number":"YOUR_VALUE"}'