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.
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"
}Fields
| Field | Notes |
|---|---|
plan, plan_code | The plan's display name and its stable code. |
voice_minutes | Call minutes this billing cycle, as a meter. |
concurrency | in_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_executions | Automation runs counted this billing cycle, as a meter. |
knowledge_storage_mb | Space 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_credits | The copilot allowance this billing cycle: limit, used, remaining, and extra_allowed (true when use beyond the allowance can be paid from the wallet). |
wallet | balance 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_end | The 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):
| Field | Notes |
|---|---|
limit | What the plan includes. null means unlimited. |
used | What has been used. |
remaining | limit 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
| Status | When |
|---|---|
401 | No key, or an unknown or revoked key (Valid API key is required). |
403 | The key lacks the scope (API key needs account:read scope). |
429 | Too many requests. See Rate limits. |
Limits and keys: Authentication, Rate limits.