Account

Get account or owned-key daily rollups

Without resource, daily usage rollups for the account or one owned key. With resource=ledger, the append-only credit ledger (newest first) paged with limit and offset; the CSV format applies to rollups only.

get/v1/usage

Request

  • Base URL: https://api.scripthaul.com
  • URL: https://api.scripthaul.com/v1/usage
  • Auth: HTTP bearer

Query parameters

resource'ledger'

Select the credit ledger instead of usage rollups.

fromstring date
tostring date
key_idstring uuid
format'json' | 'csv'
limitinteger

Ledger rows per page (resource=ledger only).

offsetinteger

Ledger paging offset (resource=ledger only). Prefer cursor: offsets are capped at 100000.

cursorstring

Opaque position from a previous page's pagination.next_cursor (resource=ledger only). Walks the whole ledger with no ceiling and stays stable while new rows arrive; offset is ignored when a cursor is given.

sincestring date-time

Only rows created at or after this ISO 8601 date or date-time (resource=ledger only).

untilstring date-time

Only rows created before this ISO 8601 date or date-time (resource=ledger only).

Response

JSON rollups or CSV attachment

Changes

No recorded changes to this operation across all 1 revision of this API.