Get Credit Pools
GET
/api/v1/contracts/{project_id}/credit-pools
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
required
Filter results by backend type
string
Filter results by backend type
limit
Limit
integer
offset
Offset
integer
order_by
Order By
string
order_by_direction
string
Responses
Section titled “ Responses ”Successful Response
HeaderPaginatedResponse[ProducedCreditPoolDetailResponse]
A list of responses with pagination information.
For backwards compatibility, this also exposes pagination using the following header format:
Access-Control-Expose-Headers: Content-Range
Content-Range: $FIRST_ITEM_IN_BATCH-$LAST_ITEM_IN_BACH/$TOTAL_ITEMS_AVAILABLEobject
status
string
message
Message
string
code
Code
string
data
required
Data
Array<object>
ProducedCreditPoolDetailResponseobject
id
required
Id
string format: uuid
remaining_credits
required
Remaining Credits
number
allocated_credits
required
Allocated Credits
number
consumed_credits
required
Consumed Credits
number
expires_at
Expires At
string format: date-time
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
pagination
required
JSendPagination
Pagination information
object
total
required
Total
integer
start
required
Start
integer
end
required
End
integer
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
