Console

Developer platform

Build on Shravan.

The AI voice agent that answers, books and follows up on Indian phone lines — as a REST API. Create an agent, point it at a number, get the transcript, outcome and cost back as a webhook.

BASE URL https://api.shravan-ai.tech/v1

One API

Everything the console does,
from your own code.

~

AI voice API

Outbound calls in Hindi, English and Hinglish, on Twilio or Plivo numbers, with the same runtime that powers the console.

POST /v1/calls
>

Agents

A conversation flow plus the language, voice and model it speaks with. Every flow you build in the console is already an agent.

GET /v1/agents · POST /v1/agents
=

Calls

Place, list, read and hang up calls; each one carries status, transcript, disposition, extracted data and cost.

GET /v1/calls/{id} · /transcript · /hangup
#

Webhooks

Signed events for every call lifecycle step and wallet change, with retries, redelivery and secret rotation.

POST /v1/webhook_endpoints
?

Knowledge

Text entries and PDFs your agent can answer from, per business, keyword-searchable the moment they are created.

POST /v1/knowledge · /knowledge/upload
§

Test & live

Test keys run a realistic sandbox call — answered, completed, analysed, webhooked — at zero cost. Live keys ring real phones.

sk_test_… · sk_live_…
*

API keys

Scoped keys per business with rate limits, IP allowlists, expiry, rotation and an audit trail. Managed in the console.

Console → Developers
%

Usage & billing

Per-minute rate frozen on every call, one prepaid wallet with the console, monthly usage in one request.

GET /v1/usage

Quickstart

Four requests
from zero to a completed call.

01
Create an API key

In Console → Developers, create a test key with calls:write. The secret is shown once.

02
Select an agent

GET /v1/agents lists the flows you have built as agents; take an id.

03
Make your first API call

POST /v1/calls with the agent, the number and your metadata. Test keys never dial or charge.

04
Receive the webhook

Register an endpoint once; call.completed and call.analyzed arrive signed with the transcript, outcome and cost.

# 2. your agents
curl https://api.shravan-ai.tech/v1/agents \
  -H "Authorization: Bearer sk_test_..."

# 3. place a call (sandbox with a test key)
curl https://api.shravan-ai.tech/v1/calls \
  -H "Authorization: Bearer sk_test_..." \
  -H "Idempotency-Key: lead-8891" \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "agent_1a2b3c4d5e6f7a8b", "to": "+919876543210",
       "contact_name": "Priya", "metadata": {"crm_id": "L-42"}}'

# 4. receive events (register once)
curl https://api.shravan-ai.tech/v1/webhook_endpoints \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/webhooks/shravan",
       "events": ["call.completed", "call.analyzed"]}'
TEST

Integrate for free.

A sk_test_ key never dials and never touches your wallet. The sandbox runs a scripted lifecycle — initiated, answered, completed with a Hindi/English transcript, analysed — and fires the same signed webhooks a live call would, to your test endpoints only.

LIVE

Then ring a real phone.

A sk_live_ key places real calls at your API rate, debited per minute from the same prepaid wallet as the console. Rate limits, IP allowlists and expiry are set per key; revoke or rotate any time from the console.

Ship a voice agent this week.

Everything below is available on a test key with zero cost. Flip to live when the flow sounds right.