Webhooks

What are webhooks?

WASchedule sends an HTTP POST to your URL every time a message is sent or fails. Use this to update your CRM, trigger follow-ups, or log delivery status in your own system.

Verifying signatures

Each request includes a X-WASchedule-Signature header — an HMAC-SHA256 of the payload signed with your endpoint secret.

// Node.js example
const sig = 'sha256=' + crypto
  .createHmac('sha256', secret)
  .update(rawBody)
  .digest('hex');

const expected = req.headers['x-waschedule-signature'];
if (sig !== expected) {
  throw new Error('Invalid signature');
}
Loading…