Admin

Grant organization access or Free Auto usage

Changed on

Creates an idempotent organization-scoped grant. A null expiry means until spent or revoked; unlimited usage is a separate grant kind. Does not change billing.

post/v1/admin/organizations/{organizationId}/control-panel/grants

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/admin/organizations/{organizationId}/control-panel/grants
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Path parameters

organizationIdstring required

Request body

requestIdstring uuid required
feature'freeAuto' | 'openworkWeb' required
kind'access' | 'usage' | 'unlimited' required
amountUsdnumber nullable required
startsAtstring date-time nullable required
expiresAtstring date-time nullable required
reasonstring required

Response

Grant created or original retry returned.

oktrue required
grantIdstring required

Changes