Skip to main content
GET
Get all credits

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Sorgu Parametreleri

type
enum<string> | null

Filter by credit type.

Mevcut seçenekler:
llm_token,
sms,
storage,
whatsapp
is_active
boolean | null

Filter by active status (date window).

per_page
integer | null

The number of items per page.

Gerekli aralık: 1 <= x <= 100
page
integer | null

The page number.

Gerekli aralık: x >= 1
sort_by
enum<string> | null

The field to sort by.

Mevcut seçenekler:
created_at,
start_date,
end_date,
amount,
null
sort_order
enum<string> | null

The sort direction (asc or desc).

Mevcut seçenekler:
asc,
desc,
null
created_at_from
string<date-time> | null

Only return credits created on or after this date.

created_at_to
string<date-time> | null

Only return credits created on or before this date.

start_date_from
string<date-time> | null

Only return credits whose validity window starts on or after this date.

start_date_to
string<date-time> | null

Only return credits whose validity window starts on or before this date.

end_date_from
string<date-time> | null

Only return credits whose validity window ends on or after this date.

end_date_to
string<date-time> | null

Only return credits whose validity window ends on or before this date.

Yanıt

Array of CreditResource

data
CreditResource · object[]
gerekli