Create Workspace API Key
Mint a new API key for this workspace.
The value is returned once, here, and cannot be retrieved again. To rotate a key, create its successor, deploy it, then revoke the old one.
Authorizations
Use Tuner API key (tr_api_...) or user session token. Find your API key in Workspace Settings > API Keys.
Path Parameters
Workspace ID. Find this in Workspace > General Settings.
Body
Request schema for minting a workspace API key.
Names where the key runs, e.g. 'prod'. Unique among the workspace's live keys.
1 - 100"prod"
Response
Successful Response
A newly minted key, carrying its plaintext value.
Separate from WorkspaceApiKeyResponse so the value cannot leak into the list
endpoint by accident. This is the only response in the system that contains one.
API key ID.
Name given to the key when it was created.
Last four characters of the key, to tell keys apart.
When the key was created.
The full key. Shown once and never retrievable again.
When the key was last used. Null if it has never been used.