Skip to content

Newsletters

EdgeKit Newsletters holds your newsletter lists and where each user stands on each one. Your sign-up form and your preference centre change a user’s lists through EdgeKit’s API. EdgeKit then tells the list’s delivery vendor, Braze or SendGrid. EdgeKit’s record is the one that counts: the vendor is kept in step with it, not the other way round.

A list is one newsletter on one site, such as a morning briefing. Each list mirrors into one group at its delivery vendor: a Braze subscription group or a SendGrid unsubscribe group. Two sites in your organization can each run a list with the same slug.

A user’s standing on a list is one of:

Status Meaning
subscribed The user is on the list.
pending The user signed up and has not yet clicked the confirmation link. Never sent to a vendor.
unsubscribed The user left the list.
unknown EdgeKit holds nothing for this user on this list. Answered, never stored.

A standing is its own record, one per user per list. A user is one record across your sites, but joining one list never puts them on another list, and agreeing to analytics puts them on none. See Record consent.

EdgeKit also keeps a record of every change to a standing: the status it moved to and how it arrived, such as a sign-up form, your server, a confirmation link or an unsubscribe link.

  1. Your page or your server sends the lists a user wants with PUT /v1/newsletters/subscriptions. See Sign users up.
  2. An address EdgeKit has never seen becomes a new user, attached to the site. Browsing alone never creates one.
  3. If the site asks for confirmation, the standing is pending and EdgeKit emails a confirmation link. The click makes it subscribed.
  4. EdgeKit pushes the user’s standings on that site to each list’s vendor. See Sync to Braze and SendGrid.
  5. A publication sends editions to the list. On Braze, Braze sends them; on SendGrid, EdgeKit sends them through SendGrid.
  1. Create the group for the newsletter. On Braze, create a subscription group in your Braze workspace and copy its id. On SendGrid, save your SendGrid key in Delivery › Configuration › ESP and create an unsubscribe group in your SendGrid account.
  2. Create the list in Messaging › Configuration › Lists: on Braze with the group’s id, on SendGrid by picking the unsubscribe group. See Create and manage lists.
  3. Deploy. A list takes no sign-ups until it is in the deployed configuration. See Stage and deploy a change.
  4. Pull the generated types with edgekit types pull. It writes generated/newsletters.ts, with every deployed list’s id under its site and slug. The API names a list by its id, never by its slug.
  5. Build the form. Read the lists, read the user’s standings and write them back. See Sign users up.

EdgeKit must also hold your organization’s key for the list’s vendor, saved in

Delivery › Configuration › ESP. Until it does, standings are kept in EdgeKit and none reaches that vendor. See Braze and SendGrid.

Path Served on
/v1/newsletters/lists, /v1/newsletters/subscriptions Your tenant host, and /edgekit/v1/... on your domain
/v1/newsletters/confirm, /v1/newsletters/unsubscribe Your tenant host only

The links in confirmation emails and editions always point at your tenant host. See Mount /edgekit/ on your domain.

Questions are answered in the Newsletters FAQ.

edgekit.ai