Notifications
Overview
Webhook Endpoint
POST
application/json
https://partner-api.example.com/webhooks/notifications
Request Format
Request Headers
Header | Value | Description |
---|---|---|
x-webhook-key | YOUR_WEBHOOK_SECRET | API secret key for authentication |
Content-Type | application/json | Specifies JSON format |
Request Body
{
"patient_id": "12345",
"message": "Patient's recent test indicates high cholesterol levels. A follow-up test is recommended."
}
Field | Type | Description |
---|---|---|
patient_id | string | Unique identifier of the patient. |
message | string | AI-powered health insight or recommendation. |
Response Format
Success Response:
{
"status": "success",
"message": "Notification received successfully."
}
Error Responses:
Status Code | Meaning | Example Response |
---|---|---|
400 | Bad Request | { "error": "Invalid payload format" } |
401 | Unauthorized | { "error": "Invalid API key" } |
500 | Server Error | { "error": "Internal server issue" } |
Security & Verification
1.
x-webhook-key
match expected value.2.
Testing & Debugging
Example cURL Request
Contact & Support
Modified at 2025-03-04 08:13:49