Skip to content

Authentication

Send your API key as a Bearer token on every request:

Terminal window
curl https://api.orvoca.com/v1/agents \
-H "Authorization: Bearer orv_live_..."
  • Create and revoke keys in the dashboard under Settings → API keys, or with the API keys endpoints. Only owners and admins can.
  • A key is shown once, when it is created. Orvoca stores only a hash of it, so a lost key can’t be recovered: revoke it and create a new one.
  • A key belongs to one workspace and acts as an admin of that workspace. Treat it like a password: keep it on your server, never in a browser or mobile app.
  • The dashboard shows when each key was last used, which helps you find keys you no longer need.

Keys are either live (orv_live_…) or test (orv_test_…). Build your integration with a test key, then switch to a live key.

With a test key:

  • POST /v1/calls doesn’t dial anyone and charges nothing. The call is simulated: it answers, has a short sample conversation, and ends a few seconds later. You don’t need wallet balance, and a number to call from is optional (without one, the call shows +910000000000).
  • The usual call.started and call.ended webhooks are sent, with "test": true in data.
  • Test calls are seen only by test keys. Live keys and the dashboard never see them, and they don’t count in analytics.
  • Renting numbers and topping up the wallet are refused with 403 forbidden.
  • Everything else works as with a live key and changes your real workspace: agents, knowledge, tools, webhooks and settings.

Requests are still checked as they would be live: the agent must be published, and calls to +91 numbers are refused outside 09:00–21:00 IST.

Status Code Meaning
401 unauthenticated No key, a malformed key, or a revoked key
403 forbidden The workspace is suspended. Contact Orvoca support