Skip to main content
GET
/
api
/
v1
/
ambient
/
session
/
{ambient_session_id}
/
content
Gets the content for the ambient session.
curl --request GET \
  --url https://sdp.suki-stage.com/api/v1/ambient/session/{ambient_session_id}/content \
  --header 'sdp_suki_token: <sdp_suki_token>'
{
  "summary": [
    {
      "content": "Asthma exacerbation",
      "loinc_code": "18776-5",
      "source_transcripts": [
        "asthma",
        "exacerbation"
      ],
      "title": "ASSESSMENT AND PLAN"
    }
  ]
}
Use this endpoint to get the summary and structured data associated with the specified ambient session. This endpoint uses the cumulative query parameter to get the cumulative summary and structured data for the specified ambient session. If the query parameter is not provided, the default value is false. You have two options for the cumulative query parameter:
cumulative
boolean
Determines whether to retrieve cumulative or snapshot data.
Understanding the SKIPPED StatusIf you see a session with a SKIPPED status, it means that the clinical note was not generated because the conversation transcript was empty.This status is an expected outcome if an ambient session is started but contains no audible speech (for example, a silent recording). It does not indicate a system error.Unlike a FAILED status, which indicates a processing error, SKIPPED is a successful outcome where no action was needed. You can typically filter out or ignore sessions with this status in your application’s user interface.

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}/content"

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

# Get snapshot content (default, cumulative=false)
response = requests.get(url, headers=headers, params={"cumulative": False})

if response.status_code == 200:
    content = response.json()
    print("Generated Note:")
    for section in content.get("summary", []):
        print(f"\nTitle: {section.get('title')}")
        print(f"LOINC Code: {section.get('loinc_code')}")
        print(f"Content: {section.get('content')}")
        
        # Source transcripts used to generate this content
        source_transcripts = section.get('source_transcripts', [])
        if source_transcripts:
            print(f"Source Transcripts: {', '.join(source_transcripts)}")
else:
    print(f"Failed to get content: {response.status_code}")
    print(response.json())

Headers

sdp_suki_token
string
required

Path Parameters

ambient_session_id
string
required

Query Parameters

cumulative
boolean
default:false

Response

summary
object[]