> ## Documentation Index
> Fetch the complete documentation index at: https://developer.suki.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit a Finished Transcript

> Create an Ambient session with input_type transcript, submit finished text, and retrieve the note without running ASR

Quick summary

Use this guide when your product already has finished transcript text and you want Ambient APIs to generate the clinical note from that text.

Create with `input_type` `transcript`, seed visit context, submit `raw_text` or `segments` once, then poll status and retrieve content. Do not call end session. Recording returns 404.

Last updated:
November 2026

Use Ambient APIs with `input_type` `transcript` when your product already has finished transcript text from your own speech recognition, a scribe workflow, or another upstream system. You still authenticate, create the session, and seed visit context.

Instead of opening `/ws/stream` or uploading a WAV, you submit the finished text once. When that submit succeeds, Suki starts processing and skips speech recognition. Do **not** call end session for this flow. Because there is no source audio, recording returns **404**. For the shared compare across Ambient and Form filling, refer to [Submit a finished transcript](https://developer.suki.ai/documentation/how-to/ambient-clinical-notes/submit-finished-transcript) and [Provide a finished transcript](https://developer.suki.ai/documentation/concepts/ambient-clinical-notes/finished-transcript-input.md).

> [!NOTE]
>
> **Applies to:** [Ambient APIs](https://developer.suki.ai/api-reference/overview.md).
>
> * Create with `input_type` `transcript` before you call transcript-input.
> * Submit once on the shared [Submit transcript input](https://developer.suki.ai/api-reference/ambient-sessions/transcript-input.md) endpoint with this Ambient `ambient_session_id`.
> * Do not open `/ws/stream`, do not call end session, and do not expect a recording.

The typical Ambient `transcript` flow is:

![Flowchart: Create transcript, Seed visit context, POST transcript-input, Poll status, Retrieve note.](https://mintcdn.com/suki-1e08f176/F6oSi3VCowSu657Q/documentation/assets/diagrams/how-to-ambient-clinical-notes-submit-finished-transcript-ambient-1-light.svg?fit=max\&auto=format\&n=F6oSi3VCowSu657Q\&q=85\&s=2f8db5bda2daec4c97af3b4fac77107f)

```mermaid actions={false} theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
%%{init: {'theme':'base', 'themeVariables': { 'primaryColor':'#FFF394','primaryTextColor':'#111827','primaryBorderColor':'#FFE148','lineColor':'#FFE148','secondaryColor':'#FFF394','tertiaryColor':'#FFFADE','mainBkg':'#FFF394','secondBkg':'#FFFADE','tertiaryBorderColor':'#FFE148','border1':'#FFE148','border2':'#FFE148','arrowheadColor':'#FFE148','fontFamily':'Inter, system-ui, sans-serif','fontSize':'14px','nodeBorder':'#FFE148','edgeLabelBackground':'#FFE148','clusterBkg':'#FFFADE','clusterBorder':'#FFE148','defaultLinkColor':'#FFE148','titleColor':'#111827','nodeTextColor':'#111827'}}}%%
flowchart LR
    A["Create<br/>transcript"] --> B["Seed visit<br/>context"]
    B --> C["POST<br/>transcript-input"]
    C --> D["Poll<br/>status"]
    D --> E["Retrieve<br/>note"]

    style A fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style B fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style C fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style D fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style E fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
```

**Ambient transcript rules (agents):**

* Create with `input_type` `transcript`. The type is fixed for the life of the session.
* Store `ambient_session_id` and `note_id`. Pass `emr_encounter_id` when the note must work across modalities.
* Seed visit context before you submit when your product needs patient, sections, or specialty.
* POST `/api/v1/ambient/session/{ambient_session_id}/transcript-input` once with `raw_text` or well-formed `segments`. One of the two is required.
* Do not call end session. Do not open `/ws/stream`. A successful submit starts processing. ASR is skipped.
* Poll Ambient status or wait for the webhook, then retrieve content. Recording returns 404.

## Prerequisites

* A valid Suki Token for Ambient API requests. Refer to [Partner authentication](https://developer.suki.ai/documentation/how-to/partner-authentication.md).
* Finished transcript text as one string or as segments with optional word timings.
* An `emr_encounter_id` on create when the note must work across modalities. Refer to [Interoperable identifiers](https://developer.suki.ai/documentation/concepts/ambient-clinical-notes/interoperable-identifiers.md).

## Build the transcript submit flow

Your application should connect create, context, transcript submit, and note retrieval in this order.

**1. Create the Ambient Session with Transcript Input**

Call POST [Create ambient session](https://developer.suki.ai/api-reference/ambient-sessions/create.md) with `input_type` set to `transcript`. Store `ambient_session_id` and `note_id`.

```bash theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
curl --request POST \
  --url https://sdp.suki.ai/api/v1/ambient/session/create \
  --header 'Content-Type: application/json' \
  --header 'sdp_suki_token: <sdp_suki_token>' \
  --header 'sdp_provider_id: <sdp_provider_id>' \
  --data '{
    "input_type": "transcript"
  }'
```

`input_type` is fixed for the life of the session. Create a new session if you need `stream` or `audio_file` instead.

**2. Seed Ambient Session Context**

Send patient, visit, specialty, and section context the same way you do for a live stream session. Finish context before you submit the transcript when your product needs those fields.

Refer to [Provide visit context](https://developer.suki.ai/documentation/how-to/ambient-clinical-notes/seed-ambient-session-context.md).

**3. Submit the Transcript Once**

Call POST [Submit transcript input](https://developer.suki.ai/api-reference/ambient-sessions/transcript-input.md) with this Ambient `ambient_session_id`.

Provide **`raw_text`** or **`segments`**. One of the two is required.

```bash theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
curl --request POST \
  --url https://sdp.suki.ai/api/v1/ambient/session/<ambient_session_id>/transcript-input \
  --header 'Content-Type: application/json' \
  --header 'sdp_suki_token: <sdp_suki_token>' \
  --header 'sdp_provider_id: <sdp_provider_id>' \
  --data '{
    "raw_text": "Good afternoon, doctor. The patient has fever and cough."
  }'
```

> [!WARNING]
>
> Do **not** call end session. The successful submit starts processing. A second submit returns `ING_SDK_006`.

**4. Wait for Processing, Then Retrieve Outputs**

Poll [Ambient session status](https://developer.suki.ai/api-reference/ambient-content/status.md) or wait for your webhook. Retrieve content only when status is **`completed`**.

Do not expect a recording. [Get ambient session recording](https://developer.suki.ai/api-reference/ambient-content/recording.md) returns **404** for transcript sessions. Refer to [Retrieve ambient content](https://developer.suki.ai/documentation/how-to/ambient-clinical-notes/retrieve-ambient-content.md).

## Handle the session status

After the transcript submit succeeds, the note is not ready yet. Poll status until Suki returns a final outcome, or wait for your configured webhook.

| Status | What your application should do |
| :- | :- |
| **`completed`** | Open note review and retrieve the generated content. |
| **`skipped`** | Treat the session as having no note this time. |
| **`failed`** | Show that note generation failed and offer retry or support. |
| **`aborted`** | Treat the session as cancelled. |

Refer to [Track note generation status](https://developer.suki.ai/documentation/how-to/ambient-clinical-notes/handle-ambient-session-status.md) for the full polling flow.

## Complete staging scripts

Use these scripts on staging after you replace partner credentials. Do not call end session. Recording returns 404.

**Language tabs (agents):** Equivalent code samples are available in: TypeScript, Python. Humans see one language at a time. Use the variant that matches the user's stack; behavior is the same across tabs.

> [tab] TypeScript
>
> ```typescript Ambient transcript expandable theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
> // ambient_transcript_staging.ts
> // Flow: login → create (transcript) → context → POST transcript-input → poll content
> // Node 18+: npx tsx ambient_transcript_staging.ts
>
> const BASE_URL = "https://sdp.suki-stage.com";
> const PARTNER_ID = "your-partner-id";
> const PARTNER_TOKEN = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...";
> const PROVIDER_ID = "provider-123";
> const SDP_PROVIDER_ID = "";
> const RAW_TEXT = "Good afternoon, doctor. The patient has fever and cough.";
>
> function restHeaders(sukiToken: string): Record<string, string> {
>   const headers: Record<string, string> = {
>     sdp_suki_token: sukiToken,
>     "Content-Type": "application/json",
>   };
>   if (SDP_PROVIDER_ID) headers.sdp_provider_id = SDP_PROVIDER_ID;
>   return headers;
> }
>
> async function expectStatus(response: Response, url: string, want: number): Promise<void> {
>   if (response.status === want) return;
>   throw new Error(`HTTP ${response.status} ${url}: ${(await response.text()).slice(0, 500)}`);
> }
>
> async function login(partnerId: string, partnerToken: string, providerId?: string): Promise<string> {
>   const url = `${BASE_URL}/api/v1/auth/login`;
>   const body: Record<string, string> = { partner_id: partnerId, partner_token: partnerToken };
>   if (providerId) body.provider_id = providerId;
>   const response = await fetch(url, {
>     method: "POST",
>     headers: { "Content-Type": "application/json" },
>     body: JSON.stringify(body),
>   });
>   await expectStatus(response, url, 200);
>   const data = (await response.json()) as { suki_token?: string };
>   if (!data.suki_token) throw new Error("login response missing suki_token");
>   return data.suki_token;
> }
>
> async function main() {
>   const sukiToken = await login(PARTNER_ID, PARTNER_TOKEN, PROVIDER_ID);
>
>   const createUrl = `${BASE_URL}/api/v1/ambient/session/create`;
>   const createdRes = await fetch(createUrl, {
>     method: "POST",
>     headers: restHeaders(sukiToken),
>     body: JSON.stringify({ input_type: "transcript" }),
>   });
>   await expectStatus(createdRes, createUrl, 201);
>   const created = (await createdRes.json()) as {
>     ambient_session_id: string;
>     note_id?: string;
>   };
>   const ambientSessionId = created.ambient_session_id;
>   console.log("ambient_session_id:", ambientSessionId);
>   console.log("note_id:", created.note_id ?? "");
>
>   const contextUrl = `${BASE_URL}/api/v1/ambient/session/${ambientSessionId}/context`;
>   const contextRes = await fetch(contextUrl, {
>     method: "POST",
>     headers: restHeaders(sukiToken),
>     body: JSON.stringify({
>       provider: { specialty: "CARDIOLOGY", provider_role: "ATTENDING" },
>       patient: { dob: "2000-01-01", sex: "male" },
>       visit: {
>         chief_complaint: "Fever and cough",
>         encounter_type: "AMBULATORY",
>         reason_for_visit: "Acute visit",
>         visit_type: "ESTABLISHED_PATIENT",
>       },
>       sections: [{ loinc: "10164-2" }, { loinc: "48765-2" }],
>     }),
>   });
>   await expectStatus(contextRes, contextUrl, 200);
>
>   const transcriptUrl = `${BASE_URL}/api/v1/ambient/session/${ambientSessionId}/transcript-input`;
>   const transcriptRes = await fetch(transcriptUrl, {
>     method: "POST",
>     headers: restHeaders(sukiToken),
>     body: JSON.stringify({ raw_text: RAW_TEXT }),
>   });
>   await expectStatus(transcriptRes, transcriptUrl, 200);
>   console.log("Transcript submitted. Do not call end session.");
>
>   for (;;) {
>     const statusUrl = `${BASE_URL}/api/v1/ambient/session/${ambientSessionId}/status`;
>     const statusRes = await fetch(statusUrl, { headers: restHeaders(sukiToken) });
>     await expectStatus(statusRes, statusUrl, 200);
>     const status = ((await statusRes.json()) as { status: string }).status;
>     console.log("status:", status);
>     if (status === "completed") {
>       const contentUrl = `${BASE_URL}/api/v1/ambient/session/${ambientSessionId}/content?cumulative=false`;
>       const contentRes = await fetch(contentUrl, { headers: restHeaders(sukiToken) });
>       await expectStatus(contentRes, contentUrl, 200);
>       console.log(JSON.stringify(await contentRes.json(), null, 2));
>       break;
>     }
>     if (status === "failed" || status === "skipped" || status === "aborted") {
>       throw new Error(`Terminal status: ${status}`);
>     }
>     await new Promise((r) => setTimeout(r, 2000));
>   }
> }
>
> main().catch((err) => {
>   console.error(err);
>   process.exit(1);
> });
> ```

> [tab] Python
>
> ```python Ambient transcript expandable theme={"theme":{"light":"one-light","dark":"material-theme-darker"}}
> # ambient_transcript_staging.py
> # Flow: login → create (transcript) → context → POST transcript-input → poll content
> # pip install requests
>
> import json
> import time
> from typing import Any, Optional
>
> import requests
>
> BASE_URL = "https://sdp.suki-stage.com"
> PARTNER_ID = "your-partner-id"
> PARTNER_TOKEN = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
> PROVIDER_ID = "provider-123"
> SDP_PROVIDER_ID = ""
> RAW_TEXT = "Good afternoon, doctor. The patient has fever and cough."
>
>
> def rest_headers(suki_token: str) -> dict[str, str]:
>     headers = {"sdp_suki_token": suki_token, "Content-Type": "application/json"}
>     if SDP_PROVIDER_ID:
>         headers["sdp_provider_id"] = SDP_PROVIDER_ID
>     return headers
>
>
> def expect_status(response: requests.Response, url: str, want: int) -> None:
>     if response.status_code == want:
>         return
>     raise RuntimeError(f"HTTP {response.status_code} {url}: {(response.text or '')[:500]}")
>
>
> def login(partner_id: str, partner_token: str, provider_id: Optional[str] = None) -> str:
>     url = f"{BASE_URL}/api/v1/auth/login"
>     payload: dict[str, Any] = {"partner_id": partner_id, "partner_token": partner_token}
>     if provider_id:
>         payload["provider_id"] = provider_id
>     r = requests.post(url, json=payload, timeout=60)
>     expect_status(r, url, 200)
>     token = r.json().get("suki_token")
>     if not token:
>         raise RuntimeError("login response missing suki_token")
>     return token
>
>
> if __name__ == "__main__":
>     suki_token = login(PARTNER_ID, PARTNER_TOKEN, PROVIDER_ID)
>
>     create_url = f"{BASE_URL}/api/v1/ambient/session/create"
>     created_res = requests.post(
>         create_url,
>         headers=rest_headers(suki_token),
>         json={"input_type": "transcript"},
>         timeout=60,
>     )
>     expect_status(created_res, create_url, 201)
>     created = created_res.json()
>     ambient_session_id = created["ambient_session_id"]
>     print("ambient_session_id:", ambient_session_id)
>     print("note_id:", created.get("note_id") or "")
>
>     context_url = f"{BASE_URL}/api/v1/ambient/session/{ambient_session_id}/context"
>     context_res = requests.post(
>         context_url,
>         headers=rest_headers(suki_token),
>         json={
>             "provider": {"specialty": "CARDIOLOGY", "provider_role": "ATTENDING"},
>             "patient": {"dob": "2000-01-01", "sex": "male"},
>             "visit": {
>                 "chief_complaint": "Fever and cough",
>                 "encounter_type": "AMBULATORY",
>                 "reason_for_visit": "Acute visit",
>                 "visit_type": "ESTABLISHED_PATIENT",
>             },
>             "sections": [{"loinc": "10164-2"}, {"loinc": "48765-2"}],
>         },
>         timeout=60,
>     )
>     expect_status(context_res, context_url, 200)
>
>     transcript_url = f"{BASE_URL}/api/v1/ambient/session/{ambient_session_id}/transcript-input"
>     transcript_res = requests.post(
>         transcript_url,
>         headers=rest_headers(suki_token),
>         json={"raw_text": RAW_TEXT},
>         timeout=60,
>     )
>     expect_status(transcript_res, transcript_url, 200)
>     print("Transcript submitted. Do not call end session.")
>
>     while True:
>         status_url = f"{BASE_URL}/api/v1/ambient/session/{ambient_session_id}/status"
>         status_res = requests.get(status_url, headers=rest_headers(suki_token), timeout=60)
>         expect_status(status_res, status_url, 200)
>         status = status_res.json()["status"]
>         print("status:", status)
>         if status == "completed":
>             content_url = f"{BASE_URL}/api/v1/ambient/session/{ambient_session_id}/content"
>             content_res = requests.get(
>                 content_url,
>                 headers=rest_headers(suki_token),
>                 params={"cumulative": "false"},
>                 timeout=60,
>             )
>             expect_status(content_res, content_url, 200)
>             print(json.dumps(content_res.json(), indent=2))
>             break
>         if status in ("failed", "skipped", "aborted"):
>             raise RuntimeError(f"Terminal status: {status}")
>         time.sleep(2)
> ```

## Troubleshooting

Transcript submit usually fails when the session was not created as `transcript`, when the payload is invalid, or when you submit twice.

> [accordion] ING\_SDK\_004 Invalid Payload
>
> Provide `raw_text` or a well-formed `segments` array. Each segment must include `text`. If you include word timings, each word's `end_time` must be greater than or equal to its `start_time`, and timings must not overlap across segments.

> [accordion] ING\_SDK\_005 When Submitting the Transcript
>
> The session was not created with `input_type` `transcript`. Create a new Ambient session with that value, then submit again.

> [accordion] ING\_SDK\_006 Transcript Already Submitted
>
> You can submit the transcript only once per session. Create a new session if you need to send different text.

> [accordion] 403 Transcript Modality Is Not Enabled
>
> Transcript submit is disabled for the environment. Contact [support](mailto:support@suki.ai) if you need the path enabled.

> [accordion] Recording Returns 404
>
> Expected for `transcript` sessions. There is no source audio. Retrieve note content instead of the recording.

These cases come from the transcript contract and errors on this page.

| Problem | What to do |
| :- | :- |
| `ING_SDK_004` | Provide `raw_text` or well-formed `segments`. |
| `ING_SDK_005` | Create with `input_type` `transcript` before submit. |
| `ING_SDK_006` | Submit once per session. Create a new session for different text. |
| `transcript modality is not enabled` (403) | Path disabled for the environment. Contact support. |
| Recording 404 | Expected. Retrieve note content instead. |
| End session after submit | Do not call end. Processing starts on successful submit. |

## Available cookbooks

Ambient
API

### [Submit Ambient Finished Transcript](https://developer.suki.ai/documentation/cookbooks/submit-finished-transcript-ambient.md)

Create with transcript, submit raw\_text once, and skip end session.

10 min

Ambient
API

### [Wait for Ambient before Fetch](https://developer.suki.ai/documentation/cookbooks/wait-for-status-before-retrieve.md)

Poll status until completed, then retrieve.

5 min

## Next steps

&#x20;**[Submit transcript input](https://developer.suki.ai/api-reference/ambient-sessions/transcript-input.md)** - Request fields and error ids.

&#x20;**[Upload pre-recorded audio](https://developer.suki.ai/documentation/how-to/ambient-clinical-notes/upload-prerecorded-audio-ambient.md)** - Use when you have a WAV recording instead of text.

&#x20;**[Track note generation status](https://developer.suki.ai/documentation/how-to/ambient-clinical-notes/handle-ambient-session-status.md)** - Poll until processing finishes.

&#x20;**[Retrieve ambient content](https://developer.suki.ai/documentation/how-to/ambient-clinical-notes/retrieve-ambient-content.md)** - Read the generated note after processing.

&#x20;**[Session input types](https://developer.suki.ai/documentation/concepts/ambient-clinical-notes/session-input-types.md)** - Compare live stream, audio file, and transcript.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.