Reference / Entitlements

Set (grant/override) a feature value for an organization or plan.

POST /v1/entitlements
Secret API key operationId: set_entitlement

Authorization

Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.

Request body · required

  • feature_key string required
  • subject_id string required

    Organization id (uuid) or plan key.

  • subject_type string required

    `organization` or `plan`.

  • value Value required

Responses

200 Entitlement set
{
  "data": {
    "created_at": "2026-01-15T09:30:00Z",
    "feature_key": "string",
    "id": "018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f",
    "subject_id": "string",
    "subject_type": "organization",
    "value": {}
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
422 Unknown feature / bad value / bad subject

Request

curl -X POST "http://localhost:8080/v1/entitlements" \
  -H "Content-Type: application/json" \
  -d '{
  "feature_key": "string",
  "subject_id": "string",
  "subject_type": "organization",
  "value": {}
}'

Try it

live request
POST http://localhost:8080/v1/entitlements

Request body

application/json