As events occur in your clinic, a signed notification is sent to your registered address; you keep your own system instantly up to date.
Endpoints for this resource. Every endpoint is scoped to the clinic data the API key is bound to; write endpoints support the Idempotency-Key header.
/v1/webhooks
Lists registered webhook subscriptions
admin
/v1/webhooks
Registers a webhook for event notifications
admin
/v1/webhooks/{id}
Deletes the webhook subscription
admin
Register webhook
curl -X POST https://api.udentiva.com/v1/webhooks \
-H "Authorization: Bearer udk_live_xxx" \
-H "Content-Type: application/json" \
-d '{"url":"https://siz.example/hook","events":["payment.created"]}'
HTTP/1.1 201 Created
{
"id": "wh-1",
"url": "https://siz.example/hook",
"events": ["payment.created"],
"secret": "whsec_xxx"
}
Security isn't a feature, it's the architecture itself. The guarantees that apply to this resource:
Errors are returned in a consistent envelope; the code is for the machine, the message for the user. Internal error/stack is never leaked.
{
"error": {
"code": "validation_failed",
"message": "Invalid field: email"
}
}
We use cookies necessary for core functionality; analytics and marketing cookies are enabled only with your consent. Cookie ポリシー