plan claim at the next mint, so the
per-plan policy engine enforces it — the effective entitlement always wins over any plan a client or
IdP asserts at mint time. A typical caller is your App Store Server Notification handler, on an
upgrade or downgrade.
Authentication
Path parameters
Request body
Example
Response
200 OK:
entitled_since— recorded on the first non-freegrant and never reset on a later downgrade;nullif the end user has never been entitled.entitlement_expires_at/entitlement_source—nullwhen not set.
Idempotent, last-write-wins on
(project, external_id). The end user is created on first use if it
does not yet exist, and each write is recorded to the audit log.Errors
Failures use the error envelope:400invalid_request_error— a malformed path or body (invalid_request).401authentication_error— a bad or missing key.403permission_error— a client token or publishable key (client_token_cannot_mint).