Skip to content

Retrieve bounces

If you have questions about the API, please visit our API FAQ page.

A bounce happens when an email cannot be delivered to the recipient.

This endpoint allows you to retrieve bounce events so you can monitor delivery issues and maintain a healthy sender reputation.

Retrieve bounce events

Send a GET request to:

https://webapi.inboxroad.com/api/v1/bounces

Authentication is required. See Authentication.

By default, only hard bounces are returned.

To also receive:

  • soft bounces
  • expired bounces

add the include_soft=1 query parameter.

Example request

Terminal window
curl -X GET 'https://webapi.inboxroad.com/api/v1/bounces' \
-H 'X-API-Key: <your_token>' \
-H 'Content-Type: application/json'

Response fields

Each bounce record contains the following fields:

Field nameDescription
uuidUnique identifier of the record.
timeloggedUnix timestamp of when the event was logged.
bounce_typeh for hard, s for soft, e for expired message.
sync_typeSynchronization type of the bounce.
rcptRecipient (RCPT TO:) being reported.
origOriginator (from MAIL FROM:).
dsndiagDSN diagnostic string for the recipient.
bouncecatLikely category of the bounce.
header_fromFrom header of the original email.
extra_fieldsAny custom headers configured for your account.

Query parameters

ParameterPossible valuesDescription
last_idUUID of the last recordReturns records strictly newer than this record’s timelogged. Useful for incremental polling.
orderasc, descSort order. Default is desc (newest first).
include_soft1Includes soft and expired bounces. By default, only hard bounces are returned.
pageInteger1-based page number.
page_sizeIntegerNumber of items per page. Default is 100, maximum is 1000.

Example with query parameters

Terminal window
curl -X GET 'https://webapi.inboxroad.com/api/v1/bounces?last_id=ce95fca7-b028-4f5c-810c-8bddeda4cac6&order=asc&include_soft=1' \
-H 'X-API-Key: <your_token>' \
-H 'Content-Type: application/json'

Pagination

Responses use the following pagination structure:

Field nameDescription
countTotal number of records.
nextURL to the next page, or null.
previousURL to the previous page, or null.
resultsList of bounce records.