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.
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.
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"}'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 mcp add docswrite -e DOCSWRITE_TOKEN=YOUR_API_TOKEN -- npx -y github:Docswrite/docswrite-mcp
{
"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.
- 1Copy the API token of a WordPress connection above.
- 2In Zapier, create a Zap and pick Docswrite as the action app.
- 3When Zapier asks you to sign in to Docswrite, paste the token.
- 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.
- 1In Google Docs, open Extensions → Add-ons → Get add-ons.
- 2Search for Docswrite and install it.
- 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.