Skip to main content
GET
List Instance Charges

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Query Parameters

select_filters
string
required

day (required). Date range in unix seconds (UTC). Operators: gte, lte.

type (optional). Filter by contract type: instance, volume, serverless. Operator: in.

Examples:

format
enum<string>
default:table
  • table (default) flat list of per-contract rows with type: "instance" or "volume".
  • tree serverless contracts are collapsed under endpoint/workergroup wrappers with type: "serverless" and source: "endpoint-<id>" / "workergroup-<id>". Regular instances and volumes are unchanged.
Available options:
table,
tree
Example:

"table"

latest_first
boolean
default:true

Sort by most recent charges first.

Example:

true

limit
integer
default:100

Max results per page. Server maximum 500.

Required range: x >= 1
Example:

20

after_token
string

Pass the next_token value from the previous response to fetch the next page of results. When the response returns next_token: null, there are no more pages.

Example:

"eyJ2YWx1ZXMiOiB7ImlkIjogMTIzNDU2Nzh9fQ=="

Response

Host users: {"success": false, "msg": "Host users do not have instance charges", "count": 0, ...}

success
boolean

True on success

count
integer

Number of unique instances/volumes in the result

total
integer

Total matching instances/volumes across all pages

results
object[]

Charge entries with start, end, type, source, description, amount, metadata, and items fields

next_token
string

Cursor for the next page, or null