List the add-on grants of a system, including expired and revoked ones
(active tells them apart). Any user who can read the system can read
its entitlements.
GET
/systems/{id}/entitlements
curl \
--request GET 'https://api.your-domain.com/api/systems/sys_123456789/entitlements' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"code": 200,
"message": "entitlements retrieved successfully",
"data": {
"entitlements": [
{
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"system_id": "550e8400-e29b-41d4-a716-446655440000",
"entitlement": "nsec-blacklist",
"scope": "nethvoice1",
"source": "manual",
"source_ref": "sub_12345",
"valid_from": "2026-07-01T10:00:00Z",
"valid_until": "2027-07-01T10:00:00Z",
"revoked_at": "2026-05-04T09:42:00Z",
"revoked_source": "shop",
"active": true,
"pending_ref": "wc-order-83164",
"pending_since": "2026-07-15T18:00:00Z",
"status": "active",
"created_by": {
"user_id": "53h5zxpwu4vc",
"user_name": "Edoardo Super",
"organization_id": "lbswt1rxdhbz",
"organization_name": "Nethesis Italia",
"channel": "shop"
},
"purchased_by": {
"logto_id": "53h5zxpwu4vc",
"name": "Mario Rossi",
"email": "mario.rossi@example.com",
"organization_id": "akkbs6x2wo82",
"organization_name": "ACME S.r.l.",
"org_role": "reseller",
"user_roles": [
"Admin"
],
"out_of_scope": true
},
"variant": {
"id": 245,
"sku": "ATS-15",
"label": "1-15 device"
},
"renewal_count": 3,
"created_at": "2026-07-01T10:00:00Z",
"updated_at": "2026-07-01T10:00:00Z"
}
]
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}
Response examples (404)
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}
Response examples (500)
{
"code": 500,
"message": "internal server error",
"data": {}
}