ResoneraDocs
Campaigns

Place a test call

POST
/test-calls

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.

Authorization

apiKey
headerX-API-Key<token>

Your API key, from Settings → API access in the dashboard.

Request Body

application/json
  1. body
agent_id*string

The agent to test.

Formatuuid
phone_number*string

The 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?string

Name the agent uses for the person it calls.

Default"Test Contact"
campaign_prompt?string

Extra 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.

Response Body

The call was dialed. initiated means dialed, not answered.

application/json
  1. response
call_id?string
room?string
status?string
curl -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"}