Get credit balance, reserved, available, and buffer status
GET
/api/v1/billing/credits
const url = 'https://api.ultimateteam.ai/api/v1/billing/credits';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.ultimateteam.ai/api/v1/billing/credits \ --header 'X-API-Key: <X-API-Key>'Return the tenant’s current credit balance, reserved (escrowed) credits, available (= balance - reserved), per-tier minimum buffer, and a traffic-light status.
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”Successful Response
Media typeapplication/json
CreditsResponse
Response schema for credit balance and usage.
Attributes: data: Credit balance payload.
object
data
Data
object
key
additional properties
any
Examplegenerated
{ "data": {}}