API campaigns
This reference article covers how to generate a
campaign_id
to include in your API calls and how to configure that campaign.
note:
Campaigns sent through the Messaging API can have the same detailed reporting and retargeting options as campaigns created on the dashboard.
Create a new campaign
Navigate to the Campaigns page in your company Braze account and click Create Campaign, then select API Campaigns. Now, you can move on to configuring your API campaign.
note:
An API-triggered campaign is different from an API campaign.
Configure your campaign
To configure your campaign, perform the following steps:
- Add a descriptive title so you can find the results on our campaigns page after you’ve sent your messages.
- Click Add Message and add the messages types which will be included in your API campaign. This will create a
Message Variation ID
, which will serve as yourcampaign_id
.
After you save your API campaign, you must include the generatedcampaign_id
fields with your API request where noted in the Send Messages Endpoints. - Optionally, You can add a conversion event to track user conversions on a specific action or campaign goal.
- Click Save Campaign and you’re set to begin your API campaign!