Skip to main content
GET
Returns one request from the usage log by its id, with where its credits came from.
  • charges lists each grant the request drew from: its plan or add-on (sourceType, sourceId, sourceName), when it was granted and expires, and the credits taken. Grants that expire soonest are spent first.
  • overage is the part recorded as overage: its credits, the rate it was priced at (plan, or a customer’s override), this request’s costCents, and whether it has been billed on an invoice. null when the request stayed within its grants.
  • A refused request has no charges and overage is null.
  • An event from another workspace or environment returns 404 usage_event_not_found.
Needs the Customers permission at Read.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

The usage event's id from the usage log.

Required range: x <= 2147483647

Response

One tracked request and the grants and overage it was charged from

event
object
required
charges
object[]
required

The grants a charged request drew from, one per grant. Empty when it wasn't charged.

overage
object | null
required

The overage a charged request recorded. Null when it stayed within its grants.