Publish a draft
publish_draftPublish a draft post to Substack, emailing all subscribers or posting web-only. Requires explicit confirmation to prevent accidental sends.
Instructions
Publish a draft immediately. With send: true this emails every subscriber you have, and an email cannot be unsent. The post also becomes publicly visible. Refuses to run without confirm: true. To put a post live without emailing anyone, pass send: false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Draft id to publish. | |
| send | No | Email the post to subscribers. true sends to your whole list and cannot be undone. false publishes to the web only. | |
| confirm | No | Must be true for this to run. This action cannot be undone, so it is refused without an explicit confirmation. | |
| publication | No | Which connected publication to act on, matched loosely against its hostname (for example 'example.substack.com' or just 'example'). Defaults to the first connected publication. |