Group stats#
GET /api/groups/sessions#
List group sessions
Returns open and closed group sessions, newest first. An officer must be signed in.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
integer |
no |
The maximum number of sessions to return. |
|
query |
string (date-time) | null |
no |
Only return sessions that started before this timestamp. |
Response 200 — The group sessions.
Model: array of GroupSessionSummary
Type: array of GroupSessionSummary
GET /api/groups/sessions/{session_id}#
Get a group session’s detail
Returns one session with who was in it and its chat, if still kept. transcript is null once purged or past the retention window. An officer must be signed in.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string (uuid) |
yes |
The session’s ID. |
Response 200 — The group session’s detail.
Model: GroupSessionDetail
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string (uuid) |
yes |
|
|
yes |
||
|
string | null |
yes |
|
|
string |
yes |
|
|
yes |
||
|
string (uuid) | null |
yes |
|
|
string (date-time) |
yes |
|
|
string (date-time) | null |
yes |
|
|
GroupEndReason | null |
yes |
|
|
integer |
yes |
|
|
integer |
yes |
|
|
boolean |
yes |
|
|
boolean |
yes |
|
|
string | null |
yes |
|
|
array of SignupRole |
yes |
|
|
array of GroupPersonStat |
yes |
|
|
array of GroupTranscriptMessage | null |
yes |
|
|
string (date-time) | null |
yes |
GET /api/groups/stats#
Get group stats
Returns who groups, with whom, and what, over the last days days. An officer must be signed in.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
integer |
no |
The size of the window, in days. |
Response 200 — The group stats for the window.
Model: GroupStats
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
yes |
|
|
integer |
yes |
|
|
integer |
yes |
|
|
integer |
yes |
|
|
array of GroupKindStat |
yes |
|
|
array of GroupInstanceStat |
yes |
|
|
array of GroupPersonStat |
yes |
|
|
array of GroupPersonStat |
yes |
|
|
array of GroupDuoStat |
yes |
|
|
array of GroupPersonStat |
yes |
|
|
array of GroupHourStat |
yes |