Place a test call
Calls one phone number with an agent, so that you can review the agent before launching a campaign. Test calls are not recorded and do not appear in GET /calls.
Numbers on your do-not-call list return 409.
Requires the calls:dispatch scope. This request places a call that is billed to your account.
apiKeyX-API-Key<token>Your API key, from Settings → API access in the dashboard.
application/json- body
agent_id*stringThe agent to test.
uuidphone_number*stringThe number to ring. Any common format: +919876543210, +91 98765 43210, 919876543210 or 9876543210. A number without a country code is taken as Indian (+91).
contact_name?stringName the agent uses for the person it calls.
"Test Contact"campaign_prompt?stringExtra instructions added to the agent's prompt for this call.
kb_item_ids?array<>Knowledge base to use. Defaults to the agent's.
contact_details?What the agent already knows about this person, like a campaign contact's extra. The agent confirms these details instead of asking for them.
The call was dialed. initiated means dialed, not answered.
application/json- response
call_id?stringroom?stringstatus?stringcurl -X POST "https://example.com/test-calls" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "phone_number": "string" }'{ "call_id": "5d2f8a71-3c4b-4e6f-8a9d-1b2c3d4e5f60", "room": "test-5d2f8a71-3c4", "status": "initiated"}