Get balance
GET
Reads never create customer records. Unknown identities preview the sum of customer.created grant policies, or return zero if none are configured. Existing customers receive only their actual available balance; policy credits are never previewed again after creation or exhaustion.
bearerAuthheader
AuthorizationBearer <token>Environment API key or OAuth access token. OAuth requests select context with X-Orbyte-Environment or X-Orbyte-Organization when required by the operation.
identity*stringLength
1 <= length <= 128X-Orbyte-Environment?stringRequired for environment-scoped OAuth operations. API keys remain bound to their own environment.
Length
1 <= lengthAvailable credit balance
application/json- response
availableCredits*stringMatch
^-?(0|[1-9][0-9]*)$Length
length <= 20asOf*numberServer time in milliseconds when the balance was calculated.
nextChangeAt?numberNext expiry or rollover boundary in milliseconds. Refresh the balance then.
curl -X GET 'https://api.orbytelabs.com/v1/customers/string/balance'Example Response
{ "availableCredits": "string", "asOf": 0, "nextChangeAt": 0}