Skip to main content

Endpoint

The organization comes from the API key. The request has no organization ID, path parameter, query parameter, or body selector, so a key can read only its own organization’s balance.

Authentication

Pass a standard API key as a Bearer token:
Use this public endpoint for integrations. Do not call or scrape billing routes under www.eachlabs.ai/api/; those are unsupported dashboard internals for browser sessions. A dashboard cookie is neither required nor part of this API contract.

Code Examples

Response

Response Fields

No organization metadata, wallet rows, credit buckets, API-key details, or internal balance units are returned.

Freshness

Balance reads are eventually consistent with top-ups. The existing organization projection is cached, and ledger synchronization may add more delay. There is no fixed refresh-time guarantee, and this endpoint adds no additional cache. If a recent top-up is not visible yet, retry with bounded backoff while staying within the endpoint limit below. Do not treat a 503 as a zero balance.

Rate Limit

The endpoint allows 3 requests per second with burst 3, keyed by the authenticated organization in each api-service process. This is a process-local load guard, not a fleet-wide organizational quota. Its state can reset when a process is replaced. A rejected request does not read the balance and returns:

Error Responses

There is no separate 403 billing-permission response for this endpoint.
Last modified on August 27, 2026