Skip to main content
GET
Retrieve credit usage
0 credits Requires logs:read permission. See the guide for examples and usage.

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <API_KEY>. Keys have full access unless restricted to scopes.

Response

Current credit usage

credits_remaining
integer
required

Credits available to your organization right now.

Example:

41250

period
object | null
required

The current monthly credit period, or null when your organization has no monthly credits or billing is paused.

next_refill
object | null
required

The next monthly refill, or null when no refill is scheduled. While billing is paused, this is when billing resumes.

auto_topup
object
required

Auto-Topup settings and spend.

request_id
string<uuid>
required

Unique ID of this request, also in X-Request-Id. Include it when contacting support.

Example:

"3f1c2a6e-8b4d-4c1e-9f0a-2d7b5e6c8a91"

key_metadata
object

Credits this request used and your remaining balance.