status field to identify the payload type:
SUCCESS: Suki finished coding the note.FAILURE: Coding failed or the session was aborted.
_links object with links to retrieve the recommended codes and the session status. A failure payload contains an error code and description instead.
- This webhook is only for standalone E/M Coding sessions created with Generate E/M codes. E/M codes requested on an ambient visit with
artifacts: ["EM_CODES"]arrive on the Ambient webhook, not this one. - For details about when Suki sends these notifications and how to handle each outcome, refer to E/M Coding webhook overview.
- For request headers, signature verification, and the response your endpoint must return, refer to Webhook request and response.
Success payload
Suki sends a success payload when standalone E/M Coding finishes.The success payload always uses this notification shape.
- Every
_linkskey is present. - Only
em_codesandstatuscontain links. All other keys are empty arrays on an E/M Coding webhook. - What
em_codesreturns depends on the finished note content you submitted to Generate E/M codes, and on any coding context you included with that request, such as visit time or wellness details. - Generated codes stay available for 30 days. Read and store them soon after the webhook arrives.
Fields
string
required
Always
SUCCESS.string
required
Identifier of the E/M Coding session that triggered this notification. This is the session ID returned by Generate E/M codes.
string
required
Always an empty string. Standalone E/M Coding sessions are not tied to an encounter. Store your own visit reference next to the
session_id when you call Generate E/M codes.array of strings
Contains only the session identified by
session_id.object
Additional context about the notification.
object
Links to the codes and the session status. Every key is present in the object. Only
em_codes and status contain links. All other keys are empty arrays.Refer to The _links object for the complete list of keys and their descriptions.Example success payload
The _links object
The_links object contains the API paths your application can call to retrieve standalone E/M Coding results.
Each key contains an array of link objects. Every link object has the same four fields:
The two keys that contain links each hold exactly one link:
All other keys are empty arrays on an E/M Coding webhook.
Failure payload
Suki sends a failure payload when standalone E/M Coding fails or when a session is aborted. Unlike the success payload, the failure payload does not containsessions, _links, or additional_info. Instead, it includes an error code and a description of the error.
Fields
string
required
Always
FAILURE.string
required
Identifier of the E/M Coding session that failed or was aborted.
string
required
Present on every failure payload, but not meaningful for standalone E/M Coding. Do not use it to look up the visit.
string
required
Machine-readable code that identifies the reported error. Refer to Error codes.
string
required
Human-readable description of the error. This field can contain an empty string when Suki has no additional details.
Example failure payload
Error codes
Theerror_code field identifies the type of error reported in the failure notification.
Use
error_code to identify and handle error conditions in your application. Log error_detail to help with troubleshooting or to provide context when notifying coding staff.