EditorInChief Documentation

API reference and MCP integration guide.

Authentication

Every request to api.editorinchief.io requires an Authorization header:

Authorization: Bearer <token>

Two token types are accepted:

TypeFormatHow to get one
Supabase JWTStandard RS256 JWTIssued on sign-in to dashboard.editorinchief.io
API keyeic_ followed by 64 hex charactersPOST /api/v1/keys

API keys never expire but can be revoked. Use them for server-to-server integrations and MCP clients (VS Code, Cursor, Claude Code).

Base URLs

REST API:   https://api.editorinchief.io/api/v1
MCP server: https://api.editorinchief.io/mcp/

Errors

REST errors return JSON with an error string and optional code:

{ "error": "Site not found", "code": "NOT_FOUND" }
HTTP statusMeaning
400Bad request — missing or invalid fields
401Missing or invalid bearer token
402Plan limit reached
404Resource not found
422Validation error
429Rate limit exceeded
500Internal error

MCP errors use JSON-RPC 2.0 error objects. Tool errors surface as code -32000 with a descriptive message.

Rate limits

Rate limiting uses a sliding window per user ID. Limits are generous for normal usage and exist to prevent runaway automation. If you hit a 429, back off exponentially.

Plan limits

PlanSitesBeats/siteArticles/month
Trial (14 days)1250
Pro3unlimited500
Businessunlimitedunlimitedunlimited

Where to go next

  • REST API reference — sites, beats, sources, articles, personas, clusters, ingest, API keys
  • MCP integration guide — connect VS Code / Cursor / Claude Code and manage your pipeline without leaving your editor