Skip to content

How to use webhooks

Receive real-time event data from AlwaysRespond in your own systems.

5 min read
  1. Go to Settings → Integrations → Webhooks

    This is where you manage all webhook endpoints.

  2. Click Add endpoint

    Enter the URL of your server that will receive the webhook POST requests.

  3. Select events to subscribe to

    Choose which events trigger the webhook: call.completed, booking.created, invoice.paid, customer.created, review.sent, and more.

  4. Save and copy the signing secret

    AlwaysRespond sends a signature header with every request so you can verify it came from us. Copy the signing secret and store it securely in your server's environment variables.

  5. Test the endpoint

    Click 'Send test event' to fire a sample payload to your URL. Your server should respond with HTTP 200 within 5 seconds.

  6. Handle the payload

    Each webhook payload includes the event type, timestamp, and a data object. Parse the JSON and handle each event type your server subscribes to.

Frequently asked

What format are webhooks sent in?

JSON, via HTTP POST. The Content-Type header is application/json. The body has the delivery id, the event name, created_at and a data object.

What happens if my server is down?

Each delivery is tried up to 3 times in all: once straight away, then again after about 5 minutes and about 30 minutes. After the third failure it is marked failed, and every attempt shows in the endpoint's delivery log.

How do I check a webhook really came from you?

Every request carries an X-Webhook-Signature header of the form sha256=<hex>, an HMAC-SHA256 of the raw request body made with your endpoint's signing secret. Compute the same on your side and compare before trusting the payload.

Which events can I subscribe to?

booking.created, booking.confirmed, booking.cancelled, booking.rescheduled, call.completed, customer.created, job.created, job.assigned, job.completed, payment.received, sms.sent and sms.received.

How fast does my server have to answer?

Respond with a 2xx within 10 seconds. A slower reply, an error status or a redirect counts as a failed attempt and is retried.

How do I avoid handling the same event twice?

Use the delivery id, sent in the X-Webhook-Id header and in the body. A retry carries the same id, so you can skip one you've already processed.

Are webhooks on every plan?

Yes. Signed webhooks and API access are on every plan.

Was this helpful?

Keep reading.

Start answering every call today.

1 month free. No setup fee. Cancel any time.