status field to identify the payload type:
SUCCESS: Suki finished processing the session. This includes sessions where processing was skipped.FAILURE: Processing failed or the session was aborted.
_links object with links to retrieve the filled forms and the session status. A failure payload contains an error code and description instead.
- For details about when Suki sends these notifications and how to handle each outcome, refer to Form filling 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 Form filling processing finishes. This includes cases where processing was skipped.The success payload always uses this notification shape.
- Every
_linkskey is present. - Only
structured_dataandstatuscontain links. All other keys are empty arrays on a Form filling webhook. - What
structured_datareturns depends on how you ran the session: the Medical form templates you bound for the session; whether you streamed live audio, uploaded a recording (audio_file), or submitted a finished transcript (transcript); and what content was available for the session. - A
SUCCESSwebhook does not mean every requested form was filled. Templates Suki could not fill appear innon_generated_valueswhen you read the structured data.
Fields
string
required
Always
SUCCESS.string
required
Identifier of the Form filling session that triggered this notification. This is the session ID returned by Create Form filling session.
string
required
Identifier of the encounter associated with the Form filling session.
array of strings
Identifiers of all Form filling sessions in the encounter so far, ordered from oldest to newest. This list includes the session identified by
session_id. Ambient sessions in the same encounter are not listed.object
Additional context about the notification.
object
Links to the form output and session status. Every key is present in the object. Only
structured_data 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 Form filling results.
Each key contains an array of link objects. Every link object has the same four fields:
Form filling creates results for each session, not for the encounter as a whole, so there are no encounter-level links.
The two keys that contain links each hold one link for every Form filling session in
sessions, in the same order:
All other keys are empty arrays on a Form filling webhook.
Failure payload
Suki sends a failure payload when Form filling processing 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 Form filling session that failed or was aborted.
string
required
Identifier of the encounter associated with the session.
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 your team or clinician.