Opaque Tokens

Create Opaque Token

Mints an opaque token. The plaintext is returned exactly once and cannot be retrieved again.

post/api/cp/setup/opaque-tokens

Request body

namestring

User-facing label

scopestring

Space-separated. Self-service creation may only grant: api:read, api:write

audiencestring

Resource to pin the token to. Omit for any allowed resource.

expires_ininteger

Lifetime in seconds. Omit for a non-expiring token.

Response

Successful response

{"stackTrail":"paths:/api/cp/setup/opaque-tokens:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

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