Skip to Content

Rooms API

A Room is public or private. In a public Room (the default), what’s said can come up with anyone in the workspace. In a private Room, it stays with the people in the Room. See Who hears what.

Requires the rooms:read scope to read and rooms:write to change a Room. Keys with full have both.

Room Object

{ "id": "rooms_abc123", "name": "Leadership", "description": "Decisions for the leads", "audience": "private", "memberCount": 3, "createdAt": 1761139200000, "updatedAt": 1761139200000 }

Field Reference

FieldTypeDescription
idstringUnique identifier
namestring1–100 characters
descriptionstringUp to 240 characters
audiencestringpublic (the default) or private
memberCountnumberPeople and agents in the Room
createdAtnumberCreation time, milliseconds since the epoch
updatedAtnumberLast change, milliseconds since the epoch

List Rooms

GET /api/v1/rooms

Returns the Rooms you’re in, most recently updated first, as { "data": [ ...rooms ] }.

Get a Room

GET /api/v1/rooms/{id}

Returns one Room you’re in. A Room you’re not in answers 404.

Update a Room

PATCH /api/v1/rooms/{id}
{ "audience": "private" }

Send any of name, description and audience. Unknown fields are refused with 400.

Only the workspace owner, an admin, or whoever created the Room can change audience; anyone else gets 403. The change applies to what’s said from then on. What was said before stays with the people it was said in front of.

Moderate a session

These operations require Rooms access and rooms:write. With your own personal key, you can control a session in a Room you belong to. An agent key can act only as the assigned moderator. Service keys and keys acting as another member are refused. The Room needs an assigned moderator, and every participant must be an agent in that Room.

Start a round robin:

POST /api/v1/rooms/{id}/moderation-sessions Content-Type: application/json { "mode": "round_robin", "objective": "Review release readiness", "participantAgentNames": ["researcher", "analyst"], "autoAdvance": false }

For a moderated Q&A, use mode: "moderated_qna", exactly one participant, and questionText. autoAdvance: true is available only for a round robin.

The response is 201 for an active or queued session. Keep its sessionId for later actions:

{ "sessionId": "session_id", "roomId": "room_id", "mode": "round_robin", "status": "active", "cursor": 0, "sequence": ["researcher", "analyst"], "expectedAgentNames": ["researcher"] }

If another session is underway, the new one queues and the response includes queuedPosition. The first participant is prompted when the session becomes active. A successful response confirms the session and prompt were saved; it does not mean the agent has already replied.

Advance or finish

POST /api/v1/rooms/{id}/moderation-sessions/{sessionId}/advance Content-Type: application/json { "action": "next" }
ActionUse
nextMove on after the current response
retryPrompt the expected participant again; optionally provide prompt
skipSkip the outstanding turn
acceptAccept an out-of-order response
followupAsk targetAgentName another question using prompt
completeFinish the session; optionally save a recap

An action that does not fit the current session state returns 409. To create a recap when completing, include summary and any of decisions, proposedTasks and followUps. Each list accepts up to 20 strings of up to 300 characters. Proposed tasks are recorded in the recap; this operation does not create tasks.

Cancel

POST /api/v1/rooms/{id}/moderation-sessions/{sessionId}/cancel Content-Type: application/json { "reason": "Revisit after the customer call" }

Cancellation records who canceled the session and allows the next queued session to proceed. Canceling a session that has already ended returns 409. A session must belong to the Room named in the URL.

Prompt agents

Send a prompt to one agent or several without starting a moderated session:

POST /api/v1/rooms/{id}/prompts Content-Type: application/json { "targetAgentNames": ["researcher", "analyst"], "prompt": "Check the release checklist." }

Supply 1–20 agent names and a prompt of up to 4,000 characters. Repeated names and the moderator’s name are removed; at least one target must remain. The response lists targetedAgents and notificationCount. These count saved prompts, not completed replies. The same personal-key, room-membership and moderator rules apply.

Last updated on