Get compute usage
const url = 'https://api.craci.dev/v1preview1/usage?start=2026-08-01T00%3A00%3A00Z&end=2026-09-01T00%3A00%3A00Z';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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.craci.dev/v1preview1/usage?start=2026-08-01T00%3A00%3A00Z&end=2026-09-01T00%3A00%3A00Z' \ --header 'Authorization: Bearer <token>'Get the authenticated organization's total completed-job usage from the billing system for a time range.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Start of the usage period, inclusive, as an RFC 3339 timestamp.
Example
2026-08-01T00:00:00ZEnd of the usage period, exclusive, as an RFC 3339 timestamp.
Example
2026-09-01T00:00:00ZResponses
Section titled “Responses”Compute usage
object
Exclusive end of the reported period.
Inclusive start of the reported period.
object
Billed compute usage before conversion to vCPU-minutes.
Examplegenerated
{ "end": "2026-04-15T12:00:00Z", "start": "2026-04-15T12:00:00Z", "total": { "vcpuSeconds": 1 }}Missing or invalid filters
object
Human-readable explanation specific to this occurrence.
HTTP status code returned with the problem.
Short, human-readable summary of the problem.
URI identifying the problem type. about:blank uses the HTTP status meaning.
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Missing, invalid, expired, or revoked token
object
Human-readable explanation specific to this occurrence.
HTTP status code returned with the problem.
Short, human-readable summary of the problem.
URI identifying the problem type. about:blank uses the HTTP status meaning.
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Billing service unavailable
object
Human-readable explanation specific to this occurrence.
HTTP status code returned with the problem.
Short, human-readable summary of the problem.
URI identifying the problem type. about:blank uses the HTTP status meaning.
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}