Skip to content

Get group details

Returns group details.

HTTP method: GET

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


ParameterTypeDescription
idstring requiredGroup ID

const url = new URL("https://api.sender.net/v2/groups/{id}");
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": "elxJK6",
"title": "My Test Group",
"recipient_count": 6,
"active_subscribers": 4,
"unsubscribed_count": 1,
"bounced_count": 1,
"phone_count": 1,
"active_phone_count": 1,
"account_id": "eEqqve",
"user_id": "egp79a",
"created": "2022-06-02 09:56:05",
"modified": "2023-09-07 04:43:57",
"is_recalculating_subscribers": false
}
}