Create webhook subscription (beta)
🚧 Beta
Send Nex-Api-Version: v3.1.0 to use this endpoint. It is still changing, and access is limited to approved partner institutions. Contact NexHealth before you build on it.
Changed from v3.0.0: Adds request field version; changes request fields event, resource_type; adds response 422; adds response field data.version.
This endpoint creates a webhook subscription on the given webhook endpoint; the optional version param pins the subscription to a specific API version for payload delivery, defaulting to v3.1.0 when omitted, and returns 422 if the version is unknown or does not support the subscribed event.
Request
- Base URLhttps://nexhealth.info
- URLhttps://nexhealth.info/webhook_endpoints/{id}/webhook_subscriptions
- AuthAPI key in header Authorization
Path parameters
Webhook Endpoint ID
Query parameters
Used to scope the request to the specified institution. For the following resources we don't require a subdomain: LocationDataReadiness, Onboarding
Headers
The NexHealth API version
Request body
Example request
{
"resource_type": "Appointment",
"event": "appointment_insertion",
"active": true,
"version": "v3.1.0"
}Response
Successful
Example response
{
"description": "Description",
"error": [
"Error message"
],
"data": {
"id": 1,
"webhook_endpoint_id": 1,
"institution_id": 1,
"resource_type": "Appointment",
"event": "appointment_insertion",
"active": true,
"created_at": "2020-06-05T20:16:57.007Z",
"updated_at": "2020-06-05T20:16:57.007Z",
"version": "v3.1.0"
},
"count": 2
}Changes
No recorded changes to this operation across all 1 revision of this API.