Bounce Event Report API

You can use this API to view the reports on bounces for a given time period or for a particular contact email. 

Request Type

  • GET

Request URL

https://campaigns.zoho.com/emailapi/v2/reports/event/bounce

Content Type

application/json

List of Request Body Attributes

Parameters

Data Type

Description

fromLongStarting time (in UTC milliseconds) for the reports. Defaults to the starting time of the last 7 days if not provided.
toLongEnding time (in UTC milliseconds) for the reports. Defaults to the ending time of the last 7 days if not provided.
emailStringEmail address for which the reports must be obtained.
bounce_typeStringType of bounce, which can be hard bounce or soft bounce.
start_indexIntegerStarting index of the number of objects to be obtained. Defaults to 1 if not provided.
end_indexIntegerEnding index of the number of objects to be obtained. Defaults to 100 if not provided.

List of Response Body Attributes

ParametersData TypeDescription
dataJSON ArrayContains the details of the report.
action_timeLongTime (in UTC milliseconds) at which the bounce event happened.
injected_timeLongTime (in UTC milliseconds) at which the transmission* was created.
rcpt_additional_dataJSON ObjectAdditional data of the recipient that was provided by you in Transmission API or Recipient List API.
bounce_typeStringType of bounce, which can be hard bounce or soft bounce.
bounce_reasonStringReason for the bounce.
transmission_idIntegerUnique, system generated ID of the transmission.
contact_idIntegerUnique, system generated ID of the contact/recipient.
transmission_nameStringName of the transmission.
zuidIntegerZoho User ID of the user who created the transmission.
contact_emailStringEmail address of the contact/recipient.
responseJSON ObjectContains the response details of the API.
codeIntegerSuccess or failure code.
messageStringSuccess or failure message returned by the API.
errorsJSON ArrayContains the error details of the API such as 'code' and 'message'.

* - transmission refers to a campaign

Possible Error Cases

Error Codes

Description

400301Date range incorrect/not provided
400302Invalid index parameter(s)
400303Date range exceeds the allowed limit
400304Invalid contact email
400305Invalid bounce type

Sample Request Payload

Copiedhttps://campaigns.zoho.com/emailapi/v2/reports/event/bounce?from=1733097600000&to=1735794302000

Sample Response - Success

Copied{
  "data": [
    {
      "bounce_type": "softbounce",
      "action_time": 1742397649000,
      "injected_time": 1742377774000,
      "rcpt_additional_data": {
        "country": "India",
        "phone": "123456787"
      },
      "transmission_id": 2411118000002420000,
      "contact_id": 214548041200002430000,
      "bounce_reason": "Temporary failure :440 4.4.7 Unable to relay the email",
      "transmission_name": "API Campaign 1",
      "zuid": 8412395123483458,
      "contact_email": "john.doe@zylker.com"
    },
    {
      "bounce_type": "hardbounce",
      "action_time": 1743501232000,
      "injected_time": 1743485015000,
      "rcpt_additional_data": {
        "country": "JP",
        "ph": "1239333320"
      },
      "transmission_id": 21454811000002420000,
      "contact_id": 214548041200002430000,
      "bounce_reason": "Permanent failure :bad-mailbox",
      "transmission_name": "API Campaign 2",
      "zuid": 84123954124838,
      "contact_email": "john.doe@zylker.com"
    }
  ],
  "response": {
    "code": 200301,
    "message": "Successfully obtained the reports for the given criteria"
  }
}

Sample Response - Failure

Copied{
  "errors": [
    {
      "code": 400301,
      "message": "Date range incorrect/not provided"
    }
  ]
}