Events by product
Suki sends a webhook when a session or ingestion job reaches a final outcome.If you request E/M codes on an ambient visit with
artifacts: ["EM_CODES"], those results arrive on the Ambient webhook. They do not arrive on the E/M Coding webhook. Use the E/M Coding webhook only for standalone coding sessions.Route each event to the right handler
When one callback URL receives more than one product, identify the product from the body in this order:- If the body includes a
statefield, treat it as a CKG ingestion event and handle it with CKG ingestion results. - If
statusisSUCCESS, readadditional_info.session_typeto tell Ambient, Form filling, and E/M Coding apart. - If
statusisFAILURE, look upsession_idin the session IDs you saved when you created each session.
Failure payloads do not include
additional_info, so they also do not include session_type.Code example
- Python
- TypeScript
product_for_session stands in for your own lookup of the session IDs you stored.
Delivery rules
Build your application’s receiver around these rules:Delivery rules for building your receiver
Delivery rules for building your receiver
- Suki sends webhooks only when processing finishes. Suki sends a webhook when a session or ingestion job reaches a final state, whether it succeeds or fails. It does not send notifications while processing is in progress. To track progress, poll the product’s status endpoint.
-
Cancelled sessions do not trigger webhooks. If you send
CANCELduring an Ambient or Form filling session, Suki stops processing and does not send a webhook for that session. -
A successful response does not guarantee that content was generated. For example, an ambient session with silent or very short audio can return
SUCCESSwhile the session status isskipped. See Success does not always mean a note. -
The same webhook can be delivered more than once. Suki retries failed deliveries after
5xxresponses,408,429, timeouts, and network errors. Your endpoint must handle duplicate notifications safely. Usesession_idwithstatusfor session webhooks, ortransaction_idwithstatefor CKG ingestion webhooks, to identify notifications you have already processed. -
Not all failed deliveries are retried. Suki permanently stops retrying if your endpoint returns a
4xxresponse other than408or429, or a successful HTTP status other than200. - Webhooks can arrive concurrently. Suki can send notifications for different sessions and ingestion jobs to your endpoint at the same time. Make sure your endpoint can process concurrent requests.