Create an MCP server key
POST/v1/projects/:project_id/mcp-servers/:mcp_server_id/keys
A key confined to this server, for a server whose auth.type is header. The response carries key; this is the only time it is returned. idempotency_key is refused.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
Key created. The secret is included, once.
The request was malformed or failed validation.
Missing or invalid credentials.
The credential is scoped to a different project, or the caller's role in the project does not carry this action.
The resource does not exist (existence is not leaked).
The server's auth.type is not header (MCP_SERVER_AUTH_NOT_HEADER).