Skip to content

EdgeKit

EdgeKit is a platform for news and media organizations. With EdgeKit Email & Push Editions, editors build each edition of a newsletter from their CMS content in EdgeKit, and Braze delivers it by email and push. EdgeKit writes each user’s profile fields to Braze and keeps newsletter sign-ups in sync with Braze subscription groups, so Braze sends to the right people.

This integration is maintained by EdgeKit.

How it works

The EdgeKit and Braze integration syncs user profiles and newsletter subscription lists from EdgeKit into Braze, then delivers each edition through Braze as email and push. EdgeKit holds the user profiles, newsletter lists, sign-up and preference APIs, and the editor where an edition is filled with stories from your CMS. Braze holds a copy of each profile, the segments, and delivery.

Capability Description
Profile sync EdgeKit writes the profile fields you choose, such as email, first_name, and country, to each user’s Braze profile with /users/track, and again every time the profile changes. Erasing a user in EdgeKit deletes their Braze profile.
Subscription sync Each EdgeKit list mirrors into one Braze subscription group. EdgeKit writes every change to a user’s lists to Braze, and unsubscribes made in Braze flow back to EdgeKit through a webhook.
Edition sends At send time, EdgeKit renders the edition once and sends it through your Braze API campaign with /messages/send, as email, iOS push, and Android push. Every send is counted under your campaign and message variation, so results appear in Braze campaign analytics.
Per-recipient content Use recommended stories or personalized content that Braze fills in for each recipient with Connected Content.

Use cases

  • Build daily and weekly newsletters from your CMS. Editors pick stories or let a feed fill the edition at send time. No HTML is pasted into Braze.
  • Send breaking news by email and push. One edition goes out on both channels from one screen.
  • Migrate to Braze from another ESP. Templates, lists, and unsubscribes live in EdgeKit, so a newsletter moves to Braze by switching its sender.
  • Run A/B testing across website, paywall, and email. A user in arm B sees arm B’s page and paywall, and arm B’s subject and stories in the email.
  • Personalize editions by filling a slot with each recipient’s recommended stories through Connected Content.
  • Create Braze profiles from EdgeKit. EdgeKit writes each user’s email address and chosen profile fields to Braze. A new workspace needs no import, and segments can filter on any field EdgeKit derives for you.
  • Add campaign attribution with UTM parameters and Braze tags, such as campaign_id and dispatch_id, to every link in an edition.

Prerequisites

Before you start, you need the following:

Prerequisite Description
An EdgeKit account An EdgeKit account with EdgeKit Newsletters and EdgeKit Email & Push Editions is required for this integration. You need the Owner, Admin, or Developer role to set up the integration.
A Braze REST API key A Braze REST API key with the following permissions:
- users.track
- subscription.status.set
- subscription.status.get
- subscription.groups.get
- messages.send
- sends.id.create
- campaigns.list
- campaigns.details
- segments.list
- segments.details

Add users.delete if you configure EdgeKit to sync profile deletions to Braze. Create this key in the Braze dashboard from Settings > APIs and Identifiers > API Keys. Braze cannot change a key’s permissions after you create it, so add all of them when you create the key.
A Braze REST endpoint Your REST endpoint URL. Your endpoint depends on the Braze URL for your instance. For example, https://rest.iad-01.braze.com.
A Braze app identifier The app identifier of the app your emails are sent under, from Settings > APIs and Identifiers. Braze needs one on every email.
A choice of Braze external_id Configure EdgeKit with the value your Braze profiles use as their external_id: the EdgeKit user ID, or your own user ID from your identity provider. Each profile must also hold the user’s email address.

Integrating EdgeKit

Step 1: Connect your Braze workspace in EdgeKit

  1. In the EdgeKit console, go to Delivery > Configuration > Channel ESP and open the Braze tab.
  2. Enter your Braze REST API key and REST endpoint, then save. EdgeKit checks them against Braze and does not save a key Braze answers 401 to.
  3. Go to Messaging > Configuration > Channels and add a channel of type Email, with your Braze app identifier as the Braze app ID.
  4. If you send push, add a channel of type Push. It needs no app identifier.

Step 2: Mirror your lists into Braze subscription groups

  1. In Braze, go to Audience > Subscription Group Management and create one email subscription group for each newsletter. Copy its ID.
  2. In EdgeKit, go to Messaging > Configuration > Lists, create the list, and paste the ID as its Vendor group id.
  3. Deploy from Delivery > Deployments > Versions.

From then on, EdgeKit sets each user’s state in the subscription group with /v2/subscription/status/set whenever their lists change.

Step 3: Send Braze unsubscribes back to EdgeKit

EdgeKit is the record of who is on which list. So that an unsubscribe made in Braze is not undone by EdgeKit’s next sync, create two webhook campaigns in Braze.

  1. Create a webhook campaign with Action-Based delivery for each list. Trigger: Update Subscription Group Status, Unsubscribed, on the list’s subscription group.
  2. Create one more for global unsubscribes. Trigger: Update Subscription Status, Email, Unsubscribed.
  3. Give every one of these campaigns this request:
    • URL: https://YOUR_TENANT.edgekit.cloud/v1/webhooks/braze/subscriptions
    • Method: POST
    • Headers:
      • Authorization: Bearer YOUR_WEBHOOK_SECRET (use the secret EdgeKit gives you)
      • Content-Type: application/json
  1. Use this body for a list’s campaign. For the global campaign, set "scope": "global" and leave out subscription_group_id.
{
  "scope": "group",
  "state": "unsubscribed",
  "subscription_group_id": "YOUR_SUBSCRIPTION_GROUP_ID",
  "external_id": "{{${user_id}}}",
  "email": "{{${email_address}}}",
  "occurred_at": "{{ 'now' | date: '%Y-%m-%dT%H:%M:%SZ' }}"
}
  1. On every one of these campaigns, turn re-eligibility on with the shortest window, turn off frequency capping and rate limiting, target all users, and exclude the campaign from any Global Control Group.

Step 4: Create the campaign and segments for a publication

A publication is one newsletter in EdgeKit. Each send of it is an edition.

  1. In Braze, create one API campaign for the publication. Add an email message, and an iOS push and an Android push message if you send push. Do not archive it.
  2. In Braze, create one segment of the users the publication goes to, filtered on the list’s subscription group.
  3. In EdgeKit, go to Messaging > Configuration > Segments and add the segment, picked from your workspace’s list.
  4. Go to Messaging > Email & Push Editions > Publications, create the publication, and on its ESP Configuration tab pick the campaign, the segment, and the message IDs. EdgeKit checks every ID against Braze before it saves.
  5. Deploy from Delivery > Deployments > Versions.

Customizing EdgeKit

Step 1: Send variants of an edition

  1. In Braze, add one message to the API campaign for each variant and channel.
  2. Create one segment for each variant, filtered on the subscription group and on a Random Bucket # range that is the variant’s share. The ranges must not overlap.
  3. In EdgeKit, add each segment in Messaging > Configuration > Segments, then pick each variant’s segment and message IDs on the publication’s ESP Configuration tab.
  1. In EdgeKit, go to Messaging > Configuration > Link templates and add a template with Braze as its messaging provider.
  2. Add parameters, such as utm_campaign = {publication}-{edition_date}. A value can use the Braze tags ${user_id}, ${braze_id}, ${email_address}, campaign.${api_id}, campaign.${dispatch_id}, and campaign.${name}.
  3. Pick the template in the publication’s settings. It is added to every link to the publication’s own site.

Step 3: Add personalized stories with Connected Content

  1. In EdgeKit, issue an API key pinned to the publication’s site.
  2. In Braze, go to Settings > Credential Management and add a token credential named exactly edgekit, with the header x-api-key and the API key as its value.
  3. In EdgeKit, fill a slot of the publication from a personalized feed. Braze then asks EdgeKit for each recipient’s stories when it renders their message.

Step 4: Sync profile fields to Braze

  1. Tell EdgeKit which profile fields to send, such as email, first_name, and country, and from which site.
  2. Deploy. The deploy writes every existing user’s profile to Braze with /users/track, and EdgeKit writes it again each time the profile changes. Up to 100 fields can be sent. A field with no value is removed from the Braze profile.
  3. When a user is erased in EdgeKit, EdgeKit deletes their Braze profile with /users/delete. This needs the users.delete permission.

Using EdgeKit with Braze

Step 1: Sign users up

  1. From your sign-up form or your server, send the lists a user wants to EdgeKit:
curl -X PUT https://YOUR_TENANT.edgekit.cloud/v1/newsletters/subscriptions \
  -H 'x-edgekit-site-id: YOUR_SITE_ID' \
  -H 'Authorization: Bearer YOUR_EDGEKIT_API_KEY' \
  -H 'content-type: application/json' \
  -d '{"email": "[email protected]", "subscribed": ["YOUR_LIST_ID"]}'
  1. If the site asks for double opt-in, EdgeKit emails the confirmation link itself. The user reaches Braze after they confirm.
  2. Check the result in Braze: the user’s profile shows Subscribed on the list’s subscription group within a few minutes.

Step 2: Write and test an edition

  1. In EdgeKit, go to Messaging > Email & Push Editions > Publications, open the publication, and select New edition.
  2. Write the subject and preheader, and fill the slots with stories and text.
  3. Send a test. It goes through Braze to the users in an EdgeKit test group, by their external_id, and is not counted in the campaign’s numbers.

Step 3: Schedule and send

  1. Schedule the edition. At send time, EdgeKit renders it and calls Braze once for each variant.
  2. Braze delivers it to the subscribed users in each variant’s segment.

Step 4: Read the results in Braze

  1. In Braze, open the publication’s API campaign. Every edition is counted there, each variant under its own message variation.
  2. Use Braze campaign analytics and segment filters on these sends as on any other campaign.

Considerations

  • EdgeKit is the record of subscriptions. EdgeKit never reads a user’s subscription state back from Braze. A change made in Braze reaches EdgeKit only through the webhook campaigns in Step 3, and only unsubscribes are applied.
  • Braze needs each user’s email address. EdgeKit writes it only when you have EdgeKit send the email profile field. Otherwise, putting it on the profile is up to you.
  • Profile fields are sent whole. Every write carries all the fields you chose, and each one counts toward your Braze data points. A field you stop sending keeps its last value in Braze until you remove it there.
  • Only known users are synced. Anonymous visitors have no EdgeKit profile, so nothing is written for them. Fields come from the profile of one site, the one you choose.
  • Identifiers and subscription state are never sent as fields. EdgeKit refuses external_id, braze_id, user_alias, email_subscribe, push_subscribe, and subscription_groups as field names.
  • An edition is sent at most once. Braze cannot recognize a repeated /messages/send call, so EdgeKit never retries one on its own. After a timeout the send is marked Unknown, and resending it may deliver it twice.
  • Variant segments must not overlap. A user in two of them gets the edition twice. EdgeKit cannot see who is in a Braze segment.
  • Editions carry EdgeKit’s unsubscribe link. Every email has EdgeKit’s own unsubscribe link and List-Unsubscribe headers, signed for each recipient with Braze Liquid. Do not add Braze’s unsubscribe link to an edition.
  • No content is stored in Braze. EdgeKit sends each message body whole. It creates no templates, Content Blocks, campaigns, or segments in your workspace.
  • EdgeKit checks push payloads against 1,912 bytes on iOS and 4,000 bytes on Android before an edition can be scheduled.
  • Setup changes need a deploy. A change to a list or to a publication’s Braze IDs takes effect after your next EdgeKit deploy.

Troubleshooting

Issue Steps
The API key is not saved Braze answered 401. Check the key and that the REST endpoint matches your Braze instance.
“Braze answered 403” when you save a publication or a segment The key lacks campaigns.details or segments.details. Create a new key with every permission in Prerequisites.
“Braze did not answer, so the Braze ids could not be checked” Braze was unreachable. Save again.
A test send fails or does not arrive Check the email channel’s Braze app ID, and that each tester has a Braze profile whose external_id is their EdgeKit user ID, with an email address.
A list shows users as Not synced Check the list’s Vendor group id and the key’s subscription.status.set permission. The user’s Newsletters section in EdgeKit shows Braze’s message.
A user who unsubscribed in Braze is subscribed again The webhook campaigns in Step 3 are missing, rate limited, or frequency capped.
The webhook answers 401 or 503 401: the bearer secret is wrong. 503: EdgeKit holds no webhook secret for your organization yet. Contact EdgeKit.
A user gets an edition twice Two variants’ segments overlap. Fix the Random Bucket # ranges.
Messages with a personalized feed are aborted The Connected Content credential named edgekit is missing or holds a revoked EdgeKit API key.

Support

For more detail, see the EdgeKit Braze documentation, or contact EdgeKit support.

New Stuff!