Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

The ID of the Organization.

Query Parameters

subjectType
enum<string>
required

List users or API tokens.

Available options:
USER,
SERVICEKEY

A user's name or email, or an API token's name.

sorts
enum<string>

Sort order, name:asc by default.

Available options:
name:asc,
name:desc,
usage:asc,
usage:desc
hasOverride
boolean

true lists only subjects with an override, false only those without one.

offset
integer

Offset of the page.

Required range: x >= 0
limit
integer

Page size, 20 by default and at most 100.

Required range: 1 <= x <= 100

Response

OK

aiSpendingCaps
object[]
required

The users or API tokens on this page.

isUsageAvailable
boolean
required

False when Astro can't read spend data. usageCents is then absent, and the limits and isCapReached still hold.

isUsageEstimated
boolean
required

True when some usage isn't priced yet, so usageCents is an estimate that can differ from your invoice.

limit
integer
required

The page size.

offset
integer
required

The offset of this page.

periodEndAt
string<date-time>
required

The end of that period, exclusive.

periodStartAt
string<date-time>
required

The start of the billing period that usageCents covers. A limit that was reached resets at the start of the calendar month (UTC), which can differ from the start of the billing period.

totalCount
integer
required

The number of users or API tokens that match.