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

# Ambient Session Management APIs

> Create and manage Ambient sessions, stream audio, attach metadata, and end sessions

The Ambient Session Management APIs enable partners to run the ambient session lifecycle for a patient encounter (One patient visit or appointment with a healthcare provider. In Suki, an encounter can group one or more ambient sessions so related recordings and notes stay tied to the same clinical visit.). An encounter is the visit. An ambient session (A single, time-bound instance of an ambient recording for a specific patient encounter that captures clinical conversations.) is one recording for that visit. One encounter can include one or more ambient sessions.

For each session, you create the session, seed or update visit context, optionally attach metadata, stream visit audio over WebSocket, then end the session when that recording is finished. Ending a session closes that recording so Suki can process it. It does not mean the encounter is closed if another ambient session will follow.

These APIs are called from your servers and authenticated with a Suki Token (`sdp_suki_token`). Critically, ending the session is what closes capture cleanly so Suki can finish processing. Streaming alone does not replace the End Ambient Session call.

## Available endpoints

> [card] [POST Create Ambient Session](https://developer.suki.ai/api-reference/ambient-sessions/create.md)
>
> Purpose: Create a new ambient session for a patient encounter.

> [card] [POST Seed Ambient Session Context](https://developer.suki.ai/api-reference/ambient-sessions/context.md)
>
> Purpose: Seed patient, provider, and encounter context for the session.

> [card] [PATCH Update Ambient Session Context](https://developer.suki.ai/api-reference/ambient-sessions/update-context.md)
>
> Purpose: Update context during an active ambient session.

> [card] [POST Ambient Session Metadata](https://developer.suki.ai/api-reference/ambient-sessions/metadata.md)
>
> Purpose: Attach or update metadata for an ambient session.

> [card] [GET Audio Streaming](https://developer.suki.ai/api-reference/ambient-sessions/audio-stream.md)
>
> Purpose: Stream visit audio over WebSocket to the Suki backend.

> [card] [POST End Ambient Session](https://developer.suki.ai/api-reference/ambient-sessions/end.md)
>
> Purpose: End the ambient session when recording is finished.

## Related guides

> [card] [Ambient Audio Streaming](https://developer.suki.ai/documentation/how-to/audio-streaming/ambient-audio-streaming.md)
>
> Learn how to stream ambient audio for a live session.

> [card] [Streaming Architecture](https://developer.suki.ai/documentation/how-to/audio-streaming/streaming-architecture.md)
>
> Learn how the Ambient streaming architecture works.

> [card] [Ambient Documentation](https://developer.suki.ai/documentation/concepts/ambient-clinical-notes/ambient-documentation.md)
>
> Learn how ambient sessions turn conversation into clinical notes.

## Common use cases

> [card] Generate clinical notes inside your existing chart
>
> Capture the visit conversation in your product so Suki can draft the clinical note while clinicians stay in your EHR workflow.

> [card] Shape note output with visit context
>
> Provide diagnoses, note sections, specialty, and EMR encounter details so generated notes match the visit your system already knows.

> [card] Continue one note across phone and desktop
>
> Share an EMR encounter ID so clinicians can start capture on one modality and finish review on another without losing the note.

> [card] Finalize capture for note generation
>
> End the ambient session when that recording is finished so Suki can process it for review, retrieval, or webhooks. Start another session on the same encounter when the visit needs more capture.


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