# Get entitlements Retrieve a paginated list of entitlements with sorting and filtering capabilities. Sort by expiration date (expirationDate) or creation date (createdAt), filter by plan IDs (planId, planIds), assign level (assignLevel) for user or account, user IDs (userIds), or account (tenant) IDs (tenantIds), and optionally include related entities (withRelations). Endpoint: GET /resources/entitlements/v2 Version: 1.0 Security: bearer ## Query parameters: - `offset` (number) Page offset of results to return Example: "0" - `limit` (number) Number of results per page Example: "10" - `sortType` (string) Sort type, ASC for ascending, DESC for descending Enum: "ASC", "DESC" - `planId` (string) UUID string representing the plan ID Example: "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3" - `planIds` (array) UUIDs string array representing the plan IDs Example: "[\"e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3\"]" - `assignLevel` (string) Assign level, USER for user-level entitlements, TENANT for tenant-level entitlements Enum: "USER", "TENANT" - `orderBy` (string) Field to order results by date (createdAt) or expiration date (expirationDate) Enum: "expirationDate", "createdAt" - `userIds` (array) Comma separated user IDs to filter results by Example: "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3" - `tenantIds` (array) Comma separated account (tenant) IDs to filter results by Example: "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3" - `withRelations` (boolean) Boolean value to include related entities in the response ## Response 200 fields (application/json): - `items` (array) - `items.id` (string, required) UUID string that represents the entitlement ID Example: "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3" - `items.planId` (string, required) UUID string that represents the plan ID Example: "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3" - `items.tenantId` (string, required) UUID string that represents the account (tenant) ID Example: "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3" - `items.userId` (string) UUID string that represents the user ID Example: "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3" - `items.expirationDate` (string) Date of entitlement expiration Example: "2022-01-01T12:00:00" - `items.createdAt` (string, required) Date when entitlement was created Example: "2022-01-01T12:00:00" - `items.updatedAt` (string) Date when entitlement was last updated Example: "2022-01-01T12:00:00" - `items.plan` (object, required) Get the related plan object of the entitlement, in case withRelations is set to true - `items.plan.id` (string, required) UUID string that represents the plan ID Example: "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3" - `items.plan.vendorId` (string, required) UUID string that represents the vendor ID Example: "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3" - `items.plan.name` (string, required) String that represents the plan name Example: "Test Plan" - `items.plan.defaultTimeLimitation` (number) Number that represents the default time limitation in days for auto-assigned plans Example: "30" - `items.plan.description` (string) Feature plan description Example: "This is a test plan" - `items.plan.createdAt` (string, required) Date when plan was created Example: "2022-01-01T00:00:00" - `items.plan.updatedAt` (string) Date when plan was last updated Example: "2022-01-01T00:00:00" - `hasNext` (boolean)