v69

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-011221331.4 MB
Credit grants

Get a list of credit grants

Retrieves a paginated list of credit grants for a customer.

get/api/v1/credits/grants

Query parameters

afterstring uuid

Return items that come after this cursor

beforestring uuid

Return items that come before this cursor

limitinteger

Maximum number of items to return

customerIdstring required

Filter by customer ID (required)

resourceIdstring

Filter by resource ID. When omitted, only grants without a resource are returned

currencyIdstring

Filter by currency ID

gtstring date-time

Greater than the specified createdAt value

gtestring date-time

Greater than or equal to the specified createdAt value

ltstring date-time

Less than the specified createdAt value

ltestring date-time

Less than or equal to the specified createdAt value

Filter by creation date using range operators: gt, gte, lt, lte

Headers

X-ACCOUNT-IDstring

Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.

X-ENVIRONMENT-IDstring

Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).

Response

A paginated list of credit grant objects.