Docs / API reference /
Read the account balance
GET https://api.answerline.dev/v1/credits
Get the USD balance currently on your organization's account. This lets you check the balance from code, even for workloads that only use async, without sending a sync /v1/monitor/* request merely to read the X-Credits-Remaining header. The definitive check still happens at the time each task is billed.
Returns
-
remainingnumber required -
USD you can still spend: the balance less what open tasks hold back.
-
perCycleinteger required -
Always null: balances do not reset.
-
cycleResetsAtstring required -
Always null: balances do not reset.
Responses
- 200
- The USD balance as of now.
- 401
- Unauthorized - authentication failed
- 429
- Too Many Requests - the service dropped the request because it was overloaded (
SERVICE_OVERLOADED), which returnsRetry-Afterwithout any limit headers, or one address presented too many unknown keys (RATE_LIMIT_EXCEEDED, withRetry-After) - 500
- Internal Server Error