Test without ringing a customer
Check your key, your error handling and your webhook receiver before any customer is rung: the sandbox key, a sample of every webhook event, and the ways to try an agent yourself.
Before you start
- The Developers page in your dashboard, where keys and webhooks are made.
- API access is on Growth and above. Without it every request answers 402, and the key works again once the plan includes it.
Prove your key and scopes with a sandbox key
Make a sandbox key on Developers with the scopes your code will use, and run your code against it. A request inside its scopes answers 403 with a sentence saying it is a sandbox token: your sign-in and your scopes are right. A request outside them answers 403 naming the missing scope.
A sandbox key never places a call, sends a message or reads your data. There is no sample data behind it yet, so it cannot give your code a list to read.
GET
/api/v1/agentsList agents in the API referenceGET /api/v1/agents with curl curl "https://aicallstudio.com/api/v1/agents" \ -H "Authorization: Bearer mtc_YOUR_TOKEN"Send your server a sample of every event
On the Developers page, open your webhook and send a sample of any event. It is signed like a real delivery and carries "test": true in its data, so your receiver can be tried on every kind of event it handles, and can tell a sample from the real thing. No call or campaign changes.
Each test, and what your server answered, is in the delivery log beside it. A second test within a few seconds is refused.
call.completed, a sample delivery { "event": "call.completed", "ts": 1772634500, "id": "1b2c3d4e5f6a47b8c9d0e1f2a3b4c5d6", "data": { "call": { "id": "00000000-0000-0000-0000-000000000001", "contact_id": "00000000-0000-0000-0000-000000000002", "campaign_id": null, "agent_id": "00000000-0000-0000-0000-000000000003", "direction": "outbound", "status": "completed", "duration_seconds": 94, "disposition": "interested", "disposition_label": "Interested", "classification": "hot", "score": 82, "summary": "Asked for a site visit on Saturday.", "transcript": "Agent: Hello, am I speaking with Asha?\nLead: Yes.", "transcript_turns": [ { "speaker": "agent", "text": "Hello, am I speaking with Asha?" }, { "speaker": "lead", "text": "Yes." } ], "placed_by": { "kind": "ai_agent", "id": "00000000-0000-0000-0000-000000000003", "name": "Priya" }, "cost_inr": 4.5, "disposition_by": "ai" } } }Check your signature code on a sample
Work out the signature from the raw body of a test delivery and compare it with the X-Aicallstudio-Signature header, as Webhooks shows. Then change one character of your secret and send another: your receiver should refuse it.
Hear the agent yourself
In the dashboard, the Live Call Console talks to your agent from your browser: the same voice, script, knowledge and tools a customer gets. Simulation Lab runs text practice calls against AI-played customers, and dials nothing.
Both are charged: the console by the minute like a web call, the Lab for each run.
Make the first real call to yourself
When those pass, place one real call to your own mobile with a live key, as the Quickstart does. It is billed like any call, and it is the one test that proves the phone line, the agent and your webhook together.
Is there a test mode that places pretend calls?
No. There is no dry-run setting on placing a call or sending a message, and a sandbox key gives back no sample data. What you can test without ringing anyone is your own side: the key and its scopes with a sandbox key, and your webhook receiver with sample events. The call itself is tested by ringing your own number.
Costs and what to watch
- A sandbox key cannot stand in for a live one: every request it makes answers 403, the ones that would work included.
- A Live Call Console test is billed by the minute, from the moment it connects until you press End. A tab left open on a test keeps costing.
Was this page clear?
View this page as Markdown