RevKeen Docs
Api reference

Query usage events

List usage events with optional filters. Returns up to 100 events per request.


Related endpoints

  • POST /usage-events — Ingest usage events
  • POST /usage-events/dry-run — Dry-run usage events
  • GET /usage-events/aggregate/{meterId} — Get aggregated usage

Common errors

  • 401 unauthenticated — missing, malformed, or revoked API key.

Pagination

Offset-based with limit (default 25, max 100) and offset. The response pagination block includes total and hasMore. See the pagination guide for SDK auto-paging helpers.

GET
/usage-events
x-api-key<token>

Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.

In: header

Query Parameters

meter_id?string

Filter by meter ID

customer_id?string

Filter by customer ID

external_customer_id?string

Filter by external customer ID

subscription_id?string

Filter by subscription ID

start_time?string

Start of time range (ISO 8601)

end_time?string

End of time range (ISO 8601)

limit?string

Max results (default 100, max 100)

Response Body

application/json

application/json

curl "https://api.revkeen.com/v2/usage-events" \  -H "x-api-key: $REVKEEN_API_KEY"
{
  "object": "list",
  "data": [
    {
      "property1": null,
      "property2": null
    }
  ],
  "has_more": true
}
{
  "error": "string"
}