Skip to content

Results are limited to the current section: Cloud services

Product news

Get Monthly Credit Consumption

GET
/api/v1/contracts/{project_id}/credit-consumption
curl --request GET \
--url 'https://example.com/api/v1/contracts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/credit-consumption?backend_type=QPU&start_time=2026-04-15T12%3A00%3A00Z&end_time=2026-04-15T12%3A00%3A00Z' \
--header 'Authorization: Bearer <token>'

Return the monthly aggregation of allocated vs consumed credits for a contract, within the requested time range, ordered by month DESC.

Months with no activity are omitted.

project_id
required
Project Id
string format: uuid
backend_type
required
BackendType
string
Allowed values: QPU EMU
start_time
required
Start Time
string format: date-time
end_time
required
End Time
string format: date-time

Successful Response

Media typeapplication/json
NonPaginatedResponse[list[ProducedMonthlyCreditConsumptionResponse]]
object
data
Any of:
Array<object>
ProducedMonthlyCreditConsumptionResponse
object
date
required
Date
string format: date
allocated_credits
required
Allocated Credits
number
consumed_credits
required
Consumed Credits
number
Examplegenerated
{
"data": [
{
"date": "2026-04-15",
"allocated_credits": 1,
"consumed_credits": 1
}
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}