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.
The background color for the announcement bar on your archive page. Must be a valid hex color code.
"#FF6600"Text displayed in the announcement bar on your archive page. Useful for promotions, updates, or calls to action.
"Subscribe to get 20% off your first order!"Controls who sees the announcement bar on your archive page.
"everyone"The visual theme for your newsletter's archive page. See archive themes for previews.
"modern"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 body content for the email sent when a paid subscriber cancels. Supports template tags like {{ subscriber.email }} and {{ newsletter.name }}.
"Hi {{ subscriber.email }},
We're sorry to see you go!"Custom subject line for the email sent when a paid subscriber cancels. Supports template tags like {{ newsletter.name }}.
"You've canceled your premium subscription to {{ newsletter.name }}"The email template to use for churn emails. If not set, uses the newsletter's default template.
"modern"The identifier for a custom email template. See email templates for available options.
"modern"Custom body content for the email sent when a subscriber's free trial expires. Supports template tags.
Custom subject line for the email sent when a subscriber's free trial expires. Supports template tags.
The email template to use for expired trial notification emails. If not set, uses the newsletter's default template.
"modern"Custom body content for the email sent when someone receives a gift subscription. Supports template tags.
Custom subject line for the email sent when someone receives a gift subscription. Supports template tags.
The email template to use for gift subscription emails. If not set, uses the newsletter's default template.
"modern"Custom body content for the email sent when a gift subscription ends. Supports template tags.
Custom subject line for the email sent when a gift subscription ends. Supports template tags.
The email template to use for gift unsubscription emails. If not set, uses the newsletter's default template.
"modern"Custom body content for the email sent when a subscriber upgrades to a paid plan. Supports template tags.
Custom subject line for the email sent when a subscriber upgrades to a paid plan. Supports template tags.
The email template to use for premium confirmation emails. If not set, uses the newsletter's default template.
"modern"Custom subject line for the double opt-in confirmation email sent to new subscribers. Supports template tags.
Custom body content for the double opt-in confirmation email. Must contain {{ confirmation_url }} as an HTML or Markdown link.
The email template to use for subscription confirmation emails. If not set, uses the newsletter's default template.
"modern"Custom subject line for the reminder email sent to subscribers who haven't confirmed. Supports template tags.
Custom body content for the reminder email sent to subscribers who haven't confirmed. Supports template tags.
Custom subject line for the email sent after a subscriber confirms their subscription. Supports template tags.
Custom body content for the email sent after a subscriber confirms their subscription. Supports template tags.
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 dictionary of CSS token overrides for the email theme.
{
"primary-color": "#0069FF"
}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"The language/locale for your newsletter's UI elements (confirmation emails, unsubscribe pages, etc.). See localization for supported locales.
"en"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.)
{
"source": "my-app",
"tier": "pro"
}The display name of your newsletter, shown to subscribers and on your archive page.
"Sheinhardt Wig Company"An alternative email address that receives replies to your newsletter emails, instead of the sending address.
"newsletter@sheinhardt.com"A list of social networks to show share buttons for on your archive pages.
[
"twitter",
"facebook",
"linkedin"
]A list of social media accounts linked to your newsletter, displayed on your archive page. Each entry has a type, url, and optional label.
[
{
"label": null,
"type": "twitter",
"url": "https://x.com/sheinhardt"
}
]A URL to redirect subscribers to after they confirm their subscription via double opt-in.
"https://example.com/confirmed"A URL to redirect subscribers to immediately after they submit the subscription form (before confirmation).
"https://example.com/thanks"The default email template for your newsletter. See email templates for available options.
"modern"Whether test mode is enabled. When enabled, emails are not actually sent to subscribers, useful for testing automations and workflows.
Custom theme configuration (variables) for your newsletter. These can be referenced in your CSS and templates to maintain consistent styling.
{
"primary-color": "#0069FF"
}The timezone used for scheduling and displaying dates in your newsletter (e.g., 'America/New_York', 'Europe/London').
"America/New_York"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; }"