v1
latestOpenAPI 3.1.0BUSL-1.12026-07-1756132288.0 KBMint 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.
post/api/v1/{context_id}/keys
Path parameters
context_idstring required
Spectron context id
Query parameters
ttlSecondsinteger nullable
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