admin

Grant Pro

Confer Pro on an account — a positive, deliberate operator action.

Two kinds, both reusing the existing grant machinery rather than adding a new entitlement path:

  • pro → an indefinite free comp. pro_source='admin', no expiry; never touched by the trial/founder nudge cron, and revocable from the deck (REVOCABLE_SOURCES).
  • trial → a time-boxed Pro window (default 30 days, 1–90). pro_source='trial' + pro_expires_at, so the whole reverse-trial lifecycle applies for free: the countdown banner, the T-3 heads-up and the T-0 lapse + 'ended' email all fire with no extra code — the retention hook.

Refuses only on a live paid subscription: that account already has Pro through Mollie, and layering a comp on top creates a confusing dual state the next reconcile would fight. Handle billing (cancel) instead. is_founder is never set — that marker means 'registered in the launch window', which a comp is not.

post/api/v1/admin/users/{user_id}/grant

Request

  • Base URL: https://api.peil.app (the document declares no server; this is the origin it was published from)
  • URL: https://api.peil.app/api/v1/admin/users/{user_id}/grant
  • Auth: OAuth 2 (password, token URL /api/v1/auth/jwt/login)

Path parameters

user_idinteger required

Request body

kindstring required
daysinteger nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.