Skip to main content
GET
/
api
/
v1
/
ambient
/
session
/
{ambient_session_id}
/
status
Gets the status of the ambient session.
curl --request GET \
  --url https://sdp.suki-stage.com/api/v1/ambient/session/{ambient_session_id}/status \
  --header 'sdp_suki_token: <sdp_suki_token>'
{
  "status": "completed"
}
Use this endpoint to get the current status of an ambient session. You can use this to track the session’s progress, for example, to see if it is ready to receive audio, still processing, or has completed.

Session Status Values

You can use the following status values to track the session’s progress:
  • created: The ambient session has been created but has not yet started.
  • ready: The ambient session has started and is ready for audio streaming.
  • running: The ambient session is actively processing audio and generating content.
  • aborted: The ambient session has been cancelled by the user or client.
  • skipped: The ambient session was skipped because not enough audio was received or the transcript was empty.
  • failed: The ambient session failed due to an error during processing.
  • completed: The ambient session completed successfully and generated the final content.
paused status is no longer supported.
Upon reaching completed state, the session is ready to return the content, transcripts or other structured data.

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

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

response = requests.get(url, headers=headers)

if response.status_code == 200:
    status_data = response.json()
    status = status_data.get("status")
    print(f"Session Status: {status}")
    
    if status == "completed":
        print("Session completed successfully. Content is ready.")
    elif status == "failed":
        print("Session failed during processing.")
    elif status == "skipped":
        print("Session was skipped (empty transcript or too short).")
else:
    print(f"Failed to get status: {response.status_code}")
    print(response.json())

Headers

sdp_suki_token
string
required

Path Parameters

ambient_session_id
string
required

Response

status
enum<string>
Available options:
created,
ready,
running,
paused,
aborted,
failed,
completed
Example: