> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# UsageHistoryInput

> Input parameters for retrieving usage history



**Kind**: `input`

## Fields

**`customerRefId`**: `String!` (required)

Reference identifier for the customer

---

**`endDate`**: `DateTime`

The end date of the range

---

**`environmentId`**: `UUID`

The unique identifier for the environment

---

**`featureRefId`**: `String!` (required)

Reference identifier for the feature

---

**`groupBy`**: `[String!]`

Criteria by which to group the usage history

---

**`monthlyResetPeriodConfiguration`**: `MonthlyResetPeriodConfigInput`

Monthly reset period configuration

---

**`resetPeriod`**: `EntitlementResetPeriod`

Reset period

---

**`resourceRefId`**: `String`

Reference identifier for the resource

---

**`startDate`**: `DateTime!` (required)

The start date of the range

---

**`weeklyResetPeriodConfiguration`**: `WeeklyResetPeriodConfigInput`

Weekly reset period configuration

---

**`yearlyResetPeriodConfiguration`**: `YearlyResetPeriodConfigInput`

Yearly reset period configuration



## Related topics

- [UsageHistoryV2Input](https://docs.stigg.io/graphql-reference/types/UsageHistoryV2Input.md)
- [Node.js SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/node.md)
- [Get usage history](https://docs.stigg.io/api-reference/usage/get-usage-history.md)
- [UsageHistory](https://docs.stigg.io/graphql-reference/types/UsageHistory.md)
- [usageHistory](https://docs.stigg.io/graphql-reference/queries/usageHistory.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.