System operational. Zero-knowledge cryptographic perimeter active.
Platform Reference & Contracts

Natrium API & Developer Documentation

Natrium provides open, machine-readable endpoints for REST integrations, Model Context Protocol (MCP) clients, Google Agent-to-Agent (A2A) workflows, WebMCP browser agents, NLWeb queries, and Search for Agents. All API responses return RFC 7807 Problem Details errors and IETF RateLimit headers.

Try Live SandboxOpenAPI 3.1 Spec

Model Context Protocol (MCP) Streamable HTTP

Discover capabilities statelessly via server/discover or initialize a session at https://natrium.sh/api/mcp. The SEP-1649 Server Card is published at /.well-known/mcp/server-card.json and /.well-known/mcp.json.

Public read-only tools such as ask and verify_content_safety as well as the MCP App HTML card at ui://natrium/status-card.html require no bearer token. Mailbox operations require an OAuth 2.0 Bearer token or scoped API key.

curl -sS https://natrium.sh/api/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"server/discover"}'

curl -sS https://natrium.sh/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'

Search for Agents & NLWeb Ask Endpoint

Instead of fetching multiple HTML pages, agents can query the lightweight Markdown search index at https://natrium.sh/.well-known/search?q={query} or retrieve Schema.org structured answers from https://natrium.sh/ask?query={query}&streaming=false.

curl -sS "https://natrium.sh/.well-known/search?q=encryption"
curl -sS "https://natrium.sh/ask?query=what+does+this+site+offer&streaming=false"

REST API & JavaScript Integration

The OpenAPI 3.1 schema at https://natrium.sh/openapi.json and the RFC 9727 catalog at /.well-known/api-catalog describe every public endpoint, authentication scope, and schema. Read the Agent Auth guide for OAuth 2.0 ID-JAG and ephemeral token exchange.

const res = await fetch('https://natrium.sh/ask?query=pricing&streaming=false');
const data = await res.json();
console.log(data.results.map((item) => item.name));

API Versioning, Pagination & Async Jobs

  • Versioning & Deprecation Policy: Responses carry API-Version: 1.0.0 matching OpenAPI info.version. Breaking changes increment the major version; deprecated endpoints emit RFC 9745 Deprecation and RFC 8594 Sunset headers with at least 90 days advance notice.
  • Pagination: GET /api/emails accepts limit, offset, and cursor parameters and returns nextCursor and hasMore.
  • Async Jobs & Idempotency: Mutating POST routes accept Idempotency-Key. Sending {"async": true} to POST /api/v1/sandbox returns 202 Accepted with a Location header and pollUrl at GET /api/v1/jobs/{jobId}.
  • MCP Apps / Generative UI: Both Docs MCP and Mail MCP expose interactive HTML views at ui://natrium/status-card.html (text/html;profile=mcp-app).

CLI Installer & Repository Source

On Linux, install the official Natrium launcher and update utility (natrium) directly from https://natrium.sh/install.sh, or browse all signed desktop and mobile binaries on the Downloads page. Source code is hosted on GitHub (NatriumTechnologies/natrium-server).

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

Machine-Readable Specifications Index

All machine-readable manifests return permissive CORS headers and structured JSON or Markdown payloads.

{
  "openapi": "https://natrium.sh/openapi.json",
  "mcp": "https://natrium.sh/api/mcp",
  "mcpServerCard": "https://natrium.sh/.well-known/mcp/server-card.json",
  "a2aAgentCard": "https://natrium.sh/.well-known/agent-card.json",
  "webmcp": "https://natrium.sh/.well-known/webmcp.json",
  "nlwebAsk": "https://natrium.sh/ask?query=what+does+this+site+offer&streaming=false",
  "searchForAgents": "https://natrium.sh/.well-known/search?q=security",
  "aiCatalog": "https://natrium.sh/.well-known/ai-catalog.json"
}