docswrite-publish-post
Publish Google Docs to one or more Docswrite connections as drafts, live posts, or scheduled posts; converts headings, images, links, and tables, then returns status and URL.
Instructions
Publish a Google Doc to one or more connections of the organization (ids from docswrite-list-connections). Docswrite converts the doc (headings, images, links, tables) and publishes it; one request per connection. state: draft (default), published, or scheduled (with publish_date, optionally timezone). Basic options (tags, categories, canonical_url, excerpt, slug, featured_image_url, author, post_type) apply where the platform supports them; a connection that does not support a given option is skipped with an explanation instead of being published without it. Waits up to wait_seconds for the results and returns each connection's status and live URL (or error). The Google Doc must be readable by the Docswrite user who created the API key. X and LinkedIn cannot be published to through the API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | URL slug (WordPress, hosted blog, Shopify, GitHub, Ghost) | |
| tags | No | Tag names (array or comma-separated). WordPress creates missing tags; Dev.to keeps 4, Hashnode 5, Medium 3 | |
| state | No | draft (default), published (live now), or scheduled (needs publish_date) | draft |
| title | No | Post title. Defaults to the Google Doc title | |
| author | No | Author name, username or email (WordPress, Shopify, GitHub) | |
| excerpt | No | Excerpt / description (WordPress, hosted blog, GitHub, Dev.to, Ghost) | |
| timezone | No | IANA time zone for a wall-clock publish_date, e.g. America/New_York. Defaults to the connection's time zone | |
| post_type | No | WordPress only: post (default) or page | |
| categories | No | Category names (WordPress, GitHub) | |
| google_doc | Yes | Google Doc URL (https://docs.google.com/document/d/<id>/edit) or document ID | |
| publish_date | No | For state=scheduled: a future date, either ISO 8601 with offset (2026-10-01T09:00:00Z) or a wall-clock time YYYY-MM-DDTHH:mm read in `timezone` | |
| wait_seconds | No | How long to wait for the results (default 90, 0 = return job ids at once) | |
| canonical_url | No | Canonical URL (Dev.to, Hashnode, Medium, Ghost; WordPress via Yoast SEO) | |
| connection_ids | Yes | Connection ids to publish to (array, or one id / comma-separated ids) | |
| idempotency_key | No | Reuse the same key to retry safely: within 24 h a repeat returns the first result instead of publishing twice. Default: a new key per call | |
| platform_options | No | Advanced per-platform options; each block only applies to connections on that platform | |
| featured_image_url | No | Featured/cover image URL. By default the first image in the doc is used where supported |