Quickstart
You need an Orvoca workspace with a published agent. Set it up in the dashboard first; the onboarding steps walk you through it.
1. Create a test API key
Section titled “1. Create a test API key”In the dashboard, open Settings → API keys and create a test key. Only workspace owners and admins can do this. The key is shown once, so store it as a secret:
export ORVOCA_API_KEY=orv_test_...With a test key, calls are simulated: nobody’s phone rings and nothing is charged. See test mode. When everything works, create a live key and make sure the agent has a phone number that can make outbound calls.
2. Find your agent
Section titled “2. Find your agent”curl https://api.orvoca.com/v1/agents \ -H "Authorization: Bearer $ORVOCA_API_KEY"Note the id (it starts with agt_) of the agent you want to call with. The agent must be
published: drafts can’t place calls.
3. Place a call
Section titled “3. Place a call”curl https://api.orvoca.com/v1/calls \ -H "Authorization: Bearer $ORVOCA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"agent_id":"agt_01JF...","to":"+919845000210"}'to is the number to call in E.164 format (+91 and the 10-digit mobile number). The call
goes out from the agent’s outbound number. To use another number in your workspace, add
"from_number_id": "num_...".
The response is 201 Created while the phone rings:
{ "id": "call_01JG...", "status": "ringing", "direction": "outbound", "from": "+918041230077", "to": "+919845000210", "provider": "plivo", "test": false}With a test key, test is true, provider is null, and the call ends a few seconds
later.
A call can be refused before it starts:
| Status | Code | Why |
|---|---|---|
| 400 | invalid_request |
The agent isn’t published, or (live keys) there is no number to call from. param names the field |
| 402 | wallet_empty |
No plan minutes or wallet balance left (live keys only) |
| 422 | outside_calling_hours |
A +91 number outside 09:00–21:00 IST |
| 422 | provider_rejected |
The phone provider refused the call |
| 429 | rate_limited |
The workspace’s outbound calls for today are used up (live keys only) |
New workspaces can place 50 outbound calls a day (IST) for their first 14 days. Contact support if you need more sooner.
4. Read the result
Section titled “4. Read the result”curl https://api.orvoca.com/v1/calls/call_01JG... \ -H "Authorization: Bearer $ORVOCA_API_KEY"Once the call ends you get its duration, outcome, summary, the details the agent collected,
the transcript and the cost. Rather than polling, add a webhook for
call.ended.