Skip to content

Commit f5ff0a3

Browse files
committed
add get session endpoint
1 parent d0f772e commit f5ff0a3

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/rest-api/dispatch/get-session.mdx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,21 @@ authMethod: "bearer"
3737
2006-01-02T15:04:05Z07:00). `null` if the session hasn't terminated yet.
3838
</ResponseField>
3939

40-
<RequestExample>
40+
<ResponseField name="participant_duration_secs" type="int or null">
41+
The sum of participant connection times, expressed in seconds.
42+
`null` if the session hasn't terminated yet.
43+
</ResponseField>
44+
45+
<ResponseField name="offline_duration_secs" type="int or null">
46+
The number of seconds elapsed where the session was online, but no participants were connected.
47+
`null` if the session hasn't terminated yet.
48+
</ResponseField>
4149

50+
<RequestExample>
4251
```bash cURL
4352
curl -H 'Authorization: Bearer <your-api-key>' \
4453
https://engine.hyperbeam.com/v0/vm/<session_id>
4554
```
46-
4755
</RequestExample>
4856

4957
<ResponseExample>
@@ -54,7 +62,9 @@ curl -H 'Authorization: Bearer <your-api-key>' \
5462
"embed_url": "https://96xljbfypmn3ibra366yqapci.hyperbeam.com/AAEjQFOIRnyeb81XbBsHMw?token=VTWsp1KGn4lLySRkUCmmAhsCcqJrPdhTXNS0Y-KPwHU",
5563
"admin_token": "DrXWd9QguPRSXwhQn4yJ66sExpoV0BZtAfZsseYECKo",
5664
"creation_date": "2025-01-02T15:04:05Z07:00",
57-
"termination_date": null
65+
"termination_date": null,
66+
"participant_duration_secs": null,
67+
"offline_duration_secs": null
5868
}
5969
```
6070

0 commit comments

Comments
 (0)