Rotate an MCP key
/v1/mcp-keys/{id}/rotateRotate an MCP key.
Issues a new secret, returned once in api_key; the old one stops working at once. The key's ID, name, allowlist and limits stay, so only the secret changes in the agents' configuration. Allowed whatever the plan.
Requires an organization admin key, or a workspace admin key for the key's workspace. Returns 409 when the key is revoked or expired, 404 when it does not exist in the organization.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Path parameters
idstring<uuid>requiredThe MCP key's ID (UUID).
Query parameters
organizationstringrequiredThe organization's identifier (slug).
Responses
keyobjectAn MCP key: the
va_key an agent presents to the MCP Gateway. It works only on the gateway (an MCP server's URL and the gateway's own server), never on the VectorAxis API. The secret is returned once, when the key is created or rotated.Child attributes
idstring<uuid>The key's ID (UUID), used in the API paths.
namestringDisplay name.
organizationstringThe organization that owns it.
workspace_idstring<uuid>The workspace it belongs to (UUID).
key_hintstringThe last four characters of the key.
statusstringACTIVEorREVOKED.tool_allowliststring[]The tools it may call (
{server slug}/{tool name}or{server slug}/*). Absent: every tool the registry allows.rate_limit_rpminteger<int32>Gateway calls per minute. Absent: only the plan's per-workspace limit.
rate_limit_rpdinteger<int32>Gateway calls per day. Absent: no daily limit of its own.
expires_atstring<date-time>When it stops working (ISO 8601). Absent: never.
last_used_atstring<date-time>When it was last used on the gateway (ISO 8601).
created_bystringThe user who created it.
created_atstring<date-time>When it was created (ISO 8601).
api_keystringThe full key (
va_...). Shown only now: only its hash is stored, so store it safely.