GET /credits/history
This endpoint returns a list of the authenticated user’s credit transactions, including purchases, usage, and refunds. Requires session-based authentication (JWT access token).For third-party integrations: Use
GET /credits/history/api with API Key authentication instead.Query Parameters
number
default:"20"
Number of transactions to return (max 100).
number
default:"0"
Number of transactions to skip for pagination.
string
Filter by transaction type:
purchase, usage, or refund.Response
array
An array of transaction objects.
number
Total number of transactions.
boolean
Whether there are more transactions to fetch.
GET /credits/history/api
This endpoint returns the user’s credit transaction history using API Key authentication. Ideal for third-party integrations.Authentication
Requires API Key authentication. Include your API key in theAuthorization header:
Query Parameters
Same as/credits/history above.
Response
Same as/credits/history above.