> ## Documentation Index
> Fetch the complete documentation index at: https://kb.aampe.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Braze

> Estimated setup time: 30 minutes

## Requirements

* An API Key for your app group.
* Braze App Id
* The Braze [dashboard URL](https://www.braze.com/docs/api/basics/#api-definitions) that you use (dashboard-01 to 08 or [dashboard-01.braze.eu](http://dashboard-01.braze.eu))

**Note:** App Id setup is required only for email channel.

Aampe will call the [Braze API for sending messages](https://www.braze.com/docs/api/endpoints/messaging/send_messages/post_send_messages/) on your behalf.

## Create an API Key

1. From the Braze dashboard go to **Settings > API Keys**
2. On this page you will find the **Rest API Keys** table
3. Click on **+ Create New API Key**

   <img title="Rest Api Pn" style={{ width:"91%" }} className="hidden dark:block" src="https://mintcdn.com/aameo/92y9Zc08r6PV2EKy/images/message-providers/braze/rest_api.png?fit=max&auto=format&n=92y9Zc08r6PV2EKy&q=85&s=3caf3c86200dd20ad9e7f7e7dbd0995b" alt="Rest Api Pn" width="1007" height="342" data-path="images/message-providers/braze/rest_api.png" />

   <img title="Rest Api Pn" style={{ width:"91%" }} className="dark:hidden" src="https://mintcdn.com/aameo/q1KALbbCrJcpo8Dm/images/message-providers/braze/checkboxes_new.png?fit=max&auto=format&n=q1KALbbCrJcpo8Dm&q=85&s=3aaa625258e17747332d738981c1825c" alt="Rest Api Pn" width="2006" height="1214" data-path="images/message-providers/braze/checkboxes_new.png" />
4. Choose a name for your new key, such as `aampe-personalization`. You'll see a list of checkboxes.\
   \
   📘 **Note 2:** If required, contact your Aampe customer success manager or onboarding representative for the IP access range to enable IP whitelisting on your API allow list.

   <img title="Checkboxes Pn" style={{ width:"90%" }} className="hidden dark:block" src="https://mintcdn.com/aameo/92y9Zc08r6PV2EKy/images/message-providers/braze/checkboxes.png?fit=max&auto=format&n=92y9Zc08r6PV2EKy&q=85&s=0adde4ef1dc42dca38b94b2eb59548ad" alt="Checkboxes Pn" width="2962" height="1310" data-path="images/message-providers/braze/checkboxes.png" />

   <img title="Checkboxes Pn" style={{ width:"90%" }} className="dark:hidden" src="https://mintcdn.com/aameo/q1KALbbCrJcpo8Dm/images/message-providers/braze/checkboxes_new-1.png?fit=max&auto=format&n=q1KALbbCrJcpo8Dm&q=85&s=ef6facf8e229e761e991aa939117e790" alt="Checkboxes Pn" width="1936" height="1324" data-path="images/message-providers/braze/checkboxes_new-1.png" />
5. Tick the checkboxes to add following permissions:

| Braze Permission                        | Braze REST API endpoint                                                                                                                                                 |                                                                                                                      |
| :-------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| users.export.ids                        | [<u>GET /users/export/ids</u>](https://www.braze.com/docs/api/endpoints/export/user_data/post_users_identifier/#prerequisites)                                          | For exporting current users                                                                                          |
| users.export.segment                    | [<u>GET /users/export/segment</u>](https://www.braze.com/docs/api/endpoints/export/user_data/post_users_segment/#prerequisites)                                         | For exporting current user attributes                                                                                |
| users.export.global\_control\_group     | [<u>POST/users/export/global\_control\_group</u>](https://www.braze.com/docs/api/endpoints/export/user_data/post_users_global_control_group)                            | For exporting global control group membership                                                                        |
| sends.id.create                         | [<u>POST /sends/id/create</u>](https://www.braze.com/docs/api/endpoints/messaging/send_messages/post_create_send_ids/#prerequisites)                                    | For creating IDs for message performance tracking                                                                    |
| messages.send                           | [<u>POST /messages/send</u>](https://www.braze.com/docs/api/endpoints/messaging/send_messages/post_send_messages)                                                       | Trigger an API Campaign in Braze.                                                                                    |
| campaigns.trigger.send                  | [<u>POST /campaigns/trigger/send</u>](https://www.braze.com/docs/api/endpoints/messaging/send_messages/post_send_triggered_campaigns)                                   | Trigger a send for a campaign that is configured for API-triggered delivery.                                         |
| campaigns.trigger.schedule.create       | [<u>POST /campaigns/trigger/schedule/create</u>](https://www.braze.com/docs/api/endpoints/messaging/schedule_messages/post_schedule_triggered_campaigns/#prerequisites) | Trigger a send for a campaign that is configured for scheduled API-triggered delivery.                               |
| campaigns.list                          | [<u>GET /campaigns/list</u>](https://www.braze.com/docs/api/endpoints/export/campaigns/get_campaigns)                                                                   | Retrieve the list of all the campaigns configured in Braze and their associated metadata.                            |
| campaigns.data\_series                  | [<u>GET /campaigns/data\_series</u>](https://www.braze.com/docs/api/endpoints/export/campaigns/get_campaign_analytics)                                                  | Retrieve the analytics data of a specific Braze campaign.                                                            |
| campaigns.details                       | [<u>GET /campaigns/details</u>](https://www.braze.com/docs/api/endpoints/export/campaigns/get_campaign_details)                                                         | Retrieve the details of a specific Braze campaign.                                                                   |
| segments.list                           | [<u>GET /segments/list</u>](https://www.braze.com/docs/api/endpoints/export/segments/get_segment)                                                                       | Retrieve the list of all the segments configured in Braze and their associated metadata.                             |
| segments.data\_series                   | [<u>GET /segments/data\_series</u>](https://www.braze.com/docs/api/endpoints/export/segments/get_segment_analytics)                                                     | Retrieve the size of the Braze segment.                                                                              |
| segments.details                        | [<u>GET /segments/details</u>](https://www.braze.com/docs/api/endpoints/export/segments/get_segment_details)                                                            | Retrieve the details of a specific Braze segment.                                                                    |
| email.unsubscribe                       |                                                                                                                                                                         | For retrieving email unsubscribe information                                                                         |
| email.hard\_bounces                     | [<u>GET /email/hard\_bounce</u>](https://www.braze.com/docs/api/endpoints/email/get_list_hard_bounces#query-or-list-hard-bounced-emails)                                | To retrieve email bounce information                                                                                 |
| [templates.info](http://templates.info) | [<u>GET /templates/email/info</u>](https://www.braze.com/docs/api/endpoints/templates/email_templates/get_see_email_template_information)                               | Retrieve the details of a specific Braze HTML email template.                                                        |
| templates.list                          | [<u>GET /templates/email/list</u>](https://www.braze.com/docs/api/endpoints/templates/email_templates/get_list_email_templates)                                         | Retrieve the list of all the Braze HTML email templates configured in Braze and their subject line and HTML content. |
| subscription.status.get                 | [<u>GET /subscription/user/status</u>](https://www.braze.com/docs/api/endpoints/subscription_groups/get_list_user_subscription_groups)                                  | To get subscription status                                                                                           |
| subscription.groups.get                 | [<u>GET/ subscription.groups.get</u>](https://www.braze.com/docs/api/endpoints/subscription_groups/get_list_user_subscription_groups/#prequisites)                      | To get subscription groups                                                                                           |

6. Finalize the key creation.
7. You can then view the newly created key by clicking on the gear icon at the right
8. Copy the API key value.
9. Login into the [Aampe](https://compose.aampe.com/auth/login) composer using your Aampe credentials.
10. Enter **System setup -> Integrations -> Braze**. Activate Braze

    <img src="https://mintcdn.com/aameo/q1KALbbCrJcpo8Dm/images/message-providers/braze/aampe-composer_new.png?fit=max&auto=format&n=q1KALbbCrJcpo8Dm&q=85&s=668aedbe61567064b0ba20684753ad9f" alt="Aampe Composer Pn" title="Aampe Composer Pn" style={{ width:"89%" }} width="1468" height="1446" data-path="images/message-providers/braze/aampe-composer_new.png" />
11. Enter the API key and dashboard URL copied from the earlier steps. Your connection is now ready to deliver messages

## App Id Setup

1. To find your app\_id go to your Braze account and navigate to **Settings > API and Identifiers > App Identifiers**
2. Copy your app\_id and navigate back to Aampe Braze integration page select the email channel and add your app\_id

   <Frame>
     <img title="Braze Api Key Creation" className="hidden dark:block" src="https://mintcdn.com/aameo/tXywCXXDvHFV3Y9-/images/braze_api_key_creation.png?fit=max&auto=format&n=tXywCXXDvHFV3Y9-&q=85&s=5a43426ffcedff4c295685db31cf91fe" alt="Braze Api Key Creation" width="2006" height="1214" data-path="images/braze_api_key_creation.png" />

     <img title="Braze Api Key Creation" className="dark:hidden" src="https://mintcdn.com/aameo/tXywCXXDvHFV3Y9-/images/braze_app_id.png?fit=max&auto=format&n=tXywCXXDvHFV3Y9-&q=85&s=364253a37d3c7494ec43c64e3320bbcf" alt="Braze Api Key Creation" width="2010" height="796" data-path="images/braze_app_id.png" />
   </Frame>

📘 **Note:** App Id is not required if you do not intend to use the email channel through Braze.

## API Campaign Setup

Setting up an API Campaign in Braze allows you to send transactional messages by generating a campaign\_id for use in your API calls. This process involves creating the campaign in the Braze dashboard and then using the campaign\_id in your API requests to send messages. Here's a step-by-step guide to setting up an API Campaign:

### Access the Braze Dashboard:

1. Log in to your Braze account. Navigate to the **Messaging** section and select **Campaigns**.
2. **Create a New Campaign:** Click on **Create Campaign**. Choose **API Campaigns** as the campaign type.

   <img title="Api Campaigns Pn" className="mr-auto hidden dark:block" style={{ width:"33%" }} src="https://mintcdn.com/aameo/92y9Zc08r6PV2EKy/images/message-providers/braze/api-campaigns.png?fit=max&auto=format&n=92y9Zc08r6PV2EKy&q=85&s=45360fa46b29208e9a5851c3fd7f4aec" alt="Api Campaigns Pn" width="432" height="472" data-path="images/message-providers/braze/api-campaigns.png" />

   <img title="Api Campaigns Pn" className="mr-auto dark:hidden" style={{ width:"33%" }} src="https://mintcdn.com/aameo/q1KALbbCrJcpo8Dm/images/message-providers/braze/api-campaigns_new.png?fit=max&auto=format&n=q1KALbbCrJcpo8Dm&q=85&s=f196aab639afa6e3cb9f997c97615c10" alt="Api Campaigns Pn" width="644" height="896" data-path="images/message-providers/braze/api-campaigns_new.png" />

### Configure the Campaign:

1. **Name the Campaign:** Provide a descriptive title to easily identify the campaign later.
2. **Add Message:** Click on **Select Message**. Select the message types (channels) you intend to use (e.g., Email, SMS, Push Notifications). This action will generate a campaign\_id and a message variation ID for each channel.

   <img className="hidden dark:block" src="https://mintcdn.com/aameo/92y9Zc08r6PV2EKy/images/message-providers/braze/save-api-campaign.png?fit=max&auto=format&n=92y9Zc08r6PV2EKy&q=85&s=7b867fb5cff02351bcf12cbdd4cb7b43" alt="Save Api Campaign Pn" width="1144" height="372" data-path="images/message-providers/braze/save-api-campaign.png" />

   <img className="dark:hidden" src="https://mintcdn.com/aameo/q1KALbbCrJcpo8Dm/images/message-providers/braze/save-api-campaign_new.png?fit=max&auto=format&n=q1KALbbCrJcpo8Dm&q=85&s=9a24ebbefba71741bedbbb001355c944" alt="Save Api Campaign Pn" width="1990" height="1010" data-path="images/message-providers/braze/save-api-campaign_new.png" />
3. **Optional - Add Conversion Events:** If you wish to track specific user actions as conversions, you can add a conversion event to the campaign.

### In the Campaign Limits:

* **User re-eligible for messages:** Check this box and select 0 minutes as we would like Aampe agents to be re-eligible based on user's best time.
* Select **Don't Count this towards intelligent Frequency limits** as we don't want Aampe to be affected by Braze limits

### Save the Campaign:

1. After configuring the necessary settings, click on **Save Campaign**.

### **Configure in Aampe:**

1. **Campaign ID:** After saving your campaign, retrieve the campaign\_id and add to the Braze Integration Settings in Composer.
2. **Variation IDs:** If you added messages to your campaign for each channel, note down the variation\_id for each and send it to your onboarding representative at Aampe.

   <Frame>
     <img src="https://mintcdn.com/aameo/tXywCXXDvHFV3Y9-/images/braze_variation_id.png?fit=max&auto=format&n=tXywCXXDvHFV3Y9-&q=85&s=224d685767df0b227a94da5131ff77ba" alt="Braze Variation Id" width="1912" height="1230" data-path="images/braze_variation_id.png" />
   </Frame>

**You are all set with Braze!**
