List all entitlements
List all entitlements for all the customers and features. This endpoint is intended for administrative purposes only. To fetch the entitlements of a specific subject please use the /api/v2/customers/{customerIdOrKey}/entitlements endpoint.
Query parameters
Filtering by multiple features.
Usage: ?feature=feature-1&feature=feature-2
Filtering by multiple customers.
Usage: ?customerKeys=customer-1&customerKeys=customer-3
Filtering by multiple customers.
Usage: ?customerIds=01K4WAQ0J99ZZ0MD75HXR112H8&customerIds=01K4WAQ0J99ZZ0MD75HXR112H9
Filtering by multiple entitlement types.
Usage: ?entitlementType=metered&entitlementType=boolean
Exclude inactive entitlements in the response (those scheduled for later or earlier)
Page index.
Default is 1.
The maximum number of items per page.
Default is 100.
Number of items to skip.
Default is 0.
Number of items to return.
Default is 100.
The order direction.
The order direction.
Order by options for entitlements.
The order by field.
Response
The request has succeeded.
Example response
{
"totalCount": 500,
"page": 1,
"pageSize": 100,
"items": [
{
"createdAt": "2024-01-01T01:01:01.001Z",
"updatedAt": "2024-01-01T01:01:01.001Z",
"deletedAt": "2024-01-01T01:01:01.001Z",
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"activeFrom": "2023-01-01T01:01:01.001Z",
"activeTo": "2023-01-01T01:01:01.001Z",
"annotations": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"featureKey": "example-feature-key",
"featureId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"lastReset": "2023-01-01T01:01:01.001Z",
"currentUsagePeriod": {
"from": "2023-01-01T01:01:01.001Z",
"to": "2023-02-01T01:01:01.001Z"
},
"measureUsageFrom": "2023-01-01T01:01:01.001Z",
"usagePeriod": {
"interval": "DAY",
"intervalISO": "P1D",
"anchor": "2023-01-01T01:01:01.001Z"
},
"customerKey": "customer-1",
"customerId": "01ARZ3NDEKTSV4RRFFQ69G5FAV"
}
]
}