POST /v1/admin/entitlements/grants
Service: entitlements · operationId: (none)
Grant an entitlement to a user (admin only)
Required scopes
(no scope declared — review service config)
Request body
{
"type": "object",
"properties": {
"user_id": {
"type": "string",
"minLength": 1
},
"entitlement_key": {
"type": "string",
"minLength": 1
},
"reason": {
"type": "string",
"minLength": 1
},
"expires_at": {
"type": "string",
"format": "date-time"
}
},
"required": [
"user_id",
"entitlement_key",
"reason"
]
}Responses
201 Grant created
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"user_id": {
"type": "string"
},
"entitlement_key": {
"type": "string"
},
"reason": {
"type": "string"
},
"expires_at": {
"type": [
"string",
"null"
]
},
"granted_by": {
"type": "string"
},
"created_at": {
"type": "string"
}
},
"required": [
"id",
"user_id",
"entitlement_key",
"reason",
"expires_at",
"granted_by",
"created_at"
]
}400 Validation error
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"error",
"message"
]
}Example
curl -X POST https://entitlements.platform.loop.health/v1/admin/entitlements/grants \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'Related
services/entitlements— service overview- All endpoints — directory across services
- Auth model — how scopes are enforced