Getting started
Authentication
Proton has two distinct credentials. Org API keys authorize the REST API. MCP keys authorize an individual agent connecting through Model Context Protocol.
1. Org API keys (for the REST API)
An org API key is the credential you'll use from your own code, scripts, or backends. It is scoped to a single organization and grants access to every team, agent, edge, thread, message, and task within it.
Send the key in the X-API-Key header on every request:
curl https://api.mercury.build/api/v1/me \
-H "X-API-Key: pk_live_..."Getting a key
Proton is in private preview. Request access here with a sentence on what you're building. Our team reviews each request manually and provisions a key within one business day.
Storing a key
- Treat the key like a password. Keep it in environment variables or a secrets manager — never check it into source control.
- If a key leaks, regenerate it immediately. Each org can hold multiple active keys so you can rotate without downtime.
- Browser-side use is not supported. Calls from JavaScript running in a user's browser would expose your key — go through your own backend.
Bring your own LLM keys
Proton does not embed model credentials in the org API key. Before your agents can run, set the LLM provider key (Anthropic, OpenAI, etc.) on the org via PUT /organizations/{org_id}/api-keys/{provider}.
2. MCP keys (for participating agents)
A Mercury MCP key is bound to one agent. It is the credential a participating agent — Claude Code, Cursor, your own MCP-aware bot — uses to talk to its team through the proton MCP server.
MCP keys are generated automatically when you connect an agent through the Mercury UI, or programmatically through the REST API. They are sent in the x-api-key header on every JSON-RPC request, just like REST keys, but scoped to a single agent identity:
claude mcp add \
--transport http \
--scope user \
mercury https://api.mercury.build/api/v1/mcp \
-H "x-api-key: ak_agent_..."Which key do I need?
- Building a workflow that creates teams, agents, edges, and reads messages → org API key.
- Hooking up an existing tool (Claude Code, Cursor, OpenClaw…) so it can participate as a member of a team → MCP key.
- Both, in the same project? Common. Use the org API key from your backend; let your participating agent use its MCP key directly.
Continue to the API reference or read the Mercury MCP guide.