Skip to main content
GET
TypeScript SDK

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

The managed user whose usage you want (Widgetic's id for the user)

Query Parameters

startDate
string

Start of the period, included: an ISO 8601 date (2026-10-01) or date-time with its offset (2026-10-01T08:00:00Z). Default: 30 days before endDate.

endDate
string

End of the period, not included, in the same forms. Default: now. It must be after startDate, by at most 366 days.

Response

What the managed user's editor sessions spent in the period

success
boolean
required

Always true on a success.

Example:

true

data
object
required

What a managed user's editor sessions spent over a period. Only credits taken through editor sessions are counted, from the day usage was first recorded: what you spend with your API key is not, and neither is anything from before.

Example:
meta
object

Extra information about the answer: where a page sits in a list, the cursor of the next page, or warnings about a call that succeeded with a caveat.