Get all webhooks
client.webhooks.list(RequestOptionsoptions?): WebhookListResponse { status, message, webhooks }
/api/v2/account/webhooks
Get all webhooks configured for your account.
Returns
Get all webhooks
import SendblueAPI from 'sendblue';
const client = new SendblueAPI({
apiKey: 'My API Key',
apiSecret: 'My API Secret',
});
const webhooks = await client.webhooks.list();
console.log(webhooks.status);
{
"status": "OK",
"message": "message",
"webhooks": {
"call_log": [
"https://example.com/webhook"
],
"contact_created": [
"https://example.com"
],
"globalSecret": "globalSecret",
"line_assigned": [
"https://example.com/webhook"
],
"line_blocked": [
"https://example.com/webhook"
],
"outbound": [
"https://example.com/webhook"
],
"receive": [
"https://example.com/webhook"
],
"secret": "secret"
}
}Returns Examples
{
"status": "OK",
"message": "message",
"webhooks": {
"call_log": [
"https://example.com/webhook"
],
"contact_created": [
"https://example.com"
],
"globalSecret": "globalSecret",
"line_assigned": [
"https://example.com/webhook"
],
"line_blocked": [
"https://example.com/webhook"
],
"outbound": [
"https://example.com/webhook"
],
"receive": [
"https://example.com/webhook"
],
"secret": "secret"
}
}