Mint a new data-plane API key bound to the caller's own principal. The optional grants body only attenuates (never widens) the caller's effective grants. Gated by the Context's allow_self_service_keys flag; rejects legacy / delegated callers.
Path parameters
Spectron context id
Query parameters
Seconds until the minted/rotated key expires. Omitted on create = "never expires" (subject to the Context's max_token_ttl_seconds cap). Omitted on rotate = inherit the key's current expiry.
Request body
Response
Plaintext key returned once
Changes
Changed in 3 of the 5 revisions of this API.12
- ○
added the non-success response with the status
503response-non-success-status-added
- ○
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲