API Keys
Create and manage API keys for programmatic access to your workspace.
API Keys
API keys authenticate non-interactive access — scripts, agents, and CI/CD pipelines. They're scoped to the workspace where they were created.
Managing keys
Go to Settings → API Keys (requires admin or owner role).
Creating a key
- Click Create API Key
- Enter a descriptive name (e.g.
staging-pipeline,claude-agent) - Copy the key immediately — it's shown only once
Keys are prefixed with mhk_.
Revoking a key
Click Revoke next to a key. Revocation is immediate and irreversible. Create a new key if you need to replace it.
Usage
Pass the key in the X-API-Key header:
What API keys can access
- Proxy requests:
POST /api/v1/proxy/{server_id}/mcp - Direct ingestion:
POST /api/v1/tool-calls - Read endpoints: servers, health, analytics, tool calls, alerts
API keys cannot access auth management endpoints (signup, login, workspace/member management).