Grants an entitlement definition to a specific user, optionally with an expiry time.
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.
User identifier.
Entitlement granted.
user_entitlement Unique entitlement identifier.
"premium"
Canonical API path.
"/v4/users/usr_abc123/entitlements/premium"
Whether the entitlement is currently active.
Source of the entitlement grant (open enum).
Timestamp when the entitlement became active (ISO 8601 UTC).
"2025-09-15T12:30:00Z"
Timestamp when the entitlement expires (ISO 8601 UTC). Null if no expiry.
"2026-09-15T12:30:00Z"
Product associated with this entitlement, if any.