Docs / API reference

API reference Base: https://dhvani.aware.co.in

API overview and authentication

The dhvani workspace API uses JSON over HTTPS, HttpOnly cookie sessions, India Standard Time calendar aggregation and integer paise amounts.

Base URL

https://dhvani.aware.co.in

All endpoint paths in this reference are relative to https://dhvani.aware.co.in. All JSON request and response bodies use UTF-8 encoding with Content-Type: application/json.

Authentication and sessions

Workspace endpoints require an authenticated session cookie (dhvani_session) issued by POST /api/auth/signup, POST /api/auth/login, or POST /api/auth/demo. Only health, authentication and voice-listing endpoints are public.

curl -s -c cookies.txt -X POST https://dhvani.aware.co.in/api/auth/demo
curl -s -b cookies.txt https://dhvani.aware.co.in/api/bootstrap

Write requests (POST, PUT, PATCH, DELETE) must come from the same origin when an Origin header is present; cross-site writes are refused with 403.

Timestamps, currency and IDs

  • Timestamps: Returned in UTC ISO 8601 format. Submitted timestamps without a timezone offset are interpreted as India Standard Time (Asia/Kolkata, UTC+05:30). Daily statistics and 7-day call volume follow the Asia/Kolkata calendar.
  • Currency: Wallet balances, packs, rates and UPI payments use integer paise (INR x 100).
  • Resource IDs: Opaque prefixed strings such as agent-..., contact-..., call-..., followup-..., knowledge-... and pay-....

Status codes and error format

Errors return JSON with a detail string (or field-level validation list on 422):

CodeMeaning
200 / 201 / 202 / 204Success, resource created, background task queued, or deleted with empty body.
401Missing or expired session cookie, or invalid login credentials.
402Insufficient wallet balance to start a live voice test call in a business workspace.
403Cross-site request refused or action restricted to demo or business workspaces.
404Resource ID or integration provider not found.
422Validation error (invalid field value, consent state, UTR format, or blocked import URL).
429Rate limit exceeded or too many unpaid UPI payment requests open.
502 / 503Upstream voice service temporarily unavailable or feature not enabled on this workspace.
GET /api/health Public

Service health check returning current UTC timestamp.

curl -s https://dhvani.aware.co.in/api/health
{
  "ok": true,
  "service": "dhvani",
  "time": "2026-12-03T06:30:00.123456+00:00"
}

Endpoint groups

GroupEndpointsReference page
Auth & workspace/api/auth/*, /api/bootstrap, /api/onboarding, /api/settings, /api/demo/resetAuth, bootstrap, onboarding and settings
Agents & voice/api/agents*, /api/translate, /api/tts*Agents, quick test, translation and TTS
Live voice calls/api/live/status, /api/live/offerLive voice calls API
Calls, contacts, follow-ups, knowledge & integrations/api/calls*, /api/export/calls.csv, /api/contacts*, /api/followups*, /api/knowledge*, /api/integrations*Calls, contacts, follow-ups and knowledge
Wallet & UPI payments/api/wallet*, /api/payments*Wallet and UPI payments API