Overview Configure a webhook that automatically sends your application a JSON payload whenever an app

Target keywords (5-7)

Full Article

API: Webhook setup for appointment notifications

Overview

Configure a webhook that automatically sends your application a JSON payload whenever an appointment is created, updated, or cancelled in the platform. This lets you keep your own calendar, CRM, or notification system in sync in real‑time.

Prerequisites

RequirementDetails
API KeyA valid API key with Webhook Manage scope.
Endpoint URLA publicly reachable HTTPS URL that can receive POST requests (e.g., https://myapp.com/webhooks/appointments).
SSL CertificateThe endpoint must have a valid TLS certificate (no self‑signed certs).
JSON ParserYour server must be able to parse JSON payloads.
Access to Admin ConsoleYou need “Administrator” or “Integration Manager” role in the SaaS portal.

Step‑By‑Step Guide

  1. Log in to the Admin Console
- Open https://app.healthai.com and sign in with your admin credentials.
  1. Navigate to the Webhooks page
- From the left‑hand navigation, click IntegrationsWebhooks.

- [Screenshot: “Integrations > Webhooks” menu highlighted]

  1. Create a new webhook
- Click the + New Webhook button in the top right corner.

- [Screenshot: “+ New Webhook” blue button]

  1. Enter basic webhook details
- Name: e.g., Appointment Notifications.

- Endpoint URL: paste your HTTPS endpoint (e.g., https://myapp.com/webhooks/appointments).

- Secret (optional): generate a secret token if you want to verify signatures.

- Status: set to Enabled.

- [Screenshot: New webhook form with fields highlighted]

  1. Select event types
- Under Event Subscriptions, check the boxes for:

- appointment.created

- appointment.updated

- appointment.cancelled

- You can also check All appointment events to capture any future event types.

- [Screenshot: Event checkboxes]

  1. Configure request headers (optional)
- Click Add Header to include custom headers such as Authorization: Bearer or X-Client-ID.

- [Screenshot: Header configuration modal]

  1. Save the webhook
- Click the blue Save button in the bottom right corner.

- A confirmation banner appears: “Webhook created successfully.”

- [Screenshot: Blue “Save” button and success banner]

  1. Test the webhook
- In the webhook list, click the Test icon (paper airplane) next to your new webhook.

- Choose appointment.created from the dropdown and click Send Test.

- Verify that your endpoint receives a JSON payload with a 200 OK response.

- [Screenshot: Test modal and response log]

  1. Review delivery logs
- After testing, click the Logs tab for the webhook to see timestamps, status codes, and payload samples.

- Use this view for ongoing troubleshooting.

- [Screenshot: Delivery logs table]

  1. Activate in production
- Once the test succeeds, ensure the webhook status remains Enabled.

- Your system will now receive real‑time appointment notifications.

Common Issues

SymptomLikely CauseFix
“Invalid SSL certificate” errorEndpoint uses a self‑signed or expired cert.Install a valid TLS certificate from a trusted CA.
No payload receivedEndpoint URL is unreachable or blocked by firewall.Open port 443 for inbound traffic and confirm the URL is correct.
401 Unauthorized responseMissing or wrong Authorization header.Add the correct Authorization: Bearer header in step 6.
Payload missing expected fieldsUsing an outdated API version.Ensure your API key is scoped for the latest version (v2) and re‑test.
Duplicate notificationsWebhook was accidentally created twice.Delete the extra webhook from the Webhooks list.

Related Articles

  1. API: Generating and rotating API keys
  2. API: Verifying webhook signatures
  3. Integrations: Setting up a CRM sync with appointment data

Still Need Help?

If you run into problems that aren’t covered above, our support team is ready to assist.

Provide the webhook name, endpoint URL, and any error logs when you contact us – it speeds up the resolution.

Ready to stop losing patients to voicemail?

See how MedReceptionist handles your call types in a 15-minute demo.

Book Your Demo