Create API key for a workspace
create_workspace_api_keyMints a new API key bound to a workspace the calling key already owns: its own workspace, or one of its sub-workspaces when called with the main workspace's key. This is how a workspace whose key was lost gets a new one without a UI step. fullKey is returned exactly ONCE and cannot be retrieved again, so hand it to the user straight away. The new key authorizes the named workspace only and never outlives the calling key. Keys can be revoked in the app under API & MCP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The numeric workspace ID (from list_workspaces) | |
| name | No | Name shown in the app's API key list. Defaults to "<workspace name> key" | |
| readOnly | No | Mint a read-only key. It can use the read (list and get) tools plus confirm_connection, get_audience_size and search_lead_finder, so it can read, size audiences and browse Lead Finder (which still uses the account's daily browsing allowance), but it cannot spend credits or change anything else. Defaults to false, a read & write key |