Newsletters
Collect sign-ups
Share a hosted sign-up page, or send sign-ups from your own website's form. Ternwire asks each person to confirm.
Newsletters go only to people who confirmed they want them. When someone signs up, Ternwire emails them a link to confirm, and only that link adds them to your list.
Share a sign-up page
Under Collect sign-ups on the audience page, turn on a sign-up page that Ternwire hosts. Share its link, print its QR code, or paste the Embed on your website form into any site builder. Visitors enter their email, tick the consent box and pass a check that they are a person. Every visitor sees the same answer, so the page never reveals who is already on the list. The consent wording and your privacy policy link from Edit audience are stored with each sign-up. Turning the page off stops its link, and turning it on again gives a new one.
Connect your website's sign-up form
If your website has its own form, it can send each sign-up to an audience from your server. Never call the API from the visitor's browser, because that would expose your API key.
- Create a live API key with the
contacts:writescope on the dashboard's API keys page, and store it on your server asTERNWIRE_API_KEY. - Copy the audience ID from the audience page, under Collect sign-ups, For developers.
- When your form is submitted, request the subscription with a new idempotency key for each submission:
import { TernwireClient } from "ternwire";
const ternwire = new TernwireClient({ apiKey: process.env.TERNWIRE_API_KEY });
// In your form's server handler
await ternwire.requestSubscription(
"audience_123",
{ email: form.email, consent: { source: "Sign-up form on example.com" } },
crypto.randomUUID(),
);The person gets the confirmation email from the audience's confirmation sender and joins once they click the link. Show them a message such as "Check your inbox to confirm" after the form is sent.
How confirmation works
Create an audience with a confirmation sender on your newsletter domain. When someone signs up, call POST /v1/audiences/:audienceId/subscriptions with an Idempotency-Key and your record of how you asked. The contact starts as pending and receives a confirmation email. Only the confirmation link makes the subscription confirmed. Your consent record never does that alone.
POST /v1/audiences/audience_123/subscriptions
Idempotency-Key: signup-ada-2026-10-11
{
"email": "ada@example.com",
"attributes": { "first_name": "Ada" },
"consent": {
"source": "newsletter form on example.com",
"policyVersion": "privacy-2026-09",
"wording": "Send me product news. I can unsubscribe at any time."
}
}consent.source is required. policyVersion and wording are optional: send them if you version your privacy policy or want the exact text people agreed to on record.
Confirmation links expire after 7 days. Repeated requests for the same address are throttled, and each workspace can send up to 500 confirmation emails in a rolling 24 hours. They are not billed. The response tells you whether a confirmation was sent, held until newsletters turn on or until the next day's allowance, throttled, or not needed because the contact is already confirmed.