Skip to main content
POST
/
users
/
{user_id}
/
entitlements
Grant an entitlement to a user
curl --request POST \
  --url https://api.qonversion.io/v4/users/{user_id}/entitlements \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entitlement_id": "premium",
  "expires_at": 1767225600
}
'
{
  "object": "user_entitlement",
  "id": "premium",
  "url": "/v4/users/usr_abc123/entitlements/premium",
  "is_active": true,
  "source": "<string>",
  "started_at": "2025-09-15T12:30:00Z",
  "expires_at": "2026-09-15T12:30:00Z",
  "product": {
    "product_id": "premium_monthly",
    "subscription": {
      "renew_state": "<string>",
      "current_period_type": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication using the project Secret Key (prefixed with sk_, or test_sk_ for sandbox). All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.

Path Parameters

user_id
string
required

User identifier.

Body

application/json
entitlement_id
string
required

Identifier of the entitlement definition to grant.

Example:

"premium"

expires_at
integer | null

Unix timestamp (seconds) when the entitlement expires. Null for no expiry.

Example:

1767225600

Response

Entitlement granted.

object
enum<string>
required
Available options:
user_entitlement
id
string
required

Unique entitlement identifier.

Example:

"premium"

url
string
required

Canonical API path.

Example:

"/v4/users/usr_abc123/entitlements/premium"

is_active
boolean
required

Whether the entitlement is currently active.

source
string
required

Source of the entitlement grant (open enum).

started_at
string<date-time> | null

Timestamp when the entitlement became active (ISO 8601 UTC).

Example:

"2025-09-15T12:30:00Z"

expires_at
string<date-time> | null

Timestamp when the entitlement expires (ISO 8601 UTC). Null if no expiry.

Example:

"2026-09-15T12:30:00Z"

product
object

Product associated with this entitlement, if any.