-u YOUR_API_KEY: or in the Authorization
header as a Bearer token.
If your workspace is a partner workspace, its keys can also act inside the
workspaces you manage for your clients. See Partners.
Restricted keys
For a credential-level permission boundary, use a restricted key. An MCP toolset is an additional endpoint guardrail; it does not restrict the credential itself. Create one in Developers > API keys > New secret key. Enter a name, choose Access > Restricted, select its permissions, and click Create secret key. Copy the secret when it appears; it is shown only once. For MCP, use a client that supports bearer headers. A standard key can do anything in its workspace. A restricted key, which you choose when you create it, can do only what you grant it, family by family, through the API, MCP and the CLI. Anything else fails with anunauthorized
error that names the permission it needs. A restricted key acts only in its own workspace,
even when that is a partner workspace.
You can change a key’s name and permissions, or switch it between standard and
restricted, from its menu on the API keys page. The change applies from the
key’s next request, and the key’s secret stays the same.