Skip to content

Get a webhook

Returns a single webhook by ID.

HTTP method: GET

https://api.sender.net/v2/account/webhooks/{id}


ParameterTypeDescription
idstring requiredThe webhook ID.

const url = new URL("https://api.sender.net/v2/account/webhooks/{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
{
"id": "mbkBva",
"account_id": "Eqqve",
"url": "https://webhook.site/da83f596-5bc3-48d3-8bab-f8203a5847af",
"topic": "campaigns/new",
"group": null,
"total_deliveries": 116,
"total_failures": 0,
"response_time": 174,
"status": "ACTIVE"
}