When an assessment linked to the appointment is completed, a webhook event is sent to registered webhooks with details about the appointment, including the appointment ID, status, doctor ID, patient ID, and event type.
Field Definitions
• event: string - The type of resource for which event is generated. Here, it will be appointment.assessments.taken.
• service: string - The type of service. For appointments, this will be appointment.
• data: object - Contains detailed information about the appointment event.
• appointment_id: string - Unique identifier for the appointment.
• doctor_id: string - Unique identifier for the doctor.
• patient_id: string - Unique identifier for the patient.
• status: string - Status of the appointment. Possible values can be
“BK” (Booked),
“OG” (Ongoing),
“CM” (Completed with Prescription),
“CMNP” (Completed without Prescription),
“CN” (Cancelled).
• action: string - Current action for the appointment. Possible values can be
created
modified
completed
• partner_meta: key value pair specified by partner while creating appointment.
• timestamp: string (ISO 8601) - The date and time when the event occurred.
• custom_attibutes: complete set of custom attributes(inclusing tags and labels) defined against this appointment. occurred.
• sa_ids: List of self assessment IDs.
• workflow_data: List of self assessment data.
Example Webhook Request
Endpoint: https://your-registered-webhook-url.com
Method: POST
Type of event
"appointment.assessments.taken"
Event occurred timestamp
1749544696
Timestamp of the event
1730189586
Business ID for the appointment
"75682005283056"
Client ID for the appointment
""
Service related to the event
"appointment"
Transaction ID for the event
"d-bcebe31d-5a73-4d05-bd4f-0fdef45dcb86"