These sample requests are autogenerated by the OpenAPI spec. This endpoint requires one or more parameters in the URL: those are offset in curly-braces.
The IDs and values referenced in these responses are fake; please only rely on these responses for overall structure.
All parameters are optional unless explicitly specified.
A list of attachment IDs present on the email. (See Attachments for more information.)
The date and time at which the email should be published in the future (for scheduled emails), or the date and time at which the email was published (for sent emails). Pass "none" to clear a scheduled date.
The subject line for the email.
"The subject line for the email"A human-readable description of the email, used for archives and SEO.
The URL of the original source of the content.
"https://sheinhardtwig.com/2025/01/17/our-nbc-partnership"The body of the email, in either HTML or markdown format. Buttondown attempts to intelligently detect the format of the body automatically, but you can also specify the format explicitly by prepending the text with the buttondown-editor-mode comment: <!-- buttondown-editor-mode: fancy --> or <!-- buttondown-editor-mode: plaintext -->.
"This is an example of the body of an email."The status of the email (e.g. draft, about_to_send, sent, scheduled).
If the email has been suppressed from sending, the reason why.
A structured key-value blob that you can use to store arbitrary data on the object. Metadata can be nested — you can store objects and arrays within your metadata. (You can read more about metadata.)
A primary image URL used when previewing the email on the web or in other contexts.
A short, human-readable identifier for the email, used in the archive URL.
"hello-world"An informal 'number' for the email, used in some templates (e.g. 'This was issue #123').
Tag-based filter rules determining which subscribers receive this email.
If present, this template overrides your newsletter's default email template. Pass "none" to clear an override.
Controls whether subscribers can comment on this email.
The draft review mode for the email. Use unlisted to allow draft comments via link, or disabled to turn draft comments off.
IDs of emails related to this one. Shown at the bottom of the email and archive pages.
Designated whether or not this email should be highlighted within the archives.
Whether this email should trigger pay-per-email billing for paid subscribers. Use this to differentiate between free updates and premium newsletters.