Skip to content

Sync to Braze

EdgeKit keeps each user’s standings and copies them into Braze, one Braze subscription group per list. EdgeKit’s standing is the record that counts: a sync always sends EdgeKit’s whole current answer, never a single change.

When a user’s standing changes on a site, EdgeKit waits until their changes stop for about 10 seconds, or 5 minutes at most. It then sends Braze every standing the user holds on that site’s deployed lists, in one call:

  • subscribed and unsubscribed standings set the user’s state in each list’s subscription group.
  • pending standings are not sent. Braze hears about a list only once its confirmation link is clicked.
  • Lists left out of the deployed configuration are not sent. See Disable a list.

The Braze profile is named by its external_id: the EdgeKit user id, or the user’s external identity where your tenant is set to key by it. Nothing else names it. Set the same id in your tracker and in anything else that writes to Braze, or one person ends up with two Braze profiles. See Braze.

Each list must hold its Braze subscription group’s id as its Vendor group id. EdgeKit cannot check it, and a wrong id is refused by Braze or lands in another group.

Each standing is Synced once Braze accepts it. Until then it is Not synced, which is what the list’s counts and a user’s Newsletters section in Identity › Audience › Users show.

  • A refusal Braze would repeat, such as a wrong group id or a key without the right permissions, stops the sync at once. The standing stays not synced, and the user’s Newsletters section shows Braze’s message.
  • A failure that may pass, such as a timeout or Braze throttling, is retried. If every retry fails, the standing stays not synced.
  • A standing that changes while a sync is in flight stays not synced, and the change starts its own sync.

Nothing alerts on a failed sync. Check the Not synced column in Messaging › Configuration › Lists. A user who unsubscribed and is not synced may still be getting mail from Braze. The next change to that user’s standings on the site syncs them again.

Until EdgeKit holds your Braze API key, no standing reaches Braze. Once it does, a user’s standings are sent the next time they change on that site.

When you erase a user, EdgeKit sets them unsubscribed in Braze on every list they had a standing on, site by site. See Erased users.

A user can also leave in Braze: through Braze’s own preference centre, a mail client’s unsubscribe button that reaches Braze, or another system writing to Braze. Two Braze webhook campaigns tell EdgeKit, at POST /v1/webhooks/braze/subscriptions on your tenant host. Without them, the next sync sends EdgeKit’s subscribed back and undoes the unsubscribe. See Braze for the setup.

What EdgeKit does with them:

  • Only unsubscribes are applied. A webhook saying a user is subscribed is ignored, so a sync echoing back can never undo a newer unsubscribe.
  • Only when newer. An unsubscribe older than the standing’s last change in EdgeKit is ignored, so a late webhook never undoes a later sign-up.
  • A group unsubscribe sets the list mirrored into that group to unsubscribed. If no user matches the profile, a user is created from its email address.
  • A global unsubscribe, from all Braze email, sets every list the user is on to unsubscribed. If the user later signs up again through EdgeKit, the sync also sets Braze’s global email state back to opted in.

The user is matched by the profile’s external_id, as an EdgeKit user id and then as an external identity, then by email address. An erased user is never matched. Each change applied this way starts a sync, so Braze and EdgeKit agree again.

The route needs Authorization: Bearer <secret>, with a secret EdgeKit generates for your organization. A wrong secret answers 401. A body EdgeKit cannot read still answers 200, so Braze does not resend it, and is counted.

edgekit.ai