How to Integrate with Braze Subscription Group

Digioh’s Braze email Subscription group integration allows you to add existing Braze users to an email subscription group.

To integrate with the Braze Email subscription group module, follow the Braze subscription group API docs. The email subscription group API will update the existing user’s email subscription group through API. If you are adding new users in Braze through Digioh, use the User Track API with Subscription group API which is also added in the Digioh integrations. First, the User will be added to Braze through the User Track API. Then, the subscription group API Integration will run to update the email subscription group. 

Note: If adding new users with the Braze User Track API, leave a 2-minute delay before executing the subscription group API. Note the below screenshot.

If you are setting up a Digioh integration by yourself, we first recommend reading about Digioh Integration Basics.

Once you have created your form, follow these steps to integrate Digioh with Braze Subscription group API.

Step 1: Add a New Integration

Go to the Integrations page and select “New Integration.”

Step 2: Set a friendly name in the Friendly Name field.

Step 3: Select API Form Post in Integration options

Step 4: Form Post URL:

Enter Braze /subscription/status/set  API Endpoint (For Endpoint please check Braze Endpoint API documentation)

https://{{instance_url}}/subscription/status/set

NOTE: {{instance_url}} value will be different according to your account.

Step 5: Select JSON Raw in Post Type.

Step 6: Select Box

Select the box and click on Create Integration.

Step 7: Configure Advanced Integration Settings

Set the HTTP method to POST, enter the Header 1 key and value like the below image The Authorization is Key, and the Braze API key will be placed in Bearer Token.

Set up your payload in the Raw Data to Send section

{
     "subscription_group_id": "1e4c222-5432-23456-3456-34556667890",
     "subscription_state": "subscribed",
     "external_id": "[EMAIL_MD5]",
     "email": "[EMAIL]"
}
To get your Braze Subscription group ID, please check the API documentation.

That’s all there is to it! Your Braze subscription group integration is ready to go!

If you have any questions about setting up your Braze Subscription group integration, send us an email, and we’ll be glad to help!

Related Reading: