Authentication
API keys
Section titled “API keys”A workspace key looks like mp_live_.... It is shown once. MaskDoor stores a hash and the last four characters. The key is bound to one organization, one workspace, and the user who created it.
Authorization: Bearer mp_live_...The MCP server also accepts X-Api-Key.
| Scope | Allows |
|---|---|
pii:only |
Shield text and documents |
proxy:llm |
The chat completions proxy |
proxy:mcp |
Native MCP and gateways |
admin |
Administration, and MCP when a workspace header is present |
The workspace button issues pii:only, proxy:llm, and proxy:mcp together. A member seat that includes MCP receives pii:only and proxy:mcp. Safe AI chat for a member does not require that key. The member signs in to the workspace.
No credential is 401. A key without proxy:mcp on an MCP route is 403 with proxy:mcp scope is required. A revoked key is 401 on the next call. A suspended workspace is 403 with workspace is suspended.
OAuth for MCP clients
Section titled “OAuth for MCP clients”Claude on the web and other connectors that cannot set a header use OAuth. Paste https://mcp.maskdoor.com/v1/mcp/native, or a gateway URL.
The 401 response points at /.well-known/oauth-protected-resource and asks for proxy:mcp. The person signs in at app.maskdoor.com/oauth/authorize, chooses a workspace, and approves.
The access token lasts 900 seconds. The refresh token lasts 14 days and can be revoked. Client registration is public and uses PKCE S256. An OAuth access token does not open the admin panel.