Skip to main content
POST
/
api
/
v1
/
entitlements
Create a new entitlement
curl --request POST \
  --url https://dev-entitlements-api.iqraa.ai/api/v1/api/v1/entitlements \
  --header 'Content-Type: application/json' \
  --header 'x-admin-api-key: <x-admin-api-key>' \
  --data '
{
  "name": "Premium Access",
  "code": "PREMIUM_ACCESS",
  "description": "Grants access to premium features",
  "reportable": true
}
'

Headers

x-admin-api-key
string
required

The API key to access the admin API

Body

application/json
name
string
required

The name of the entitlement

Example:

"Premium Access"

code
string
required

The unique code for the entitlement

Example:

"PREMIUM_ACCESS"

description
string

A description of the entitlement

Example:

"Grants access to premium features"

reportable
boolean
default:false

Whether the entitlement is reportable

Example:

true

Response

Entitlement created successfully