Docs/webhooks

Webhooks Overview

Receive real-time event updates when actions occur on Rehabify.

Webhooks Overview

Webhooks allow Rehabify to notify your server in real time whenever an event occurs (such as a patient finishing their WhatsApp intake, a therapist confirming an appointment, or a patient completing a session).

Code
sequenceDiagram
    participant Patient as Patient (WhatsApp)
    participant Rehabify as Rehabify Engine
    participant Partner as Your Server
    
    Patient->>Rehabify: Completes Intake & Selects Time
    Rehabify->>Rehabify: Matches MRTBN Physio
    Rehabify->>Partner: POST /webhook (event: patient.intake_completed)
    Partner-->>Rehabify: 200 OK

How Webhooks Work

  1. You configure a webhook endpoint URL in your Partner Portal settings (e.g. https://api.yourdomain.com/webhooks/rehabify).
  2. When an event occurs in Rehabify, we construct an event object and send an HTTP POST request with a JSON payload to your configured URL.
  3. Your server validates the X-Rehabify-Signature header to ensure authenticity and responds with an HTTP 200 OK status.

Headers Included with Every Webhook

HeaderDescription
Content-Typeapplication/json
X-Rehabify-EventThe type of event (e.g. session.completed)
X-Rehabify-Delivery-IdUnique ID for this webhook delivery attempt
X-Rehabify-SignatureHMAC SHA-256 signature generated using your webhook secret
X-Rehabify-TimestampUnix timestamp of when the webhook was generated

Next Steps

Webhooks Overview | Rehabify Docs | Physio Around Me by Rehabify Health