input_type set to audio_file when your application already has a WAV recording of the patient-provider or patient-nurse conversation.
First, authenticate, create a Form filling session, and provide at least one template or partner schema.
Then, mint a one-time upload URL from the shared Get audio file upload URL endpoint using your Form filling ambient_session_id, and PUT one WAV with both signed headers. You do not need to open /ws/stream. Suki starts processing after the upload succeeds.
Important:
- Do not call the end session endpoint for this flow.
- Upload exactly one WAV file. Processing starts when the PUT succeeds.
Applies to: Form filling APIs.
- Create with
input_typeaudio_filebefore you mint the upload URL. - Seed at least one form in
form_filling.valuesbefore processing starts. - Mint and PUT use the shared Get audio file upload URL endpoint with this Form filling
ambient_session_id. - Do not open
/ws/stream, and do not call end session to start processing.
Both Form filling and Ambient clinical note sessions use the parameter name
ambient_session_id. Those identifiers refer to different sessions. Use only the ID returned from Form filling Create Form filling session for Form filling REST calls and for the shared upload endpoint.audio_file flow is:
Prerequisites
- A valid Suki Token. Refer to Partner authentication and Form filling authentication.
- One WAV file, at most 500 MB.
- At least one Form filling template ID or partner schema to seed before processing starts.
Build the upload flow
Your application should connect create, form context, upload, and structured-data retrieval in this order.1
Create the Form Filling Session with Audio File Input
Call POST Create Form filling session with
input_type set to audio_file. Store the returned ambient_session_id.input_type is fixed for the life of the session. Create a new session if you need stream or transcript instead.2
Seed Form Filling Session Context
Seed at least one template or partner schema before processing starts. Each object in Refer to Form filling basic usage and Seed Form filling with a Suki template.
form_filling.values must use exactly one of form_template_id or schema.3
Get the Upload URL
Call GET Get audio file upload URL with the Form filling session id from create.Read
presigned_url_response.url and finish the upload before the URL expires.4
PUT the WAV File
Upload the file with both signed headers:
Upload one WAV per session, at most 500 MB.
5
Wait for Processing, Then Retrieve Structured Data
Poll Form filling session status or wait for your webhook. Then retrieve structured data when status is
completed.Handle the session status
After the PUT succeeds, structured form output is not ready yet. Poll Form filling status until Suki returns a final outcome, or wait for your configured webhook.Complete staging scripts
Use these scripts on staging after you replace partner credentials, set a realFORM_TEMPLATE_ID, and point AUDIO_PATH at a WAV file. Do not call end session. Do not reuse an Ambient clinical-note session id.
- TypeScript
- Python
Form filling audio_file
Troubleshooting
Upload usually fails when the session was not created asaudio_file, when form context is missing, or when you mix Ambient and Form filling session IDs.
ING_SDK_005 When Minting the Upload URL
ING_SDK_005 When Minting the Upload URL
The session was not created with
input_type audio_file. Create a new Form filling session with that value, then mint again.ING_SDK_006 or HTTP 412 on a Second Upload
ING_SDK_006 or HTTP 412 on a Second Upload
Input was already submitted for this session, or you tried to overwrite the uploaded object. Upload one WAV per session. Create a new session for another file.
No Structured Form Output
No Structured Form Output
Seed at least one
form_template_id or partner schema in form_filling.values before the upload succeeds. Empty context does not produce filled forms.Wrong ambient_session_id
Wrong ambient_session_id
Pass the Form filling
ambient_session_id from Form filling create. Do not pass an Ambient clinical-note session id into Form filling upload or retrieve calls.Calling End Session After Upload
Calling End Session After Upload
Do not call end session for
audio_file. Processing starts when the PUT succeeds. End belongs to the live stream path.