Automation

Publish from your own code, Zapier, AI assistants and Google Docs.

New: one workspace key for every connection

Org API keys publish to any connection. The per-site tokens below keep working.

Create an API key

Publishing templates

Saved destinations, settings and publishing mode. Pick one in Create post and publish in a few clicks.

No templates yet

In Create post, set up your destinations and settings once, then choose “Save as template”.

Per-site tokens (API & MCP)

Each connection has its own API token, valid for a year. Send it as ?token= or an x-access-token header.

Tokens publish to WordPress connections (application password or plugin) today. Other platforms publish from the dashboard. Copy a token above and the snippets below will include it.

Publish a Google Doc
curl -X POST "https://api.docswrite.com/api/export?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"google_docs_url":"https://docs.google.com/document/d/DOC_ID/edit","state":"draft"}'
Check the job
curl -X POST "https://api.docswrite.com/api/job/status" \
  -H "x-access-token: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"jobId":"JOB_ID","queueType":"post"}'

MCP server

Let Claude, Cursor or any MCP client create Google Docs and publish them. It runs with npx, nothing to build. With this token it publishes to this site; use an org API key (API Keys page) instead to publish to every connection.

Claude Code
claude mcp add docswrite -e DOCSWRITE_TOKEN=YOUR_API_TOKEN -- npx -y github:Docswrite/docswrite-mcp
Claude Desktop / Cursor (mcp.json)
{
  "mcpServers": {
    "docswrite": {
      "command": "npx",
      "args": [
        "-y",
        "github:Docswrite/docswrite-mcp"
      ],
      "env": {
        "DOCSWRITE_TOKEN": "YOUR_API_TOKEN"
      }
    }
  }
}

Zapier

Publish a Google Doc when something happens in another app: a new Trello card, a ClickUp task, a form entry.

  1. 1Copy the API token of a WordPress connection above.
  2. 2In Zapier, create a Zap and pick Docswrite as the action app.
  3. 3When Zapier asks you to sign in to Docswrite, paste the token.
  4. 4Map the Google Doc URL (and title, tags, status) from your trigger, then turn the Zap on.

Google Docs add-on

Publish straight from the Google Docs sidebar.

  1. 1In Google Docs, open Extensions → Add-ons → Get add-ons.
  2. 2Search for Docswrite and install it.
  3. 3Open it from Extensions → Docswrite and sign in with this account.

WordPress plugin

Connect a site without an application password, e.g. behind a firewall or with security plugins.