Skip to content

List subscribers in a group

Returns all subscribers in the specified group.

HTTP method: GET

https://api.sender.net/v2/groups/{id}/subscribers


ParameterTypeDescription
idstring requiredGroup ID

const url = new URL("https://api.sender.net/v2/groups/{id}/subscribers");
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": [
{
"id": "2kprMB1",
"email": "[email protected]",
"firstname": "Joe",
"lastname": "Doe",
"phone": "+370XXXXXXXX",
"phone_country": null,
"created": "2021-05-12 01:12:41",
"status": {
"email": "active"
},
"bounced_at": null,
"unsubscribed_at": null,
"location": null,
"subscriber_tags": [
{
"id": "b2vAR1",
"title": "My Renamed Group"
}
],
"columns": {
"avAlVe": "Joe",
"dwBVJb": "Doe"
}
}
],
"links": {
"first": "https://api.sender.net/v2/groups/b2vAR1/subscribers?page=1",
"last": "https://api.sender.net/v2/groups/b2vAR1/subscribers?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/groups/b2vAR1/subscribers?page=1",
"label": 1,
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"path": "https://api.sender.net/v2/groups/b2vAR1/subscribers",
"per_page": 10,
"to": 1,
"total": 1
}
}