Webhooks (Management API)
Register webhook subscriptions to receive real-time notifications for events across your organisation. For webhook payload formats and security, see the Webhooks section.These endpoints require the
notification_subscription permissions: notification_subscription:read to list subscriptions, and notification_subscription:write to create, remove, or send a test webhook. A key without the required permission receives 403 Permission Denied. See Permissions for details.List Webhook Subscriptions
Retrieve all active webhook subscriptions for your organisation.Example Request
Response
Register Webhook Subscription
Create a new webhook subscription for your organisation.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
notification_type | string | Yes | Event type to subscribe to |
target | string | Yes | Webhook URL to receive notifications (must be HTTPS) |
meta_data | object | No | Optional metadata for the subscription |
payload_version | string | No | Payload schema version (default: "1") |
Available Event Types
| Event Type | Description |
|---|---|
pharmacy_order_created | A new pharmacy order has been created |
pharmacy_order_updated | An existing order’s status has changed |
pharmacy_sku_stock_updated | Stock level changed for a pharmacy SKU |
patient_doctor_meeting_updated | A patient-doctor meeting changed lifecycle state |
Example Request
Response (201 Created)
Remove Webhook Subscription
Delete (deactivate) a webhook subscription by specifying the target URL and notification type.The webhook target URL
The notification type to unsubscribe from
Example Request
204 No Content on success.
Test Webhook Delivery
Send a sample webhook payload to a target URL to verify your endpoint is configured correctly. This is useful for verifying your webhook endpoint is working before creating a subscription.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
target_url | string | Yes | URL to send the test webhook to (must be HTTPS) |
event_type | string | No | Type of event to simulate (default: pharmacy_order_created) |
header_key | string | No | Custom header name to include in the test request |
header_value | string | No | Custom header value to include in the test request |
Example Request
Response
Test webhook payloads include the header
X-Webhook-Test: true so your endpoint can distinguish test deliveries from real ones.