GET /v1/entitlements/\{user_id\}/check/\{product_key\}
Service: identity · operationId: (none)
Check whether a user has an active entitlement for a product
Required scopes
(no scope declared — review service config)
Path parameters
user_id(string) required —product_key(string) required —
Responses
200 Entitlement check result
{
"type": "object",
"properties": {
"entitled": {
"type": "boolean"
},
"user_id": {
"type": "string"
},
"product_key": {
"type": "string"
},
"grant": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string"
},
"external_id": {
"type": "string"
},
"user_id": {
"type": "string"
},
"product_key": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"active",
"revoked",
"expired"
]
},
"granted_at": {
"type": "string"
},
"expires_at": {
"type": [
"string",
"null"
]
},
"revoked_at": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
},
"brand_id": {
"type": "string"
},
"metadata": {},
"granted_by": {
"type": "string"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
}
},
"required": [
"id",
"external_id",
"user_id",
"product_key",
"status",
"granted_at",
"expires_at",
"revoked_at",
"source",
"brand_id",
"granted_by",
"created_at",
"updated_at"
]
}
},
"required": [
"entitled",
"user_id",
"product_key",
"grant"
]
}400 Validation error
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"error",
"message"
]
}Example
curl -X GET https://identity.platform.loop.health/v1/entitlements/{user_id}/check/{product_key} \
-H "Authorization: Bearer $ACCESS_TOKEN"Related
services/identity— service overview- All endpoints — directory across services
- Auth model — how scopes are enforced