Skip to content

Create and manage lists

A list is one newsletter on one site. You need the Owner or Admin role to create or change one; every role can read them. A list is part of your draft: it takes sign-ups only from the next deploy, and every change to it reaches your sites after the deploy that follows.

  1. Create the group the newsletter will use at its delivery vendor:
    • Braze: create a subscription group in your Braze workspace and copy its id. Braze has no API that lists or creates subscription groups, so the id is copied by hand.
    • SendGrid: create an unsubscribe group in your SendGrid account. EdgeKit lists the account’s groups for you with the key saved in Delivery › Configuration › ESP. See SendGrid.
  2. Open Messaging › Configuration › Lists and select New list.
  3. Fill in the form:
    • Site: the site the list belongs to. It cannot change later.
    • Slug: lowercase letters, digits and underscores, starting with a letter, such as morning_briefing. Unique on the site, and it cannot change later: your code spells it in the generated types.
    • Label: up to 200 characters. Your preference centre shows it, and so does the confirmation email.
    • Description: optional, up to 1,000 characters. The confirmation email shows it beside the label, so a user joining two lists gets two emails that say which is which.
    • Delivery vendor: Braze or SendGrid. It cannot change later.
    • Vendor group id: on Braze, the subscription group id, up to 200 characters. EdgeKit cannot check it. On SendGrid, pick the unsubscribe group from the list EdgeKit reads live from your account; without a SendGrid key, or when SendGrid does not answer, the field names the reason instead. One group backs one list: a second list naming the same group is refused.
  4. Select Create list. The list is enabled.
  5. Deploy from Delivery › Deployments › Versions. See Stage and deploy a change.

On the list’s page, the List section edits the Label, the Description and the Vendor group id, typed on Braze and picked on SendGrid. The site, slug and delivery vendor are shown and fixed.

Changing the vendor group id on a list people have joined is risky. EdgeKit stops writing to the old group, and the old group keeps its members. Each user’s standing reaches the new group only when it next changes.

The list’s Subscribers section, and the list table, count EdgeKit’s standings:

  • Subscribed, Pending confirmation and Unsubscribed count users by status.
  • Not synced counts users whose current standing has not reached the list’s vendor yet, whatever their status. It overlaps the other three. On Braze, a user who unsubscribed and is not synced may still be getting mail.

A user’s own page in Identity › Audience › Users shows where they stand on each list and whether the vendor has been told. It is read-only: a standing changes through your own pages or the API, never from the console.

Lists are never deleted. To stop one, select Disable on its page and deploy. A disabled list leaves the deployed configuration:

  • GET /v1/newsletters/lists and GET /v1/newsletters/subscriptions no longer return it, and a sign-up naming it answers 404.
  • EdgeKit stops pushing it to its vendor. A standing not yet synced when you disable the list is stranded: it never reaches the vendor, and the vendor keeps what it has. Someone who unsubscribed just before you disabled the list stays subscribed there.
  • Its standings stay in EdgeKit.

Select Enable and deploy to bring the list back. It takes sign-ups again, and each stranded standing is pushed when it next changes.

edgekit types pull writes generated/newsletters.ts: every deployed list under its site id and slug, with its id, label and description. A disabled list is left out, so code that still names it fails to compile after the next pull.

edgekit.ai