MCP keys
3 operations
List an account's MCP keys
/v1/accounts/{accountId}/mcp-keysworkwae.mcpKeys.list()Newest first, without their secrets; revoked keys are left out.
Errors
| Status | Reason | When |
|---|---|---|
| 404 | account_not_found | The account does not exist, or the caller is an account token for another account. |
It can also answer the errors every operation can answer. Each error's reason is the body's code.
Parameters
| Name | In | Schema |
|---|---|---|
| accountIdrequired | path | string (uuid) |
Responses
Mint an MCP key for an account's user
/v1/accounts/{accountId}/mcp-keysworkwae.mcpKeys.create()The key is returned once; it is not retrievable later. It works only at the MCP server (mcpUrl, sent as Authorization: Bearer <key>), only for this account and with these scopes; every other route answers it with mcp_only_key. MCP clients that send a header take it (Claude Code, Cursor, Codex and the like); Claude.ai and ChatGPT custom connectors sign in with OAuth instead. Needs the admin scope and a key that is not bound to accounts. Revoked with the account when it is deleted.
Errors
| Status | Reason | When |
|---|---|---|
| 404 | account_not_found | The account does not exist, or the caller is an account token for another account. |
| 409 | mcp_key_limit | The account already has 25 live MCP keys; revoke one first. |
It can also answer the errors every operation can answer. Each error's reason is the body's code.
Parameters
| Name | In | Schema |
|---|---|---|
| accountIdrequired | path | string (uuid) |
| Idempotency-Key | header | Makes the request safe to retry: the first answer to the key is kept for 24 hours and answered again to the same request. string length 1 to 255 |
Request body
requiredResponses
Revoke an MCP key
/v1/accounts/{accountId}/mcp-keys/{keyId}workwae.mcpKeys.delete()The MCP server refuses the key from its next request on.
Errors
| Status | Reason | When |
|---|---|---|
| 404 | account_not_found | The account does not exist, or the caller is an account token for another account. |
| 404 | mcp_key_not_found | The account has no live MCP key with this id. |
It can also answer the errors every operation can answer. Each error's reason is the body's code.
Parameters
| Name | In | Schema |
|---|---|---|
| accountIdrequired | path | string (uuid) |
| keyIdrequired | path | string (uuid) |