Account
Get Account
Check your key, and read your API credit, its name and your account's limits
GET
Try itcurl https://api.voice213.com/api/v1/me \
-H "Authorization: Bearer $VOICE213_API_KEY"from voice213 import Voice213
client = Voice213() # reads VOICE213_API_KEY
# The SDK flattens the answer: account.credit is the API's account.credit
account = client.account.get()
print(account.credit, account.currency, account.key.rate_limit.rpd)import Voice213 from "@voice213/sdk";
const voice213 = new Voice213(); // reads VOICE213_API_KEY
// The SDK flattens the answer: credit is the API's account.credit
const { credit, currency, key } = await voice213.account.get();
console.log(credit, currency, key.rateLimit.rpd);{
"success": true,
"account": {
"credit": 4865.91,
"currency": "DZD"
},
"key": {
"name": "My Store Backend",
"rateLimit": { "rpm": 600, "rpd": 1000, "concurrentRequests": 20, "maxTextWords": 5000 }
}
}{
"error": "Invalid or inactive API key"
}Returns your API credit, the name of the key you called with, and your account's limits, which all your keys share. It's free, and it doesn't count toward your rate limits. Use it to check that a key works before you start, or to read your balance from code.
It answers only what the API uses. Your email, name, plan and plan credits aren't in it, so a key that leaks doesn't reveal who you are. The response is never cached.
Authorizations
Your API key as a Bearer token: Bearer sk_live_.... See Authentication.
Response
application/jsonErrors
| Status | Error | When |
|---|---|---|
401 | Missing API key. Pass it as 'Authorization: Bearer sk_live_...' | The request has no key. |
401 | Invalid or inactive API key | The key is wrong, switched off or deleted. |
403 | Account deactivated | The account that owns the key is deactivated or suspended. Contact support. |
403 | API_ACCESS_BLOCKED (in code) | API access was switched off for the account. The message in error is in Arabic. Contact support. See API access switched off. |
429 | Rate limit exceeded: RPM limit exceeded or Rate limit exceeded: Daily limit exceeded | Your key used up its requests for the minute or the day. This call doesn't count toward them, but it's refused while they're used up. |
503 | MAINTENANCE (in code) | The API is down for maintenance. Retry later. See Paused models and maintenance. |
Was this page helpful?