Chapter 3 · Collect

Start creating
Unplain Menu

The Unplain API and developer docs

Most of what the Unplain app does, an AI assistant or your own script can do through the Unplain MCP server: create, design, export and publish guides, and read how they are doing, on the same account and plan. This page is the index of every machine-readable file Unplain publishes.

Prefer the spec? OpenAPI 3.1

The 30 tools

  • Documents8
  • Export2
  • Brand6
  • Lead magnets8
  • Leads and numbers3
  • Library and account3
  • create_ebook
  • create_ebook_from_url
  • update_ebook
  • get_ebook
  • list_ebooks
  • preview_ebook
  • get_design_options
  • set_image_from_url
  • export_ebook
  • get_export_status
  • and 20 more

The MCP server

The Unplain MCP server.

Model Context Protocol over Streamable HTTP, on every plan.

Endpoint
https://app.unplain.io/api/mcp
Transport
Streamable HTTP
Sign in
Claude, Claude Code and ChatGPT (Business, Enterprise and Edu) connect by signing in to Unplain
API key
Codex and your own scripts send Authorization: Bearer unp_…
Claude Code, in your terminal
claude mcp add --transport http unplain https://app.unplain.io/api/mcp

Full setup for each client, and what to do when it breaks, is on How it works with your AI. Call tools/list for the current schemas: that is the authoritative surface.

Machine-readable files

Predictable URLs, built to stay.

Served with permissive CORS. If one ever moves, it keeps answering at the old address.

  • /llms.txt Markdown

    Every page on this site with a one-paragraph summary. Start here to learn what Unplain is without crawling.

  • /openapi.json OpenAPI 3.1

    The HTTP API: the MCP endpoint and the public feature-request board, with every error code and response shape.

  • /.well-known/mcp.json MCP server.json

    How to connect an AI client: transport, endpoint and how it authenticates. Also at /mcp.json.

  • Every indexable URL.

  • Crawling rules. Every major search and AI crawler is allowed.

Any page, as Markdown
curl -s -H "Accept: text/markdown" https://unplain.io/developers

Every error under /api is JSON, never an HTML page, with a stable error code to branch on. Every code is in the OpenAPI document.

Questions

Developer questions, answered.

Short answers, with the page that owns each subject.

Is there a REST API?

Not as REST. The MCP server is the programmatic interface, and it covers the whole workflow: create a guide from Markdown or a link, edit it, apply a Brand Theme, export the PDF, publish it with an email form and read how it is doing. It is JSON-RPC, which is why /openapi.json documents one endpoint rather than one per tool.

Do I need a paid plan?

No. The MCP server works on every plan, free included. A connection carries exactly the account's plan, so the same limits apply in the app and through an assistant. There is no separate API tier.

How do I authenticate?

Claude, Claude Code and ChatGPT (Business, Enterprise and Edu) connect by signing in to Unplain, with no key. For Codex and your own scripts, create an API key in Account settings, API keys, and send it as an Authorization: Bearer header. Keys start with unp_ and are shown once. Reading your leads is a separate permission you choose to allow, on the consent screen or when you create the key.

Can I get these pages as Markdown?

Yes. Send Accept: text/markdown to any URL on unplain.io and you get the page content as Markdown, without navigation, styles or scripts. The response carries Vary: Accept, so a cache cannot hand you the wrong one.

Is there a webhook?

For leads, yes: set one webhook per workspace in the app, and each new sign-up is posted to your URL as JSON, signed with an X-Unplain-Signature header. Sign-ups over your plan's monthly leads are sent once they are unlocked. Exports are polled: export_ebook returns a job, and get_export_status reports on it until the PDF is ready.

Connect once, then ask for a guide.

Connect your AI