Braze Endpoints
Braze API Overview
Braze provides a high performance REST API to allow you to track users, send messages, export data, and more.
A REST API is a way to programmatically transfer information over the web using a predefined schema. Braze has created many different endpoints with specific requirements that will perform various actions and/or return various data. API access is done using HTTPS web requests to your company's REST API endpoint (this will correspond to your Dashboard URL as shown in the table below).
Customers using Braze's EU database should use https://rest.fra-01.braze.eu/. For more information on REST API endpoints for customers using Braze's EU database see our .
Braze Instances
Using Braze's Postman Collection
If you have a Postman account (MacOS, Windows, and Linux versions can be downloaded from their website located ), you can go to our Postman documentation and click the orange Run in Postman button in the top, right corner. This will allow you to , as well as edit the available POST and GET requests to suit your own needs.
Setting Up Your Postman Environment
The Braze Postman Collection uses a templating variable, {{instance_url}}, to substitute the REST API URL of your Braze instance into the pre-built requests. Rather than having to manually edit all requests in the Collection, you can set up this variable in your Postman environment. To do so, please follow the steps below:
- Click on the gear icon in the top right corner of the Postman app.
- Select "Manage Environments" to open a modal window which displays your active environments.
- In the bottom right corner of the modal window, click "Add" to create a new environment.
- Give this environment a name (e.g. "Braze API Requests") and add keys for
instance_urlandapi_keywith values corresponding to and , as pictured below.
As of April, 2020 Braze has changed how we read App Group API keys. Instead of passing them in the request body or through url parameters, we now read the App Group Restapi_key through the HTTP Authorization header. API keys not passed through the HTTP Authorization Header will coninue to work until they have been sunset.
Using the Pre-Built Requests from the Collection
Once you have configured your environment. You can use any of the pre-built requests in the collection as a template for building new API requests. To start using one of the pre-built requests, simply click on it within the 'Collections' menu on the left side of Postman. This will open the request as a new tab in the main window of the Postman app.
In general, there are two types of requests that Braze's API endpoints accept - GET and POST. Depending on which HTTP method the endpoint uses, you'll need to edit the pre-built request differently.
Edit a POST Request
When editing a POST request, you'll need to open the request and navigate to the Body section in the request editor. For readability, select the raw radio button to format the JSON request body.
Edit a GET Request
When editing a GET request, you will need to edit the parameters passed in the request URL. To edit these easily, select the Params button next to the URL bar and edit the key-value pairs in the fields that will appear below the URL bar.
Send Your Request
Once your API request is ready to send, click on the 'Send' button next to the URL bar. The request will be sent and the response data will be populated in a section underneath the request editor. From here, you can view the raw data returned from Braze's API, see the HTTP response code, see how long the request took to process, and view header information.
- Homepage
- https://api.apis.guru/v2/specs/braze.com/1.0.0.json
- Provider
- braze.com
- OpenAPI version
- 3.0.3
- Spec (JSON)
- https://api.apis.guru/v2/specs/braze.com/1.0.0/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/braze.com/1.0.0/openapi.yaml
Tools (33)
Extracted live via the executor SDK.
-
emailListsAddresses.queryHardBouncedEmailsThis endpoint allows you to pull a list of email addresses that have “hard bounced” your email messages within a certain time frame.
You must provide an
end_date, as well as either anemailor astart_date.
If your date range has more thanlimitnumber of hard bounces, you will need to make multiple API calls, each time increasing theoffsetuntil a call returns either fewer thanlimitor zero results.Response
Entries are listed in descending order.
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "emails": [ { "email": "example1@braze.com", "hard_bounced_at": "2016-08-25 15:24:32 +0000" }, { "email": "example2@braze.com", "hard_bounced_at": "2016-08-24 17:41:58 +0000" }, { "email": "example3@braze.com", "hard_bounced_at": "2016-08-24 12:01:13 +0000" } ], "message": "success"} -
emailListsAddresses.queryListOfUnsubscribedEmailAddressesUse the /email/unsubscribes endpoint to return emails that have unsubscribed during the time period from
start_datetoend_date. You can use this endpoint to set up a bi-directional sync between Braze and other email systems or your own database.You must provide either an email or a start_date and an end_date.
If your date range has more thanlimitnumber of unsubscribes, you will need to make multiple API calls, each time increasing theoffsetuntil a call returns either fewer thanlimitor zero results. -
export.appSessionsByTimeThis endpoint allows you to retrieve a series of the number of sessions for your app over a designated time period.
Components Used
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "data" : [ { "time" : (string) point in time - as ISO 8601 extended when unit is "hour" and as ISO 8601 date when unit is "day", "sessions" : (int) }, ... ]} -
export.campaignAnalyticsThis endpoint allows you to retrieve a daily series of various stats for a campaign over time. Data returned includes how many messages were sent, opened, clicked, converted, etc., broken down by message channel.
Components Used
-
Responses
Multi-Channel Response
Multivariate Response
Possible message types are
email,in_app_message,webhook,android_push,apple_push,kindle_push,web_push,windows_phone8_push, andwindows_universal_push. All push message types will have the same statistics shown forandroid_pushabove.Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "data" : [ { "time" : (string) date as ISO 8601 date, "messages" : { "ios_push" : [ { "variation_name": "iOS_Push", "sent" : (int), "direct_opens" : (int), "total_opens" : (int), "bounces" : (int), "body_clicks" : (int) "revenue": 0, "unique_recipients": 1, "conversions": 0, "conversions_by_send_time": 0, "conversions1": 0, "conversions1_by_send_time": 0, "conversions2": 0, "conversions2_by_send_time": 0, "conversions3": 0, "conversions3_by_send_time": 0, "carousel_slide_[NUM]_[TITLE]_click": (optional, int), "notif_button_[NUM]_[TITLE]_click": (optional, int) } ], "android_push" : [ { "sent" : (int), "direct_opens" : (int), "total_opens" : (int), "bounces" : (int), "body_clicks" : (int) } ], "webhook": [ { "sent": (int), "errors": (int) } ], "email" : [ { "sent": (int), "opens": (int), "unique_opens": (int), "clicks": (int), "unique_clicks": (int), "unsubscribes": (int), "bounces": (int), "delivered": (int), "reported_spam": (int) } ], "sms" : [ { "sent": (int), "delivered": (int), "undelivered": (int), "delivery_failed": (int) } ] }, "conversions_by_send_time": (optional, int), "conversions1_by_send_time": (optional, int), "conversions2_by_send_time": (optional, int), "conversions3_by_send_time": (optional, int), "conversions": (int), "conversions1": (optional, int), "conversions2": (optional, int), "conversions3": (optional, int), "unique_recipients": (int), "revenue": (optional, float) }, ... ], ...}Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "data" : [ { "time" : (string) date as ISO 8601 date, "conversions" : (int), "revenue": (float), "conversions_by_send_time": (int), "messages" : { "trigger_in_app_message": [{ "variation_name": (optional, string), "impressions": (int), "clicks": (int), "first_button_clicks": (int), "second_button_clicks": (int), "revenue": (optional, float),, "unique_recipients": (int), "conversions": (optional, int), "conversions_by_send_time": (optional, int), "conversions1": (optional, int), "conversions1_by_send_time": (optional, int), "conversions2": (optional, int), "conversions2_by_send_time": (optional, int), "conversions3": (optional, int), "conversions3_by_send_time": (optional, int) }, { "variation_name": (optional, string), "impressions": (int), "clicks": (int), "first_button_clicks": (int), "second_button_clicks": (int), "revenue": (optional, float),, "unique_recipients": (int), "conversions": (optional, int), "conversions_by_send_time": (optional, int), "conversions1": (optional, int), "conversions1_by_send_time": (optional, int), "conversions2": (optional, int), "conversions2_by_send_time": (optional, int), "conversions3": (optional, int). "conversions3_by_send_time": (optional, int) }, { "variation_name": (optional, string), "revenue": (optional, float),, "unique_recipients": (int), "conversions": (optional, int), "conversions_by_send_time": (optional, int), "conversions1": (optional, int), "conversions1_by_send_time": (optional, int), "conversions2": (optional, int), "conversions2_by_send_time": (optional, int), "conversions3": (optional, int), "conversions3_by_send_time": (optional, int), "enrolled": (optional, int) }] }, "conversions_by_send_time": (optional, int), "conversions1_by_send_time": (optional, int), "conversions2_by_send_time": (optional, int), "conversions3_by_send_time": (optional, int), "conversions": (optional, int, "conversions1": (optional, int), "conversions2": (optional, int), "conversions3": (optional, int), "unique_recipients": (int), "revenue": (optional, float) }], ...} -
export.campaignDetailsThis endpoint allows you to retrieve relevant information on a specified campaign, which can be identified by the
campaign_id.The campaign_id for API campaigns can be found on the Developer Console page and the campaign details page within your dashboard or you can use the Campaign List Endpoint.
Components Used
Campaign Details Endpoint API Response
Messages
The
messagesresponse will contain information about each message. Example message responses for channels are below:Push Channels
Email Channel
Content Card Channel
Webhook Channel
SMS Channel
Control Messages
Conversion Behaviors
The
conversion_behaviorsarray will contain information about each conversion event behavior set for the campaign. These behaviors are in order as set by the campaign. For example, Conversion Event A will be the first item in the array, Conversion Event B will be second, etc. Example conversion event behavior responses for are below:Clicks Email
Opens Email
Makes Purchase (any purchase)
Makes Purchase (specific product)
Performs Custom Event
Upgrades App
Uses App
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "created_at" : (string) date created as ISO 8601 date, "updated_at" : (string) date last updated as ISO 8601 date, "archived": (boolean) whether this Campaign is archived, "draft": (boolean) whether this Campaign is a draft, "name" : (string) campaign name, "description" : (string) campaign description, "schedule_type" : (string) type of scheduling action, "channels" : (array) list of channels to send via, "first_sent" : (string) date and hour of first sent as ISO 8601 date, "last_sent" : (string) date and hour of last sent as ISO 8601 date, "tags" : (array) tag names associated with the campaign, "messages": { "message_variation_id": (string) { // <=This is the actual id "channel": (string) channel type of the message (as in, "email", "ios_push", "webhook", "content_card", "in-app_message", "sms"), "name": (string) name of the message in the Dashboard (eg., "Variation 1") ... channel-specific fields for this message, see below ... } }, "conversion_behaviors": (array) conversion event behaviors assigned to the campaign (see below)}{ "channel": (string) description of the channel, such as "ios_push" or "android_push" "alert": (string) alert body text, "extras": (hash) any key value pairs provided}{ "channel": "email", "subject": (string) subject, "body": (string) HTML body, "from": (string) from address and display name, "reply_to": (string) reply-to for message, if different than "from" address, "title": (string) name of the email, "extras": (hash) any key value pairs provided}{ "channel": "content_cards", "name": (string) name of variant, "extras": (hash) any key value pairs provided; only present if at least one key-value pair has been set}{ "channel": "webhook", "url": (string) url for webhook, "body": (string) payload body, "type": (string) body content type, "headers": (hash) specified request headers, "method": (string) HTTP method (e.g., "POST" or "GET"),}{ "channel": "sms", "body": (string) payload body, "from": (string) list of numbers associated with the subscription group, "subscription_group_id": (string) API id of the subscription group targeted in the SMS message}{ "channel": (string) description of the channel that the control is for, "type": "control"}{ "type": "Clicks Email", "window": (integer) number of seconds during which the user can convert on this event, i.e. - 86400, which is 24 hours}{ "type": "Opens Email", "window": (integer) number of seconds during which the user can convert on this event, i.e. - 86400, which is 24 hours}{ "type": "Makes Any Purchase", "window": (integer) number of seconds during which the user can convert on this event, i.e. - 86400, which is 24 hours}{ "type": "Makes Specific Purchase", "window": (integer) number of seconds during which the user can convert on this event, i.e. - 86400, which is 24 hours, "product": (string) name of the product, i.e. - "Feline Body Armor"}{ "type": "Performs Custom Event", "window": (integer) number of seconds during which the user can convert on this event, i.e. - 86400, which is 24 hours, "custom_event_name": (string) name of the event, i.e. - "Used Feline Body Armor"}{ "type": "Upgrades App", "window": (integer) number of seconds during which the user can convert on this event, i.e. - 86400, which is 24 hours, "app_ids": (array|null) array of app ids, i.e. - ["12345", "67890"], or `null` if "Track sessions for any app" is selected in the UI}{ "type": "Starts Session", "window": (integer) number of seconds during which the user can convert on this event, i.e. - 86400, which is 24 hours, "app_ids": (array|null) array of app ids, i.e. - ["12345", "67890"], or `null` if "Track sessions for any app" is selected in the UI} -
export.campaignListThis endpoint allows you to export a list of campaigns, each of which will include its name, Campaign API Identifier, whether it is an API Campaign, and Tags associated with the campaign. The campaigns are returned in groups of 100 sorted by time of creation (oldest to newest by default).
Campaign List Endpoint API Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "campaigns" : [ { "id" : (string) Campaign API Identifier, "last_edited": (ISO 8601 string) the last edited time for the message "name" : (string) campaign name, "is_api_campaign" : (boolean) whether the campaign is an API Campaign, "tags" : (array) tag names associated with the campaign }, ... ]} -
export.canvasDataAnalyticsSummaryThis endpoint allows you to export rollups of time series data for a Canvas, providing a concise summary of a Canvas' results.
Components Used
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "data": { "name": (string) Canvas name, "total_stats": { "revenue": (float), "conversions": (int), "conversions_by_entry_time": (int), "entries": (int) }, "variant_stats": (optional) { "00000000-0000-0000-0000-0000000000000": (API identifier for variant) { "name": (string) name of variant, "revenue": (float), "conversions": (int), "entries": (int) }, ... (more variants) }, "step_stats": (optional) { "00000000-0000-0000-0000-0000000000000": (API identifier for step) { "name": (string) name of step, "revenue": (float), "conversions": (int), "conversions_by_entry_time": (int), "messages": { "android_push": (name of channel) [ { "sent": (int), "opens": (int), "influenced_opens": (int), "bounces": (int) ... (more stats for channel) } ], ... (more channels) } }, ... (more steps) } }, "message": (required, string) the status of the export, returns 'success' when completed without errors} -
export.canvasDataSeriesAnalyticsThis endpoint allows you to export time series data for a Canvas.
Components Used
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "data": { "name": (string) Canvas name, "stats": [ { "time": (string) date as ISO 8601 date, "total_stats": { "revenue": (float), "conversions": (int), "conversions_by_entry_time": (int), "entries": (int) }, "variant_stats": (optional) { "00000000-0000-0000-0000-0000000000000": (API identifier for variant) { "name": (string) name of variant, "revenue": (int), "conversions": (int), "conversions_by_entry_time": (int), "entries": (int) }, ... (more variants) }, "step_stats": (optional) { "00000000-0000-0000-0000-0000000000000": (API identifier for step) { "name": (string) name of step, "revenue": (float), "conversions": (int), "conversions_by_entry_time": (int), "messages": { "email": [ { "sent": (int), "opens": (int), "unique_opens": (int), "clicks": (int), ... (more stats) } ], ... (more channels) } }, ... (more steps) } }, ... (more stats by time) ] }, "message": (required, string) the status of the export, returns 'success' when completed without errors} -
export.canvasDetailsThis endpoint allows you to export metadata about a Canvas, such as its name, when it was created, its current status, and more.
Components Used
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "created_at": (string) date created as ISO 8601 date, "updated_at": (string) date updated as ISO 8601 date, "name": (string) Canvas name, "description": (string) Canvas description, "archived": (boolean) whether this Canvas is archived, "draft": (boolean) whether this Canvas is a draft, "schedule_type": (string) type of scheduling action, "first_entry": (string) date of first entry as ISO 8601 date, "last_entry": (string) date of last entry as ISO 8601 date, "channels": (array of strings) step channels used with Canvas, "variants": [ { "name": (string) name of variant, "id": (string) API identifier of the variant, "first_step_ids": (array of strings) API identifiers for first steps in variant, "first_step_id": (string) API identifier of first step in variant (deprecated in November 2017, only included if the variant has only one first step) }, ... (more variations) ], "tags": (array of strings) tag names associated with the Canvas, "steps": [ { "name": (string) name of step, "id": (string) API identifier of the step, "next_step_ids": (array of strings) API identifiers of steps following step, "channels": (array of strings) channels used in step, "messages": { "message_variation_id": (string) { // <=This is the actual id "channel": (string) channel type of the message (eg., "email"), ... channel-specific fields for this message, see Campaign Details Endpoint API Response for example message responses ... } } }, ... (more steps) ], "message": (required, string) the status of the export, returns 'success' when completed without errors} -
export.canvasListThis endpoint allows you to export a list of Canvases, including the name, Canvas API Identifier and associated Tags. The Canvases are returned in groups of 100 sorted by time of creation (oldest to newest by default).
Archived Canvases will not be included in the API response unless the
include_archivedfield is specified. Canvases that are stopped but not archived, however, will be returned by default.Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "canvases" : [ { "id" : (string) Canvas API Identifier, "last_edited": (ISO 8601 string) the last edited time for the message, "name" : (string) Canvas name, "tags" : (array) tag names associated with the Canvas, }, ... (more Canvases) ], "message": (required, string) the status of the export, returns 'success' when completed without errors} -
export.customEventsAnalyticsThis endpoint allows you to retrieve a series of the number of occurrences of a custom event in your app over a designated time period.
Components Used
-
Response
Fatal Error Response Codes
The following status codes and associated error messages will be returned if your request encounters a fatal error. Any of these error codes indicate that no data will be processed.
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "data" : [ { "time" : (string) point in time - as ISO 8601 extended when unit is "hour" and as ISO 8601 date when unit is "day", "count" : (int) }, ... ]} -
export.customEventsListThis endpoint allows you to export a list of custom events that have been recorded for your app. The event names are returned in groups of 250, sorted alphabetically.
Response
Fatal Error Response Codes
The following status codes and associated error messages will be returned if your request encounters a fatal error. Any of these error codes indicate that no data will be processed.
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "events" : [ "Event A", "Event B", "Event C", ... ]} -
export.dailyActiveUsersByDateThis endpoint allows you to retrieve a daily series of the total number of unique active users on each date.
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "data" : [ { "time" : (string) date as ISO 8601 date, "dau" : (int) }, ... ]} -
export.dailyNewUsersByDateThis endpoint allows you to retrieve a daily series of the total number of new users on each date.
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "data" : [ { "time" : (string) date as ISO 8601 date, "new_users" : (int) }, ... ]} -
export.kpIsForDailyAppUninstallsByDateThis endpoint allows you to retrieve a daily series of the total number of uninstalls on each date.
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "data" : [ { "time" : (string) date as ISO 8601 date, "uninstalls" : (int) }, ... ]} -
export.monthlyActiveUsersForLast30DaysThis endpoint allows you to retrieve a daily series of the total number of unique active users over a 30-day rolling window.
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "data" : [ { "time" : (string) date as ISO 8601 date, "mau" : (int) }, ... ]} -
export.newsFeedCardAnalyticsThis endpoint allows you to retrieve a daily series of engagement stats for a card over time.
Components Used
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "data" : [ { "time" : (string) point in time - as ISO 8601 extended when unit is "hour" and as ISO 8601 date when unit is "day", "clicks" : (int) , "impressions" : (int), "unique_clicks" : (int), "unique_impressions" : (int) }, ... ]} -
export.newsFeedCardsDetailsThis endpoint allows you to retrieve relevant information on the card, which can be identified by the
card_id.Components Used
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) The status of the export, returns 'success' when completed without errors, "created_at" : (string) Date created as ISO 8601 date, "updated_at" : (string) Date last updated as ISO 8601 date, "name" : (string) Card name, "publish_at" : (string) Date card was published as ISO 8601 date, "end_at" : (string) Date card will stop displaying for users as ISO 8601 date, "tags" : (array) Tag names associated with the card, "title" : (string) Title of the card, "image_url" : (string) Image URL used by this card, "extras" : (dictionary) Dictionary containing key-value pair data attached to this card, "description" : (string) Description text used by this card, "archived": (boolean) whether this Card is archived, "draft": (boolean) whether this Card is a draft,} -
export.newsFeedCardsListThis endpoint allows you to export a list of News Feed cards, each of which will include its name and Card API Identifier. The cards are returned in groups of 100 sorted by time of creation (oldest to newest by default).
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "cards" : [ { "id" : (string) Card API Identifier, "type" : (string) type of the card - NewsItem (classic cards), CaptionedImage, Banner or DevPick (cross-promotional cards), "title" : (string) title of the card, "tags" : (array) tag names associated with the card }, ... ]} -
export.segmentAnalyticsThis endpoint allows you to retrieve a daily series of the size of a segment over time for a segment.
Request Components
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "data" : [ { "time" : (string) date as ISO 8601 date, "size" : (int) size of the segment on that date }, ... ]} -
export.segmentDetailsThis endpoint allows you to retrieve relevant information on the segment, which can be identified by the
segment_id.Request Components
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "created_at" : (string) date created as ISO 8601 date, "updated_at" : (string) date last updated as ISO 8601 date, "name" : (string) segment name, "description" : (string) human-readable description of filters, "text_description" : (string) segment description, "tags" : (array) tag names associated with the segment} -
export.segmentListThis endpoint allows you to export a list of segments, each of which will include its name, Segment API Identifier, and whether it has analytics tracking enabled. The segments are returned in groups of 100 sorted by time of creation (oldest to newest by default). Archived segments are not included.
Request Components
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "message": (required, string) the status of the export, returns 'success' when completed without errors, "segments" : [ { "id" : (string) Segment API Identifier, "name" : (string) segment name, "analytics_tracking_enabled" : (boolean) whether the segment has analytics tracking enabled, "tags" : (array) tag names associated with the segment }, ... ]} -
export.sendAnalyticsThis endpoint allows you to retrieve a daily series of various stats for a tracked
send_id. Braze stores send analytics for 14 days after the send.Campaign conversions will be attributed towards the most recent send id that a given user has received from the campaign.
The
send_idis only generated for API campaign sends targeting segments, connected audiences or broadcasts. When relevant, thesend_idis included in response for themessages/send,messages/schedule,campaign/trigger/sendandcampaign/trigger/scheduleendpoints.Components Used
Send Analytics Endpoint API Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "variation_name": (string) variation name, "sent": (int) the number of sends, "delivered": (int) the number of messages successfully delivered, "undelivered": (int) the number of undelivered, "delivery_failed": (int) the number of rejected, "direct_opens": (int) the number of direct opens, "total_opens": (int) the number of total opens, "bounces": (int) the number of bounces, "body_clicks": (int) the number of body clicks, "revenue": (float) the number of dollars of revenue (USD), "unique_recipients": (int) the number of unique recipients, "conversions": (int) the number of conversions, "conversions_by_send_time": (int) the number of conversions, "conversions1": (int, optional) the number of conversions for the second conversion event, "conversions1_by_send_time": (int, optional) the number of conversions for the second conversion event by send time, "conversions2": (int, optional) the number of conversions for the third conversion event, "conversions2_by_send_time": (int, optional) the number of conversions for the third conversion event by send time, "conversions3": (int, optional) the number of conversions for the fourth conversion event, "conversions3_by_send_time": (int, optional) the number of conversions for the fourth conversion event by send time } ] }, "conversions_by_send_time": 0, "conversions1_by_send_time": 0, "conversions2_by_send_time": 0, "conversions3_by_send_time": 0, "conversions": 0, "conversions1": 0, "conversions2": 0, "conversions3": 0, "unique_recipients": 1, "revenue": 0 } ], "message": "success"} -
messaging.getUpcomingScheduledCampaignsAndCanvasesYou can view a JSON list of upcoming and scheduled Campaigns and Canvases using the following information and parameters. The endpoint will return information about scheduled Campaigns and entry Canvases between now and the designated end_time (ISO 8601 format) specified in the request. Daily, recurring messages will only appear once with their next occurrence. Results returned in this endpoint are only for Campaigns and Canvases created and scheduled in Braze.
Response
Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "scheduled_broadcasts": [ # Example Canvas { "name" => String, "id" => String, "type" => "Canvas", "tags" => [String tag names], "next_send_time" => "YYYY-MM-DD HH:mm:ss" (may also include time zone if not local/intelligent delivery) "schedule_type" => one of "local_time_zones", "intelligent_delivery", or the name of your company's time zone }, # Example Campaign { "name" => String, "id" => String, "type" => "Campaign", "tags" => [String tag names], "next_send_time" => "YYYY-MM-DD HH:mm:ss" (may also include time zone if not local/intelligent delivery) "schedule_type" => one of "local_time_zones", "intelligent_delivery", or the name of your company's time zone }, ]} -
messaging.scheduleApiTriggeredCanvasesUse this endpoint to trigger API Triggered Canvases, which are created on the Dashboard and initiated via the API. You can pass in
canvas_entry_propertiesthat will be templated into the messages sent by the first steps of the Canvas.This endpoint allows you to schedule Canvas messages (up to 90 days in advance) via API Triggered delivery, allowing you to decide what action should trigger the message to be sent. Please note that to send messages with this endpoint, you must have a Canvas ID, created when you build a Canvas.
Request Parameters
Request Components
-
subscriptionGroups.listUserSSubscriptionGroupSmsUse the endpoint below to list and get the subscription groups of a certain user.
If there are multiple users (multiple external ids) who share the same email address, all users will be returned as a separate user (even if they have the same email address or subscription group).
-
subscriptionGroups.listUserSSubscriptionGroupStatusSmsUse the endpoint below to get the subscription state of a user in a subscription group. The response from this endpoint will include the external ID and either subscribed, unsubscribed, or unknown for the specific subscription group requested in the API call. This can be used to update the subscription group state in subsequent API calls or to be displayed on a hosted web page.
*Either
external_idoremailare required.Response
All successful responses will return
subscribed,unsubscribed, orunknowndepending on status and user history with the subscription group.Content-Type: application/jsonAuthorization: Bearer YOUR-REST-API-KEY{ "status": { "1": "Unsubscribed", "2": "Subscribed" }, "message": "success"}```* -
templates.listAvailableContentBlocksThis endpoint will list existing Content Block information.
Successful Response Properties
Possible Errors
-
Modified after time is invalid.The date you have provided is not a valid or parsable date. Please reformat this value as a string in ISO 8601 format (yyyy-mm-ddThh:mm:ss.ffffff). -
Modified before time is invalid.The date you have provided is not a valid or parsable date. Please reformat this value as a string in ISO 8601 format (yyyy-mm-ddThh:mm:ss.ffffff). -
Modified after time must be earlier than or the same as modified before time. -
Content Block number limit is invalid.Thelimitparameter must be an integer (positive number) greater than 0. -
Content Block number limit must be greater than 0.Thelimitparameter must be an integer (positive number) greater than 0. -
Content Block number limit exceeds maximum of 1000.Thelimitparameter must be an integer (positive number) greater than 0. -
Offset is invalid.Theoffsetparameter must be an integer (positive number) greater than 0. -
Offset must be greater than 0.Theoffsetparameter must be an integer (positive number) greater than 0.
Content-Type: application/jsonAuthorization: Bearer YOUR_REST_API_KEY{ "count": "integer", "content_blocks": [ { "content_block_id": "string", "name": "string", "content_type": "html or text", "liquid_tag": "string", "inclusion_count" : "integer", "created_at": "time-in-iso", "last_edited": "time-in-iso", "tags" : "array of strings" } ]} -
-
templates.listAvailableEmailTemplatesUse this endpoint to get a list of available templates in your Braze account.
Use the Template REST APIs to programmatically manage the email templates that you have stored on the Braze dashboard, on the Templates & Media page. Braze provides two endpoints for creating and updating your email templates.
Successful Response Properties
{ "count": number of templates returned "templates": [template with the following properties]: "email_template_id": (string) your email template's API Identifier, "template_name": (string) the name of your email template, "created_at": (string, in ISO 8601), "updated_at": (string, in ISO 8601), "tags": (array of strings) tags appended to the template} -
templates.seeContentBlockInformationThis endpoint will call information for an existing Content Block.
Successful Response Properties
Possible Errors
-
Content Block ID cannot be blank.- A Content Block has not been listed or is not encapsulated in quotes. -
Content Block ID is invalid for this App Group.- This Content Block does not exist or is in a different company account or app group. -
Content Block has been deleted - content not available.- This Content Block, though it may have existed earlier, has been deleted. -
Include Inclusion Data - error- One of true or false is not provided.
Content-Type: application/jsonAuthorization: Bearer YOUR_REST_API_KEY{ "content_block_id": "string", "name": "string", "content": "string", "description": "string", "content_type": "html or text", "tags": "array of strings", "created_at": "time-in-iso", "last_edited": "time-in-iso", "inclusion_count" : "integer", "message": "success"} -
-
templates.seeEmailTemplateInformationUse to get information on your email templates.
Use the Template REST APIs to programmatically manage the email templates that you have stored on the Braze dashboard, on the Templates & Media page. Braze provides two endpoints for creating and updating your email templates.
Request Components
-
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools