Skip to main content
GET
cURL

Authorizations

Authorization
string
header
required

A Rafflesia API key, sent as Authorization: Bearer <key>.

Query Parameters

limit
integer<int64>

Maximum number of items to return. The actual maximum depends on query type and expansions.

Required range: x >= 1
Example:

50

cursor
string

Pagination cursor from the previous response. Encodes the page number.

Example:

"Mg=="

start

Start date in ISO8601 format (for example, '2025-01-01T00:00:00Z' or '2025-01-01'). Defaults to 24 hours ago.

Example:

"2025-01-01T00:00:00Z"

end

Exclusive end date in ISO8601 format (for example, '2025-02-01T00:00:00Z' or '2025-02-01'). Defaults to the current time.

Example:

"2025-02-01T00:00:00Z"

timezone
string
default:UTC

Timezone used for date aggregation and boundaries. Response timestamps are UTC.

Example:

"UTC"

timeframe
enum<string>

Aggregation timeframe for time-series data. When omitted it is selected from the date span: minute below 2 hours, hour below 2 days, day below 64 days, week below 183 days, otherwise month.

Available options:
minute,
hour,
day,
week,
month
Example:

"day"

bound_to_timeframe
enum<string>
default:true

Whether to align start and exclusive end to timeframe boundaries. Set false to use the exact dates supplied.

Available options:
true,
false
Example:

"true"

endpoint_id

Filter by 1-50 endpoint IDs. Accepts repeated or comma-separated values.

Example:
api_key_id

Filter by 1-50 API key IDs. Accepts repeated or comma-separated values.

Example:
login_username

Filter by 1-50 team-member login usernames. Accepts repeated or comma-separated values.

Example:
expand
default:["time_series"]

Data to include. At least one of time_series or summary is required; auth_method and auth_method_structured add authentication attribution.

Example:

Response

OK

has_more
boolean
required

Whether more results are available; derived from next_cursor.

next_cursor
string | null
required

Cursor for the next page of results, or null when there are no more pages.

$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://example.com/schemas/ModelUsage.json"

summary
object[] | null

Aggregate statistics when expand includes 'summary'.

time_series
object[] | null

Time-series usage grouped by bucket when expand includes 'time_series'.