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

Code Examples

  • Python
  • TypeScript
import requests

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

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

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

Path Parameters

ambient_session_id
string
required