Ambient Content Retrieval
Retrieve E/M Codes Using Ambient Session ID
Retrieve E/M codes generated for an ambient session that opted into EM_CODES
Listen to this pageabout 1 min
GET
/
api
/
v1
/
ambient
/
session
/
{ambient_session_id}
/
structured-data
/
em-codes
Gets the E/M codes for the ambient session.
curl --request GET \
--url https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes \
--header 'sdp_suki_token: <api-key>'import requests
url = "https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes"
headers = {"sdp_suki_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {sdp_suki_token: '<api-key>'}};
fetch('https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"sdp_suki_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("sdp_suki_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes")
.header("sdp_suki_token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["sdp_suki_token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"em_codes": {
"values": [
{
"add_on_codes": [],
"code": "99214",
"family": "PROBLEM_BASED",
"id": "01JQ8Z2W9X4Y6Z8A0B2C4D6E8F",
"level": 4,
"mdm_based_features": {
"data_reviewed": "DATA_REVIEWED_LIMITED",
"data_reviewed_details": {
"entities": [
{
"entity": "Basic metabolic panel",
"evidence": "Labs from 2026-01-01 reviewed and interpreted"
}
],
"evidence": "Prior labs reviewed",
"level": "DATA_REVIEWED_LIMITED"
},
"problem_complexity": "PROBLEM_COMPLEXITY_MODERATE",
"problem_complexity_details": {
"entities": [
{
"entity": "Essential hypertension",
"evidence": "BP 150/95 discussed, lisinopril continued"
}
],
"evidence": "Two stable chronic illnesses managed",
"level": "PROBLEM_COMPLEXITY_MODERATE"
},
"rationale": "Moderate complexity with prescription drug management",
"risk": "RISK_MODERATE",
"risk_details": {
"entities": [
{
"entity": "Prescription drug management",
"evidence": "Lisinopril dose increased to 20mg"
}
],
"evidence": "Prescription drug management",
"level": "RISK_MODERATE"
}
},
"modifiers": [
"25"
],
"patient_type": "ESTABLISHED_PATIENT",
"time_based_features": {
"evidence": "35 minutes of total clinician time documented",
"time_taken": 35
},
"wellness_features": {
"evidence": "Annual wellness visit with preventive counseling"
}
}
]
}
}{
"code": 400,
"message": "invalid request"
}{
"code": 401,
"message": "invalid token"
}{
"code": 404,
"message": "not found"
}{
"code": 500,
"message": "internal server error"
}Use this endpoint to retrieve Evaluation and Management (E/M) codes for an ambient session. Pass the
ambient_session_id to get the em_codes generated for that session.
The session must opt in with artifacts: ["EM_CODES"] on Create ambient session.
Wait until the ambient session is
completed before you call this endpoint.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}/structured-data/em-codes"
headers = {
"sdp_suki_token": "<sdp_suki_token>",
"sdp_provider_id": "<sdp_provider_id>",
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
const ambientSessionId = "123dfg-456dfg-789dfg-012dfg";
const url = `https://sdp.suki.ai/api/v1/ambient/session/${ambientSessionId}/structured-data/em-codes`;
const response = await fetch(url, {
headers: {
sdp_suki_token: "<sdp_suki_token>",
sdp_provider_id: "<sdp_provider_id>",
},
});
console.log(response.status, await response.json());
Authorizations
Suki access token (suki_token) from Login or Register. Expires after one hour.
Headers
Optional for standard partners.
Required for:
- Bearer authentication. Use the same
provider_idreturned by the Login or Register API. - Single Auth Token authentication. Include the same
provider_idon every request assdp_provider_id.
Example:
"provider-123"
Path Parameters
UUID for the ambient session. Use the ambient_session_id returned from Create Ambient Session, or the UUID you supplied in that request.
Response
Success Response
Response body for the /session/{ambient_session_id}/structured-data/em-codes endpoint
Generated E/M codes
Show child attributes
Show child attributes
Last modified on November 5, 2026
Was this page helpful?
Gets the E/M codes for the ambient session.
curl --request GET \
--url https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes \
--header 'sdp_suki_token: <api-key>'import requests
url = "https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes"
headers = {"sdp_suki_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {sdp_suki_token: '<api-key>'}};
fetch('https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"sdp_suki_token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("sdp_suki_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes")
.header("sdp_suki_token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sdp.suki.ai/api/v1/ambient/session/{ambient_session_id}/structured-data/em-codes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["sdp_suki_token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"em_codes": {
"values": [
{
"add_on_codes": [],
"code": "99214",
"family": "PROBLEM_BASED",
"id": "01JQ8Z2W9X4Y6Z8A0B2C4D6E8F",
"level": 4,
"mdm_based_features": {
"data_reviewed": "DATA_REVIEWED_LIMITED",
"data_reviewed_details": {
"entities": [
{
"entity": "Basic metabolic panel",
"evidence": "Labs from 2026-01-01 reviewed and interpreted"
}
],
"evidence": "Prior labs reviewed",
"level": "DATA_REVIEWED_LIMITED"
},
"problem_complexity": "PROBLEM_COMPLEXITY_MODERATE",
"problem_complexity_details": {
"entities": [
{
"entity": "Essential hypertension",
"evidence": "BP 150/95 discussed, lisinopril continued"
}
],
"evidence": "Two stable chronic illnesses managed",
"level": "PROBLEM_COMPLEXITY_MODERATE"
},
"rationale": "Moderate complexity with prescription drug management",
"risk": "RISK_MODERATE",
"risk_details": {
"entities": [
{
"entity": "Prescription drug management",
"evidence": "Lisinopril dose increased to 20mg"
}
],
"evidence": "Prescription drug management",
"level": "RISK_MODERATE"
}
},
"modifiers": [
"25"
],
"patient_type": "ESTABLISHED_PATIENT",
"time_based_features": {
"evidence": "35 minutes of total clinician time documented",
"time_taken": 35
},
"wellness_features": {
"evidence": "Annual wellness visit with preventive counseling"
}
}
]
}
}{
"code": 400,
"message": "invalid request"
}{
"code": 401,
"message": "invalid token"
}{
"code": 404,
"message": "not found"
}{
"code": 500,
"message": "internal server error"
}