Skip to main content
inputUsageHistoryV2Input

Fields

customerId
String!
required

Customer id

endDate
DateTime

The end date of the range

environmentId
UUID

The unique identifier for the environment

featureId
String!
required

Feature id

groupBy
[String!]

Criteria by which to group the usage history

includeInactiveSubscriptions
Boolean

When true, includes usage data from the most recent cancelled or expired subscription

Cursor pagination over series groups. When omitted, all groups are returned and no pageInfo is emitted.

resourceId
String

The customer resource this usage applies to. Optional — only required if the customer has multiple resources (for example, one subscription per workspace or site) and usage needs to be tracked separately per resource; omit it to report usage at the customer level.

startDate
DateTime!
required

The start date of the range