Query Hard Bounced Emails
GET https://{{instance_url}}/email/hard_bounces?start_date=2019-01-01&end_date=2019-02-01&limit=100&offset=1&email=example@braze.com
This 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 anstart_date
.
If your date range has more thanlimit
number of hard bounces, you will need to make multiple API calls, each time increasing theoffset
until a call returns either fewer thanlimit
or zero results.
Response
Entries are listed in descending order.
Content-Type: application/json
Authorization: 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"
}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
start_date | string | (Optional*) String in YYYY-MM-DD format |
Start date of the range to retrieve hard bounces, must be earlier than end_date
. This is treated as midnight in UTC time by the API.
You must provide either an email
or a start_date
, and an end_date
.
|
| end_date
| string | | (Optional) String in YYYY-MM-DD format
String in YYYY-MM-DD format. End date of the range to retrieve hard bounces. This is treated as midnight in UTC time by the API.
*You must provide either an email
or a start_date
, and an end_date
. |
| limit
| number | | (Optional) Integer
Optional field to limit the number of results returned. Defaults to 100, maximum is 500. |
| offset
| number | | (Optional) Integer
Optional beginning point in the list to retrieve from. |
| email
| string | | (Optional*) String
If provided, we will return whether or not the user has hard bounced.
*You must provide either an email
or a start_date
, and an end_date
. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |