Skip to main content

Get soft bounces report

Description

Retrieves email soft bounces report.

Email providers return error codes from 400 to 499. This marks a soft bounce: a message cannot be temporarily delivered.

Request URL

Method: POST

https://example.com/api/v1.1/reports/bounces

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format.
By default – json
date_fromstring"2018-08-10"YesReport start date
date_tostring"2018-08-15"YesReport end date
campaign_idint1NoCampaign ID
group_bystring"from_domain"NoGroup results by ...
topint2NoTop X soft bounces

group_by parameter possible values:

  • ip - group by sender IP address
  • from_domain – group by from domain

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"campaign_id": 116,
"date_from": "2024-04-26",
"date_to": "2024-05-01",
"format": "json",
"top": 2
}

Response example

{
"data": [
{
"data_id": "",
"count": 3,
"bounce_text": "Your message was not delivered because the other user mailbox was not available",
"to_domain": "example.com"
},
{
"data_id": "",
"count": 3,
"bounce_text": "This response is sent when the message simply failed. Often times this is not caused by you, but rather because of a far-end server problem",
"to_domain": "jetwire.name"
}
],
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
bounce_textstringEmail provider response
countintEmail provider response count
data_idstringData source ID
to_domainstringDomain