Skip to main content
Use Form filling APIs with 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.
For a comparison of pre-recorded audio input across Ambient and Form filling, refer to:
Applies to: Form filling APIs.
  • Create with input_type audio_file before you mint the upload URL.
  • Seed at least one form in form_filling.values before 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.
The typical Form filling audio_file flow is: Flowchart: Create audio_file, Seed form context, GET file-uploadurl, PUT WAV, Poll status, Retrieve structured data. Flowchart: Create audio_file, Seed form context, GET file-uploadurl, PUT WAV, Poll status, Retrieve structured data.

Prerequisites

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 form_filling.values must use exactly one of form_template_id or schema.
Refer to Form filling basic usage and Seed Form filling with a Suki template.
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.
Do not call end session. The successful PUT starts processing.
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 real FORM_TEMPLATE_ID, and point AUDIO_PATH at a WAV file. Do not call end session. Do not reuse an Ambient clinical-note session id.
Form filling audio_file

Troubleshooting

Upload usually fails when the session was not created as audio_file, when form context is missing, or when you mix Ambient and Form filling session IDs.
The session was not created with input_type audio_file. Create a new Form filling session with that value, then mint again.
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.
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.
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.
Do not call end session for audio_file. Processing starts when the PUT succeeds. End belongs to the live stream path.

Available cookbooks

Next steps

Get audio file upload URL - Shared mint and PUT contract. Submit a finished transcript - Use when you already have text instead of audio. Form filling basic usage - Create, context, stream, and retrieve for the live path. Session input types - Compare stream, audio file, and transcript.
Last modified on November 24, 2026