Skip to content
DhvaneeDocs
Dashboard
On this page

Account API

Read the plan, usage and balances of the key's workspace.

GET /v1/account returns the same plan meters the Billing page shows: what your plan allows this billing cycle, how much is used and how much is left. It is read-only: it does not change the plan, top up the wallet or start a checkout, and it never returns card details. Use it to check headroom before a large upload, campaign or batch of runs.

The machine-readable contract is openapi.public.yaml. Download it for clients and codegen. This site has no live Try-it console.

Scope

  • account:read

Read the account

curl -sS -X GET "https://api.stage.dhvanee.com/v1/account" \
  -H "Authorization: Bearer dhvanee_live_YOUR_KEY"
{
  "plan": "Free",
  "plan_code": "free",
  "voice_minutes": {"limit": 60.0, "used": 6.0, "remaining": 54.0},
  "concurrency": {"in_use": 0, "cap": 5},
  "automation_executions": {"limit": 100.0, "used": 0.0, "remaining": 100.0},
  "knowledge_storage_mb": {"limit": 1.5, "used": 0.0, "remaining": 1.5},
  "copilot_credits": {"limit": 450.0, "used": 0.0, "remaining": 450.0, "extra_allowed": false},
  "wallet": {"balance": 5000.0, "available": 5000.0, "currency": "INR", "required": true},
  "cycle_start": "2026-11-27T11:52:25.861802+00:00",
  "cycle_end": "2026-12-27T11:52:25.861802+00:00"
}
The numbers depend on your plan and your usage; the values above are only an example.

Fields

FieldNotes
plan, plan_codeThe plan's display name and its stable code.
voice_minutesCall minutes this billing cycle, as a meter.
concurrencyin_use is the number of calls live right now (outbound dialing plus active inbound). cap is the most the plan allows at once, or null when it has no cap.
automation_executionsAutomation runs counted this billing cycle, as a meter.
knowledge_storage_mbSpace taken by knowledge documents, in megabytes (1 MB = 1,048,576 bytes), as a meter. used is rounded to 3 decimals, so a small library can show 0.0. It counts everything stored now, not only this cycle.
copilot_creditsThe copilot allowance this billing cycle: limit, used, remaining, and extra_allowed (true when use beyond the allowance can be paid from the wallet).
walletbalance is what the wallet holds. available is the balance minus extra usage not yet deducted. Both are in major currency units (rupees, not paise). currency is INR or USD, fixed when the account was created. required is true when extra usage is paid from the wallet and stops when it is empty.
cycle_start, cycle_endThe billing cycle the meters cover (ISO 8601).

Meters

voice_minutes, automation_executions, knowledge_storage_mb share one shape (copilot_credits has the same three fields plus extra_allowed):

FieldNotes
limitWhat the plan includes. null means unlimited.
usedWhat has been used.
remaininglimit minus used, never below 0. null when limit is null.

When a limit is reached

This endpoint answers 200 whatever the balances are. The limits themselves are enforced where the work starts: an endpoint that would go over a plan limit answers 402, for example an upload that would exceed knowledge storage (see the Knowledge API) or a copilot request with no credits left.

Errors

StatusWhen
401No key, or an unknown or revoked key (Valid API key is required).
403The key lacks the scope (API key needs account:read scope).
429Too many requests. See Rate limits.

Limits and keys: Authentication, Rate limits.

Account API · Dhvanee Docs