API reference
List credit transactions
GET
The credit ledger, newest first: every hold, spend, release, refund and grant, with the balance after each. Always empty for quota organizations. The ledger is append-only, so a page never changes once you have read it.
Required scope: organization:read (organization:write also works).
Errors
- 400:
invalid_cursor,unknown_field - 401:
authentication_required,invalid_api_key - 403:
api_access_disabled,insufficient_scope - 422:
invalid_parameter - 429:
rate_limit_exceeded - 500:
api_error - 503:
service_unavailable
ApiKeyheader
AuthorizationBearer <probb_live_<id>_<secret>>limit?integerPage size, 1 to 100. Defaults to 25.
Range
1 <= value <= 100Default
25cursor?stringThe nextCursor from the previous page.
Length
1 <= length <= 2048Success.
application/json- response
object*stringdata*array<>The credit transactions on this page.
hasMore*booleanWhether another page follows.
nextCursor*|Pass as cursor to fetch the next page, or null at the end.
# Set PROBB_URL and PROBB_API_KEY. Replace any *_VALUE placeholder and any example ID (such as job_example) with a real one.curl --fail-with-body -X GET "$PROBB_URL/api/v1/organization/credit-transactions" \ -H "Authorization: Bearer $PROBB_API_KEY"Example Response
{ "object": "list", "data": [ { "object": "credit_transaction", "id": "string", "type": "grant", "product": "report", "credits": 0, "reservedCredits": 0, "balanceAfter": 0, "reason": "string", "createdAt": "2019-08-24T14:15:22Z" } ], "hasMore": true, "nextCursor": "string"}