Get webhooks
client.webhooks.list(RequestOptionsoptions?): WebhookListResponse { status, webhooks }
GET/api/account/webhooks
Get all webhooks configured for the authenticated account
Returns
Get webhooks
import SendblueAPI from 'sendblue';
const client = new SendblueAPI({
apiKey: process.env['SENDBLUE_API_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SENDBLUE_API_API_SECRET'], // This is the default and can be omitted
});
const webhooks = await client.webhooks.list();
console.log(webhooks.status);{
"status": "OK",
"webhooks": {
"call_log": [
"https://example.com"
],
"contact_created": [
"https://example.com"
],
"globalSecret": "whsec_global123",
"line_assigned": [
"https://example.com"
],
"line_blocked": [
"https://example.com"
],
"outbound": [
"https://example.com"
],
"receive": [
"https://example.com"
],
"typing_indicator": [
"https://example.com"
]
}
}Returns Examples
{
"status": "OK",
"webhooks": {
"call_log": [
"https://example.com"
],
"contact_created": [
"https://example.com"
],
"globalSecret": "whsec_global123",
"line_assigned": [
"https://example.com"
],
"line_blocked": [
"https://example.com"
],
"outbound": [
"https://example.com"
],
"receive": [
"https://example.com"
],
"typing_indicator": [
"https://example.com"
]
}
}