HTTP API
Production bases:
| Host | Use |
|---|---|
https://api.maskdoor.com |
Chat proxy, shield, workspace |
https://mcp.maskdoor.com |
Native MCP and gateways |
https://app.maskdoor.com |
Account, keys, gateways, seats |
https://chat.maskdoor.com |
Safe AI chat for members |
https://auth.maskdoor.com |
Sign-in for the workspace |
mcp.maskdoor.com and api.maskdoor.com can reach the same process. Call MCP on mcp.maskdoor.com.
Chat proxy
Section titled “Chat proxy”POST /v1/proxy/chat/completions
Bearer key with proxy:llm. Required headers X-Muteproxy-Workspace and X-Muteproxy-Session. The body is a chat completion. Details are in the proxy guide.
Shield
Section titled “Shield”These routes are what the extension calls.
| Method | Path | Body |
|---|---|---|
POST |
/v1/shield/anonymize |
JSON { "text": "…" } or a multipart file |
POST |
/v1/shield/session |
Optional session_id. Returns session_id, hmac_key, and expires_in |
DELETE |
/v1/shield/session/{session_id} |
Purges that session |
text is required on the JSON form. An empty body is 422.
POST /v1/pii/anonymize and POST /v1/pii/deanonymize are the same engine for a caller that already holds a key. Prefer the shield routes from the extension and the native MCP tools from an agent.
Workspace
Section titled “Workspace”POST /v1/workspace/chat and POST /v1/workspace/documents/extract are the Safe AI door. Members use the chat host. They do not assemble these requests by hand.
| Mode | Path |
|---|---|
| Native tools | /v1/mcp/native |
| Your server, proxied | /v1/mcp/gateway/{id} |
Streamable HTTP. Send Accept: application/json, text/event-stream.