Skip to content

Retrieve bounces

If you have questions regarding this API, please visit our API FAQ page.

Bounces occur when an email cannot be delivered to the recipient. This endpoint lets you retrieve and analyze bounce events to maintain a healthy sender reputation.

Retrieving bounces

Make a GET request to https://webapi.inboxroad.com/api/v1/bounces with a valid token (see v1 authentication).

By default only hard bounces are returned. Add include_soft=1 to also receive soft and expired bounces.

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

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

For example:

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

Results are paginated with the standard 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.