curl --request POST \
--url https://sdp.suki-stage.com/api/v1/ambient/session/create \
--header 'Content-Type: application/json' \
--header 'sdp_suki_token: <sdp_suki_token>' \
--data '
{
"ambient_session_id": "123dfg-456dfg-789dfg-012dfg",
"encounter_id": "123dfg-456dfg-789dfg-012dfg",
"multilingual": false
}
'{
"ambient_session_id": "123dfg-456dfg-789dfg-012dfg"
}Initialize a new ambient session for patient encounter documentation
curl --request POST \
--url https://sdp.suki-stage.com/api/v1/ambient/session/create \
--header 'Content-Type: application/json' \
--header 'sdp_suki_token: <sdp_suki_token>' \
--data '
{
"ambient_session_id": "123dfg-456dfg-789dfg-012dfg",
"encounter_id": "123dfg-456dfg-789dfg-012dfg",
"multilingual": false
}
'{
"ambient_session_id": "123dfg-456dfg-789dfg-012dfg"
}ambient_session_id and return it in the response.
You can use this ambient_session_id to identify the session in subsequent API calls. We recommend that an ambient session should be atleast 1 minute long.
skipped.import requests
url = "https://sdp.suki.ai/api/v1/ambient/session/create"
headers = {
"sdp_suki_token": "<sdp_suki_token>",
"Content-Type": "application/json"
}
payload = {
"ambient_session_id": "123dfg-456dfg-789dfg-012dfg", # Optional, UUID format
"encounter_id": "123dfg-456dfg-789dfg-012dfg", # Optional, UUID format
"multilingual": False # Optional, defaults to false
}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 201:
data = response.json()
ambient_session_id = data["ambient_session_id"]
print(f"Session created successfully. Session ID: {ambient_session_id}")
else:
print(f"Failed to create session: {response.status_code}")
print(response.json())
const response = await fetch('https://sdp.suki.ai/api/v1/ambient/session/create', {
method: 'POST',
headers: {
'sdp_suki_token': '<sdp_suki_token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
ambient_session_id: '123dfg-456dfg-789dfg-012dfg', // Optional, UUID format
encounter_id: '123dfg-456dfg-789dfg-012dfg', // Optional, UUID format
multilingual: false // Optional, defaults to false
})
});
if (response.ok) {
const data = await response.json();
const ambientSessionId = data.ambient_session_id;
console.log(`Session created successfully. Session ID: ${ambientSessionId}`);
} else {
const error = await response.json();
console.error(`Failed to create session: ${response.status}`, error);
}
sdp_suki_token
CreateSessionRequest
Request body for the /session/create endpoint
Success Response
Response body for the /session/create endpoint
"123dfg-456dfg-789dfg-012dfg"