Skip to main content
POST
cURL
Updated
Use this endpoint to create a Form filling session for a patient (visit). A Form filling session represents one capture for a patient encounter. An encounter can contain one or more Form filling sessions, so multiple captures can stay associated with the same clinical visit. When you create a session, the response returns:
  • ambient_session_id: Identifies the Form filling session. Use it for session-level operations such as setting context, streaming audio, uploading a WAV, submitting a transcript, checking processing status, and retrieving structured form output.
Both Form filling and the Ambient APIs use the field name ambient_session_id, but the values identify different sessions. Do not pass an Ambient API session ID here. Use only the Form filling ambient_session_id returned from this endpoint for Form filling REST calls and for /ws/stream.

Request body fields

All request body fields are optional. You can create a Form filling session with an empty JSON body. If you do not provide ambient_session_id, Suki generates one and returns it in the response. If you omit input_type, the session defaults to stream, which uses live WebSocket audio. Use the following fields to configure the session, correlate it in your systems, or choose how to provide the conversation.

Choose an input type

Set input_type based on how you provide the conversation to Suki. Each input type determines how Suki receives the data, when processing starts, and whether you need to explicitly end the session.

Retrieve session results

Seed Form filling session context with at least one template or schema before processing starts. Once processing starts, the remaining workflow is the same for all three input types:
  • Check processing status by polling the status endpoint or receiving a webhook.
  • Retrieve the structured form output.
Recording retrieval depends on the input type:
  • For stream and audio_file, you can retrieve the recording.
  • For transcript, recording retrieval returns 404 because the session was created from transcript text rather than an audio recording.

Code examples

The code examples below use placeholders and the stage host sdp.suki-stage.com only as examples. For credentials, base URLs, where to run Python or TypeScript, CORS, and cURL, refer to Using code examples in your integration in the API Reference Guidelines.

Endpoint reference

Authorizations

sdp_suki_token
string
header
required

Suki access token (suki_token) from Login or Register. Expires after one hour.

Headers

sdp_provider_id
string

Optional for standard partners.

Required for:

  • Bearer authentication. Use the same provider_id returned by the Login or Register API.
  • Single Auth Token authentication. Include the same provider_id on every request as sdp_provider_id.
Example:

"provider-123"

Body

application/json

Optional form-filling session ID and correlation metadata. Suki generates a form-filling session ID when omitted.

ambient_session_id
string

Optional - Form-filling session ID in UUID format. Suki generates one when omitted and returns it in the ambient_session_id response field. Do not pass an ambient clinical documentation session ID.

Example:

"123dfg-456dfg-789dfg-012dfg"

correlation_id
string

Optional - Client-supplied identifier for tracing or correlating requests.

Example:

"123dfg-456dfg-789dfg-012dfg"

input_type
enum<string>

Optional - How you send visit content into this Form filling session. Omit or set stream for live WebSocket audio (default). Set audio_file to upload one pre-recorded WAV. Set transcript to submit finished transcript text. Send this field in the JSON body only. Query params are ignored. Fixed for the life of the session. Use the same upload and transcript-input endpoints as Ambient, with this Form filling ambient_session_id.

Available options:
stream,
audio_file,
transcript
Example:

"stream"

Response

Resource created successfully.

New form-filling session ID returned after create.

ambient_session_id
string

Form-filling session ID for subsequent form-filling API calls. Despite the field name, this is not an ambient clinical documentation session ID.

Example:

"123dfg-456dfg-789dfg-012dfg"

Last modified on November 25, 2026