System operational. Zero-knowledge cryptographic perimeter active.
Developers & Autonomous Agents

Natrium API Developer Portal

Integrate zero-knowledge encrypted email, Direct MX outbound delivery, content-safety verification, and autonomous AI agent workflows using our OpenAPI 3.1 REST API, Streamable HTTP MCP servers, and zero-auth public sandbox.

Explore API DocsOpenAPI 3.1 Spec

Zero-Auth Sandbox

Validate payloads, Idempotency-Key handling, and async 202 jobs without touching live mailboxes.

  • No credentials or API keys required
  • Simulated AES-256-GCM & 2048-bit RSA DKIM
  • Supports async job polling via /api/v1/jobs
Open Sandbox

Dual MCP Surfaces

Connect AI hosts to public documentation or authenticated encrypted mailbox tools over Streamable HTTP.

  • Public Docs MCP at /api/docs/mcp
  • Mail MCP at /api/mcp with SEP-1649 card
  • Interactive MCP App view at ui://natrium/status-card.html
Configure MCP

Scoped Keys & OAuth 2.0

Self-serve API keys and autonomous agent_auth registration with granular mail and safety scopes.

  • Self-serve nak_live_ scoped keys in Settings
  • OAuth 2.0 PKCE S256 & ID-JAG assertions
  • RFC 9728 / RFC 8414 discovery metadata
Read auth.md

1. Quickstart & Live Public Sandbox

Test payload validation, simulated AES-256-GCM envelope formatting, and Idempotency-Key handling without authentication or side effects using https://natrium.sh/api/v1/sandbox.

curl -sS -X POST https://natrium.sh/api/v1/sandbox \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: test-run-001" \
  -d '{"action":"simulate_send","to":"alice@natrium.sh","subject":"Hello from Sandbox"}'

2. Scoped API Keys & OAuth 2.0 Agent Auth

Generate self-serve nak_live_ API keys from Settings โ†’ Developer API Keys inside your Natrium mailbox, or register an autonomous agent programmatically via OAuth 2.0 agent_auth and ID-JAG assertions. Full guide: /auth.md.

curl -sS https://natrium.sh/api/emails?folder=inbox \
  -H "Authorization: Bearer nak_live_your_scoped_key"

3. Model Context Protocol (Docs MCP + Mail MCP)

Connect AI coding assistants and agent hosts to either surface over Streamable HTTP:

  • Public Docs MCP (no auth): https://natrium.sh/api/docs/mcp (Server Card)
  • Product Mail MCP (OAuth 2.0 / API Key): https://natrium.sh/api/mcp (Server Card)
{
  "mcpServers": {
    "natrium-docs": {
      "url": "https://natrium.sh/api/docs/mcp",
      "transport": "streamable-http"
    },
    "natrium-mail": {
      "url": "https://natrium.sh/api/mcp",
      "transport": "streamable-http"
    }
  }
}

4. CLI & SDKs

Install the official natrium Linux CLI tool via the signed installer script or generate typed client SDKs from our OpenAPI 3.1 contract and reference source repository:

curl -fsSL https://natrium.sh/install.sh | bash
natrium --check-update