completed, your backend must retrieve the generated note content and render it in your chart UI for clinician review. You can also optionally retrieve the transcript and structured data for diagnoses and orders.
Which Retrieve API Should I Call
Which Retrieve API Should I Call
- This recording only: Use Session content with
ambient_session_id. - Shared note across sessions: Use Note content with
note_id. - Optional transcript: Use Get transcript after status is
completed. - Do not retrieve while status is still
running, or treatskipped/failedas a successful note.
- A Generating -> Note ready flow driven by Ambient session status API.
- A note editor mapped by
loinc_codeto the corresponding sections in your EHR or chart. - An optional transcript drawer and data panel for diagnoses and orders.
- Clear handling for
skippedandfailedsessions so they are not treated as successful note generation.
Prerequisites
- Session status is
completedfor theambient_session_idyou will query. See Check note status. - A valid Suki Token. See Partner authentication.
- Stored identifiers for the retrieve path you need (
ambient_session_id, andnote_idwhen you use note-level APIs).
Retrieval flow
Content retrieval starts after the ambient session ends and note generation finishes. Do not retrieve generated content while status is stillrunning.
End the Ambient Session
RU9G, close the WebSocket, and call the End ambient session API. See Complete an ambient visit.Wait for a Completed Status
completed, skipped, failed, or aborted. See Check note status.Retrieve Session Content
completed, call Get session content. Optionally call Get transcript.Retrieve Structured Data
Show the Note Review UI
Optionally Collect Feedback
running is too early.Build the note review experience
The note review screen is the clinician’s destination after Ambient generation succeeds. At minimum, your UI should let the clinician read generated sections, edit the content, and approve or save the note.Note Editor
loinc_code.Transcript
lang_id when you show detected language.Data Panel
type is ICD10.Feedback and Approve
Map note sections to your chart
Session content returns note sections in thesummary[] array. Each section includes loinc_code, title, and content.
Use loinc_code as the stable join key when mapping Suki sections to your EHR or chart template. You can display your own EHR section labels in the your UI. Keep the LOINC code available for if you build a Dictation section later.
If a requested section has no generated text, that section is omitted from the response. Hide the corresponding section in your UI. Do not invent Ambient text.
For more information, see Note sections.
Sample session content response
After status iscompleted, Get session content returns the generated note in summary[], with optional structured_data blocks in the same response. Expand the sample to inspect a real-shaped payload and the Ambient APIs that produce it.
Sample API Response
Sample API Response
APIs used for this sample
structured_data means no diagnosis or order blocks were generated here.- Create ambient session: Start the visit recording.
- Provide visit context: Pass LOINC sections such as 10154-3 and 10164-2.
- Stream ambient audio: Send live audio over WebSocket.
- End ambient session: Stop capture and start note generation.
- Get session status: Poll until status is
completed. - Get session content: Returns this
summary[]response.
Retrieve optional transcript and structured data
Not every application needs every type of Ambient content.When to Use the Transcript
When to Use the Transcript
lang_id to show detected language.When to Use Structured Data
When to Use Structured Data
When Not to Retrieve
When Not to Retrieve
running. Do not retrieve after skipped, failed, or aborted and present an empty chart as success.Choose the structured-data scope
Choose the structured-data endpoint based on how your application organizes the chart.structured_data.section_structured_values. Note structured data does not include them. Refer to Seed and read Embedded Forms.One Recording Just Finished
One Recording Just Finished
The Note Spans Multiple Ambient Sessions
The Note Spans Multiple Ambient Sessions
note_id when diagnoses and orders should be cumulative across recordings in the same note.The Chart Is Keyed by Encounter
The Chart Is Keyed by Encounter
Render diagnoses and codes
Each diagnosis includes acodes array. Treat codes as a flat list of objects with type, code, and description:
IMO and SNOMED entries with these three fields. Do not expect nested shapes such as codes.values. That is not the partner contract.
completed, one structured-data call is enough. Codes do not appear later simply because the endpoint is called again.
See Diagnosis codes and Get ambient session structured data.
Example code: Load the note after completion
Call these APIs only after status iscompleted.
- TypeScript
- Python
summary[] with loinc_code, title, and content. Use loinc_code as the join key when mapping sections to your template. See Note sections.Support multi-session and interoperable notes
If capture continues across products or multiple ambient sessions contribute to the same note, use note-level APIs instead of treating each session as an independent note.- Use note-level APIs with
note_idto retrieve the latest shared content. - Use Note structured data when diagnoses and orders should be cumulative across recordings in the same note.
Implementation checklist
- Retrieve content only after status is
completed. - Do not retrieve generated content while status is
running. - Stop the retrieval flow for
skipped,failed, oraborted. - Map note sections using
loinc_code. Hide sections omitted because no generated text is available. - Retrieve the transcript only when your application needs it.
- Choose session, note, or encounter structured data based on your chart scope.
- Call the structured-data endpoint once after
completed. - Show an ICD code only when a diagnosis contains a code with
typeset toICD10. - Continue to show
diagnosis_notewhen ICD10 is missing. - Do not send HCC codes back into Provide visit context.
- Keep optional feedback independent from Approve / Save.
- Never present
skippedorfailedas a successful empty chart.
Troubleshooting
Retrieval problems are almost always status timing or treating a terminal non-success status as an empty chart.Note Looks Blank while Still Generating
Note Looks Blank while Still Generating
running. Keep Generating note… until status is completed, then load content.Status Is Skipped, Failed, or Aborted
Status Is Skipped, Failed, or Aborted
Content Called before Completed
Content Called before Completed
completed. Polling status and retrieving content are separate steps.ICD Codes Missing on Diagnoses
ICD Codes Missing on Diagnoses
type set to ICD10. Keep showing diagnosis_note when ICD10 is missing, and do not send HCC codes back into seed context.