Skip to Content

POST /system/group

Group System

Resolve or create the session’s system group, optionally naming it.

Request Body (GroupSystemApiRequest)

FieldTypeRequiredDescription
group_idstringNoExisting group UUID (omit to create or reuse via time window)
snapshot_keystringNoSnapshot key for SETNX-race convergence on a single group across concurrent reads (e.g. parallel /context + /group + /search fan-out on page load). Echoed back in the response.
include_detailbooleanNoWhen True, embed runs+messages+hydrated resources alongside the lean resolve fields.
message_limitintegerNoWhen include_detail=True: maximum number of messages per run to return.
message_offsetintegerNoWhen include_detail=True: message pagination offset.

Response (GroupSystemApiResponse)

FieldTypeRequiredDescription
group_idstringYesResolved or newly created group UUID
namestringNoThe group’s current title (latest active group_names_entry, or ‘New Chat’ fallback for freshly minted groups)
snapshot_keystringNoSnapshot key echoed back — the UUID concurrent fan-out reads converged on via SETNX. Mirrors the resolved group_id.
runsGroupRun[]NoConversation history — populated when resolving an existing group for fetch
group_existsbooleanNo(detail) Whether the group exists in storage — populated when include_resources=True
actor_namestringNo(detail) Display name of the current actor (caller profile)
total_message_countintegerNo(detail) Total number of messages in the group
modelsGroupResource[]No(detail) Models used in the group
agentsGroupResource[]No(detail) Agents used in the group
profilesGroupResource[]No(detail) Profiles that authored runs in this group
Last updated on