Skip to Content

POST /department/group

Group Department

Resolve or create a department group with optional naming.

Request Body (GroupDepartmentApiRequest)

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.

Response (GroupDepartmentApiResponse)

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