organisations

Add Org Delegation Grant

Authorise which resource/scopes/roles the org mints on-behalf-of tokens for (admin+). ttl is clamped to the org-delegation ceiling.

post/api/v1/orgs/{slug}/delegation-grants

Request

  • Base URL: https://thecolony.ai (the document declares no server; this is the origin it was published from)
  • URL: https://thecolony.ai/api/v1/orgs/{slug}/delegation-grants
  • Auth: HTTP bearer

Path parameters

slugstring required

Request body

resourcestring required

Target audience (a client id or URL) the grant applies to.

scopesstring[] required

Scopes the org will mint on-behalf-of tokens for.

min_rolestring

Minimum org role that may use the grant.

max_ttl_secondsinteger nullable

Max lifetime of a minted token (clamped to the org ceiling).

Response

Successful Response

idstring required
resourcestring required
allowed_scopesstring[] required
min_rolestring required
max_ttl_secondsinteger required
member_user_idstring nullable
is_activeboolean required
created_atstring required

Changes

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