Docs
API reference

List usage

GET
/api/v1/organization/usage

Credit ledger entries for credit organizations, or quota usage for organizations with a monthly allowance, newest first.

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

Authorization

ApiKey
headerAuthorizationBearer <probb_live_<id>_<secret>>

Query Parameters

limit?integer

Page size, 1 to 100. Defaults to 25.

Range1 <= value <= 100
Default25
cursor?string

The nextCursor from the previous page.

Length1 <= length <= 2048
createdSince?string

Only entries written at or after this time (ISO-8601).

Formatdate-time

Response Body

Success.

application/json
  1. response
object*string
data*array<>

The usage entries on this page.

hasMore*boolean

Whether another page follows.

nextCursor*|

Pass as cursor to fetch the next page, or null at the end.

Example Request
# 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/usage" \  -H "Authorization: Bearer $PROBB_API_KEY"
Example Response
{  "object": "list",  "data": [    {      "object": "usage_entry",      "id": "string",      "source": "credits",      "type": "string",      "product": "report",      "credits": 0,      "balanceAfter": 0,      "quotaUnits": 0,      "reason": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "hasMore": true,  "nextCursor": "string"}