Skip to main content

Account: Key Status

EndpointAnswers
/v3/key-statusWhich plan is this key on? What can it call? How many credits are left? How far back can it read?

Any key can call it, including a Free key. See Access.

Key Status​

curl "https://api.elfa.ai/v3/key-status" \
-H "x-elfa-api-key: $ELFA_API_KEY"

GET /v3/key-status: what your key can do and what it has left. No scope, no parameters, and it answers even when credits run out.

{
"plan": "payg",
"billingMode": "deposit",
"owner": "user",
"scopes": ["key-status", "chat", "events", "calls", "entities"],
"credits": {
"limit": null,
"used": 407,
"remaining": 2223,
"resetsAt": null,
"requestsPerMinute": 60
},
"historyFrom": 1788307200
}

A PAYG key, scopes trimmed to 5 of its 25.

FieldMeaning
planpayg, grow or enterprise. A Free key reads payg, with no v3 scope in scopes
billingModedeposit: a prepaid balance. arrears: a subscription, billed after use
owneruser or org: whose account these numbers are. Its keys share them
scopesEvery scope the key holds, /v2 included. They follow the plan
credits.limit, credits.resetsAtThe monthly limit and its reset (1st of the month, UTC). null on prepaid
credits.usedCredits used this month, UTC
credits.remainingPrepaid: the balance. Subscription: limit minus used, never below 0
credits.requestsPerMinuteThe per-minute limit on this key
historyFromThe earliest time this plan reads. See History

Sending any parameter is a 400. An Enterprise key not set up yet gets 403, Enterprise API keys require explicit configuration…: email [email protected] with the requestId.