Skip to main content

v0/usage/credits/summary REST API Endpoint

Returns total account API credits for a time range.

Updated on
Oct 21, 2026
This method is available only to Enterprise accounts. See the Observability overview for more information.

Query Parameters

from
string

ISO 8601 start time. Required together with to when last is omitted.

to
string

ISO 8601 end time. Required together with from when last is omitted.

last
string

Relative time window instead of from and to; for example, 1h for the last hour.

Returns

data
object | null

Response data. Null when the request fails.

from
string

Effective start of the returned time range, in ISO 8601 format.

to
string

Effective end of the returned time range, in ISO 8601 format.

totals
object

Aggregate totals for the selected time range.

credits
integer

Total API credits consumed.

error
string | null

Error message on failure; null on success.

Request
Response
1
{
2
"data": {
3
"from": "2026-10-19T19:29:00.000000Z",
4
"to": "2026-10-20T20:00:00.000000Z",
5
"totals": {
6
"credits": 1578989578
7
}
8
},
9
"error": null
10
}
1
{
2
"data": {
3
"from": "2026-10-19T19:29:00.000000Z",
4
"to": "2026-10-20T20:00:00.000000Z",
5
"totals": {
6
"credits": 1578989578
7
}
8
},
9
"error": null
10
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free