Skip to content

List transactional spam complaints

Returns a paginated list of transactional campaign spam complaints.

HTTP method: GET

https://api.sender.net/v2/transactional/{id}/complaints?limit=10&page=1&direction=desc


ParameterTypeDescription
idstring requiredTransactional campaign ID.
limitintegerHow many records should be returned on each page.
pageintegerPage number to return.
email_addressstringFilter by recipient email address.
orderstringColumn to sort by. The id column is mapped to created.
directionstringSort direction. Use asc or desc.

const url = new URL("https://api.sender.net/v2/transactional/{id}/complaints?limit=10&page=1&direction=desc");
let headers = {
"Authorization": "Bearer [your-token]",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Example Response
{
"data": [
{
"emailId": "ep2W4y-7pn8o21-YPpLY9PR5Jy9-x7GYQ",
"created": "2025-07-24 19:15:23",
"email": "[email protected]",
"subscriber_id": "aMYlw5",
"account_id": "boEyke"
}
],
"links": {
"first": "https://api.sender.net/v2/transactional/dN0ol8/complaints?page=1",
"last": "https://api.sender.net/v2/transactional/dN0ol8/complaints?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api.sender.net/v2/transactional/dN0ol8/complaints",
"per_page": 10,
"to": 1,
"total": 1
}
}