api-keys

Mintable Scopes

The scopes THIS caller may actually mint — read it, do not restate it.

A key-creation form that hard-codes the scope list drifts the moment the ceiling moves: client-admin's was already offering 7 of the 10 the API accepts, an omission indistinguishable from a deliberate display list. Mirror this endpoint instead.

get/v1/orgs/{org_id}/api-keys/mintable-scopes

Request

  • Base URL: https://api.sonenta.dev
  • URL: https://api.sonenta.dev/v1/orgs/{org_id}/api-keys/mintable-scopes
  • Auth: none declared

Path parameters

org_idstring required

Query parameters

project_idstring[]

Projects the key would act on. Repeat for several. A non-admin's ceiling is the INTERSECTION across them, so pass exactly what the form has selected.

Response

Successful Response

your_org_rolestring required
is_staffboolean required
mintablestring[] required
staff_only_excludedstring[]
beyond_your_role_excludedstring[]
org_wide_allowedboolean required
projects_consideredstring[]
projects_without_rolestring[]
notestring nullable
formulaobject

Changes

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