publish_post
Publish a post and email it to subscribers in one irreversible action. Use only when explicitly instructed to send.
Instructions
Publish a post AND email it to a newsletter's subscribers. SENDS REAL EMAIL.
This is outward-facing and irreversible: it emails the post to members the
moment it publishes (or at scheduled_at). Only call it on explicit user
instruction to send. To publish WITHOUT emailing, use
update_post(status="published") instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | The post to publish and send. | |
| scheduled_at | No | Optional ISO 8601 time to schedule the send; if given, the post is scheduled and Ghost emails it automatically then. Omit to send now. | |
| email_segment | No | Which members receive it, as an NQL filter: ``all`` (default), ``status:free``, or ``status:-free`` (paid). | all |
| newsletter_slug | Yes | The newsletter to send through (from ``list_newsletters``). An archived or unknown slug means no email is sent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||