Skip to main content

Sessions API

Retrieve Session Information

GET /sessions/{sessionID}

Retrieve detailed information about a specific session. Keep in mind only sessions from your associated groups and participants are available for viewing, and certain information may not be viewable depending on privacy settings.

Headers

{ "x-api-key": "YOUR_API_KEY" }

URL Parameters

  • sessionID (required): The identifier for the session.

Example Call

await fetch(
"https://api.okaya.me/sessions/session1",
{
method: "GET",
headers: {
"x-api-key": "YOUR_API_KEY",
},
}
).then((response) => response.json());

Example Response

200

{
"externalID": "ok_participant1",
"sessionID": "abcd1234",
"timestamp": "2024-01-01T00:00:00Z",
"groupID": 123456,
"version": "v1.1.8",
"mhci": 70.0,
"subscores": {
"vision": 65.0,
"audio": 70.0,
"transcript": 75.0,
"assessment": 70.0
}
}

400

{ "error": "You are missing the path parameter sessionID" }

401: Unauthorized