Guide to webhooks

Who can do this?

Included in Halaxy API subscription

Webhooks allow different software systems to communicate with each other in real time. By using webhooks in Halaxy, events that occur in your Halaxy account (such as creating a new appointment or patient) can automatically trigger updates in other systems that you use - all without needing manual entry or repeated checks.

For your practice, webhooks can:

  • Save time by reducing double data entry

  • Automatically sync your records and tools

  • Improve accuracy by ensuring the latest information is always shared across systems.

With webhooks, information flows instantly, seamlessly and securely between Halaxy and your external platforms.

How webhooks work

Webhooks-02.png

When an event happens in Halaxy, a Halaxy webhook automatically sends the details of that event to another system. This is done by sending a message (known as a payload) to a specific address of that external system, called an endpoint URL.

Example use cases for webhooks:

Event in Halaxy

External action triggered

Appointment is created

Send a message to a Slack channel

Invoice is edited

Update invoice in accounting software

Patient profile is created

Add patient as a new contact in email software

Create a webhook

Note: This feature is only available for practices who are already subscribed to Halaxy API.

  1. Click Settings > Integrations, then at the top, click the Webhooks tab.

  2. In the top right, click Create Webhook.

  3. In the pop-up, configure the following:

    Webhooks-01.png
    • Endpoint URL: The URL from your external system that will receive this webhook's event data.

    • Event: The event to trigger this webhook.

    • Contact Email: Your contact email address, in case of troubleshooting.

    • Reason for Subscription: A quick description of why this webhook was created.

    • Authentication Header: Paste the authentication header of your request.

  4. Click Save.

You have successfully created a webhook.

Webhook statuses

Every webhook you create has a status, shown in Settings > Integrations > Webhooks. The status tells you whether Halaxy is successfully sending event data to your endpoint URL.

Status

What it means

Requested

The webhook has been created and is waiting for its first matching event. This is the expected status for a new webhook.

Active

The details of a matching event have been successfully delivered to your endpoint URL. A webhook stays in Requested until this happens for the first time, so a new webhook does not become Active straight away.

Error

Halaxy sent the event details, but your endpoint URL did not respond with 200 or 201.

Note

A new webhook stays in Requested until the event you selected actually happens in your Halaxy.

What to check when a webhook shows Error

The most common cause is an endpoint URL that is incorrect or unavailable. Check your external system to confirm that:

  • the endpoint URL is correct and available

  • the endpoint can receive POST requests

  • the endpoint responds with 200 or 201 (any other response is treated as a failure)

  • the Authentication Header you entered matches what your external system expects.

Once the endpoint is working, the webhook returns to Active the next time a matching event is delivered successfully. You do not need to delete or recreate it.

Warning

Event details that fail to be delivered are not sent again. Any events that occur while your webhook shows Error will not reach your external system, so you may need to add that information to your external system manually.

Updated

Was this article helpful?