Create Workspace API Key
Mint a new API key for this workspace.
The value is returned once, here, and cannot be retrieved again — store it before discarding the response. A workspace may hold several keys, any of which authenticates, so a key is replaced by creating its successor and revoking it after the new one is deployed.
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.