These sample requests are autogenerated by the OpenAPI spec.
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.
The auditing mode for your newsletter, which controls spam and abuse protection. See the Firewall for more information.
"enabled"Custom CSS styling applied to your newsletter emails. See CSS customization for more information.
".header { color: #000; }"Custom CSS tokens (variables) for your newsletter. These can be referenced in your CSS and templates to maintain consistent styling.
{
"primary-color": "#0069FF"
}The identifier for a custom email template. See email templates for available options.
"modern"A brief description of your newsletter, displayed on your public archive page and used for SEO.
"Stay up to date with the latest trends in wigs and hairpieces"The custom domain where your newsletter archives are hosted (e.g., 'newsletter.example.com'). See custom domains for setup instructions.
"sheinhardt.com"The 'From' email address used when sending your newsletter. Must be verified before use.
"newsletter@sheinhardt.com"The custom domain from which your newsletter emails are sent (e.g., 'mail.example.com'). See sending domains for setup instructions.
"mail.sheinhardt.com"A list of features enabled for your newsletter. Common values include 'archives', 'portal', 'surveys', 'comments', 'paid_subscriptions', 'automations', 'webhooks', 'tracking', and 'referrals'.
[
"archives",
"portal",
"surveys"
]HTML content displayed at the bottom of your newsletter emails. Supports template tags.
"<p>Thanks for reading!</p>"The display name shown in the 'From' field of your emails (e.g., 'Jane from Acme Newsletter').
"Sheinhardt Wig Company"HTML content displayed at the top of your newsletter emails. Supports template tags.
"<p>Welcome to our newsletter!</p>"URL to your newsletter's icon image, used as a favicon and in various UI contexts.
"https://example.com/icon.png"URL to your newsletter's header or branding image, displayed on archive pages and in social previews.
"https://example.com/header.jpg"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.)
The display name of your newsletter, shown to subscribers and on your archive page.
"Sheinhardt Wig Company"Whether test mode is enabled. When enabled, emails are not actually sent to subscribers, useful for testing automations and workflows.
The accent color for your newsletter, used in emails and on your archive page. Must be a valid hex color code.
"#0069FF"The unique URL-safe identifier for your newsletter, used in your archive URL (e.g., 'buttondown.com/username').
"sheinhardt"Custom CSS styling applied to your newsletter's web presence (archive pages, subscription forms, etc.).
".container { max-width: 800px; }"This endpoint may return the following error codes. See the error codes reference for more details about error handling.
| Error Code | Description |
|---|---|
username_already_exists | A newsletter already exists with that username. |
username_malformed | The username is malformed. |