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
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())