Get Monthly Credit Consumption
GET
/api/v1/contracts/{project_id}/credit-consumption
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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” project_id
required
Project Id
string format: uuid
Query Parameters
Section titled “Query Parameters ” backend_type
Filter results by backend type
string
Filter results by backend type
start_time
Start Time
Start of the time range (inclusive) for the aggregation
string format: date-time
Start of the time range (inclusive) for the aggregation
end_time
End Time
End of the time range (exclusive) for the aggregation
string format: date-time
End of the time range (exclusive) for the aggregation
Responses
Section titled “ Responses ”Successful Response
NonPaginatedResponse[list[public_apis.billing.schemas.credit_update.ProducedMonthlyCreditConsumptionResponse]]
object
data
Data
Array<object>
ProducedMonthlyCreditConsumptionResponseobject
date
required
Date
string format: date
allocated_credits
required
Allocated Credits
number
consumed_credits
required
Consumed Credits
number
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
