> ## 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.

# Upload a Pre-Recorded Audio File

> Choose the Ambient or Form filling how-to when you already have a WAV and need to upload it instead of streaming live

Quick summary

Use this overview when your product already has a WAV recording of the visit and you want Suki to generate Ambient notes or Form filling output from that file.

Create the session with `input_type` set to `audio_file`, get a short-lived upload URL, PUT one WAV with both signed headers, then wait for processing. Do not call end session. Pick the Ambient or Form filling how-to for product-specific create, context, and retrieve steps.

Last updated:
November 2026

> [!NOTE]
>
> **Pre-recorded audio upload is supported by:** Ambient APIs, Form filling APIs

Use this flow when your product already has a WAV recording and does not need to capture the visit live. Common cases include telephony archives, device recordings, and repeatable staging fixtures.

You still authenticate, create a session, and seed context when your product needs it. Instead of opening `/ws/stream`, you ask Suki for a one-time upload URL, PUT the WAV once, and wait. When the upload finishes, Suki starts processing. Do **not** call end session for this flow.

Ambient and Form filling share the upload URL endpoint under `/api/v1/ambient/...`. Pass the Ambient `ambient_session_id` for Ambient, or the Form filling `ambient_session_id` for Form filling. Do not mix those IDs. For when to choose upload versus live streaming or finished transcript text, refer to [Session input types](https://developer.suki.ai/documentation/concepts/ambient-clinical-notes/session-input-types.md) and [Provide a pre-recorded audio file](https://developer.suki.ai/documentation/concepts/ambient-clinical-notes/pre-recorded-audio-input.md).

## Shared rules

* Create with `input_type` `audio_file` before you mint the upload URL.
* Mint with GET `/api/v1/ambient/audio/file-uploadurl/{ambient_session_id}`, then PUT one WAV to `presigned_url_response.url`.
* Required PUT headers: `Content-Type: audio/wave` and `x-goog-if-generation-match: 0`.
* One WAV per session, at most **500 MB**. Do not call end session. Do not open `/ws/stream`.
* Wrong option for the session returns `ING_SDK_005`. A second submit returns `ING_SDK_006`. Option disabled returns 403.

## Flow

The shared upload path is the same on Ambient and Form filling. Product-specific create, context, and retrieve steps live in the how-tos below.

![Flowchart: Yes, No, Create session input\_type audio\_file, Seed context?, POST session context, GET file-uploadurl, PUT WAV with signed headers, AI processing starts, Webhook configured?, Receive notification, Poll session status, Retrieve content transcript structured data.](https://mintcdn.com/suki-1e08f176/F6oSi3VCowSu657Q/documentation/assets/diagrams/how-to-ambient-clinical-notes-upload-prerecorded-audio-1-light.svg?fit=max\&auto=format\&n=F6oSi3VCowSu657Q\&q=85\&s=25c4754791b278c65a61cbf6581778c6)

```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 TD
    A[Create session input_type audio_file] --> B{Seed context?}
    B -->|Yes| C[POST session context]
    B -->|No| D
    C --> D[GET file-uploadurl]
    D --> E[PUT WAV with signed headers]
    E --> F[AI processing starts]
    F --> G{Webhook configured?}
    G -->|Yes| H[Receive notification]
    G -->|No| I[Poll session status]
    H --> J
    I --> J[Retrieve content transcript structured data]

    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
    style F fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style G fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style H fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style I fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
    style J fill:#FFF394,stroke:#FFE148,stroke-width:2px,color:#111827
```

**Shared audio\_file rules (agents):**

* Create with `input_type` `audio_file` on the product you are integrating (Ambient or Form filling).
* Pass the matching product `ambient_session_id` into GET `/api/v1/ambient/audio/file-uploadurl/{ambient_session_id}`. Do not mix Ambient and Form filling IDs.
* PUT one WAV with `Content-Type: audio/wave` and `x-goog-if-generation-match: 0`. Max 500 MB. One file per session.
* Do not call end session. Do not open `/ws/stream`. A successful PUT starts processing.
* Poll status or wait for the webhook on the same product, then retrieve that product's outputs.

## Build the shared upload flow

These steps are the same on Ambient and Form filling. Open the product how-to for create, context, and retrieve details.

**1. Create the Session with Audio File Input**

Create on Ambient or Form filling with `input_type` set to `audio_file`. Store the returned `ambient_session_id` for that product.

**2. Seed Session Context**

Seed visit context for Ambient, or seed at least one template or schema for Form filling, before you mint the upload URL when your product needs those fields.

**3. Get the Upload URL**

Call GET [Get audio file upload URL](https://developer.suki.ai/api-reference/ambient-sessions/file-uploadurl.md) with the session id from create.

Read `presigned_url_response.url` and finish the upload before the URL expires.

**4. PUT the WAV File**

Upload one WAV with both signed headers:

| Header | Required value |
| :- | :- |
| `Content-Type` | `audio/wave` |
| `x-goog-if-generation-match` | `0` |

> [!WARNING]
>
> Do **not** call end session. The successful PUT starts processing.

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

Poll status or wait for your webhook on the same product. Retrieve Ambient note content or Form filling structured data when status is **`completed`**.

## Pick your product how-to

> [card] [Ambient APIs](https://developer.suki.ai/documentation/how-to/ambient-clinical-notes/upload-prerecorded-audio-ambient.md)
>
> Ambient create, visit context, WAV upload, then note content.

> [card] [Form Filling APIs](https://developer.suki.ai/documentation/how-to/form-filling/upload-prerecorded-audio.md)
>
> Form filling create, template context, WAV upload, then structured data.

## Troubleshooting

Shared upload usually fails when the session was not created as `audio_file`, when you mix Ambient and Form filling session IDs, or when you treat a second mint or overwrite PUT as a retry.

> [accordion] ING\_SDK\_005 When Minting the Upload URL
>
> The session was not created with `input_type` `audio_file`. Create a new session with that value on the same product, then mint again.

> [accordion] 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.

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

> [accordion] Wrong ambient\_session\_id
>
> Pass the Ambient id for Ambient flows, or the Form filling id for Form filling flows. Do not mix those identifiers on the shared upload endpoint.

## Next steps

&#x20;**[Upload pre-recorded audio](https://developer.suki.ai/documentation/how-to/ambient-clinical-notes/upload-prerecorded-audio-ambient.md)** - Ambient create, upload, and retrieve steps.

&#x20;**[Upload pre-recorded audio](https://developer.suki.ai/documentation/how-to/form-filling/upload-prerecorded-audio.md)** - Form filling create, upload, and structured-data steps.

&#x20;**[Provide a pre-recorded audio file](https://developer.suki.ai/documentation/concepts/ambient-clinical-notes/pre-recorded-audio-input.md)** - When to choose WAV upload over live stream.

&#x20;**[Get audio file upload URL](https://developer.suki.ai/api-reference/ambient-sessions/file-uploadurl.md)** - Request, upload contract, and error ids.


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