Skip to main content
POST
/
api
/
v1
/
ambient
/
session
/
{ambient_session_id}
/
end
cURL
curl --request POST \
  --url https://sdp.suki.ai/api/v1/ambient/session/<ambient_session_id>/end \
  --header 'sdp_suki_token: <sdp_suki_token>' \
  --header 'sdp_provider_id: <sdp_provider_id>'
This response has no body data.
Use this endpoint to end an and trigger the generation process.
If you get a skipped status, it means that the note was not generated because the conversation was empty or the session was too short.

Code examples

import requests

ambient_session_id = "123dfg-456dfg-789dfg-012dfg"
url = f"https://sdp.suki-stage.com/api/v1/ambient/session/{ambient_session_id}/end"

headers = {
    "sdp_suki_token": "<sdp_suki_token>",
    "sdp_provider_id": "<sdp_provider_id>"
}

response = requests.post(url, headers=headers)

if response.status_code == 200:
    print("Session ended successfully. Clinical note generation triggered.")
else:
    print(f"Failed to end session: {response.status_code}")
    print(response.json())

Headers

sdp_suki_token
string
required

sdp_suki_token

sdp_provider_id
string

Unique identifier for the provider. Optional for standard partners. Required for Single Auth Token authentication, where multiple providers share the same partner_token.

Example:

"provider-123"

Path Parameters

ambient_session_id
string
required

ambient_session_id

Response

Last modified on June 12, 2026