Skip to content

List campaign opens

Returns a list of subscribers who opened this campaign.

HTTP method: GET

https://api.sender.net/v2/campaigns/{id}/opens


ParameterTypeDescription
idstring requiredCampaign ID

const url = new URL("https://api.sender.net/v2/campaigns/{id}/opens");
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": {
"recipient_id": "W6EX1PJ",
"email": "[email protected]",
"created_at": "2021-05-13 16:15:12"
},
"links": {
"first": "https://api.sender.net/v2/campaigns/ej0gRP/opens?page=1",
"last": "https://api.sender.net/v2/campaigns/ej0gRP/opens?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://api.sender.net/v2/campaigns/ej0gRP/opens?page=1",
"label": 1,
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"path": "https://api.sender.net/v2/campaigns/ej0gRP/opens",
"per_page": 10,
"to": 3,
"total": 3
}
}