List Sessions
List agent sessions for the current workspace with optional filtering.
Returns root sessions by default, including standalone history forks and legacy chats. Filter by spawned_by_session_id to find spawned children. Legacy chats have is_readonly=True.
Authorizations
Path Parameters
Query Parameters
Filter by entity type The type of entity associated with an agent session.
Determines the context and behavior of the session:
- CASE: Chat attached to a Case entity for investigation
- AGENT_PRESET: Live chat testing a preset configuration
- AGENT_PRESET_BUILDER: Builder chat for editing/configuring a preset
- WORKSPACE_CHAT: Workspace-level chat assistant (wire value: copilot)
- WORKFLOW: Workflow-initiated agent run (from action)
- APPROVAL: Inbox approval continuation (hidden from main chat list)
- EXTERNAL_CHANNEL: External channel session (e.g. Slack thread)
case, agent_preset, agent_preset_builder, copilot, workflow, approval, external_channel Filter by entity ID
Filter by session creator. Omit to list the entire workspace.
Entity types to exclude from results
The type of entity associated with an agent session.
Determines the context and behavior of the session:
- CASE: Chat attached to a Case entity for investigation
- AGENT_PRESET: Live chat testing a preset configuration
- AGENT_PRESET_BUILDER: Builder chat for editing/configuring a preset
- WORKSPACE_CHAT: Workspace-level chat assistant (wire value: copilot)
- WORKFLOW: Workflow-initiated agent run (from action)
- APPROVAL: Inbox approval continuation (hidden from main chat list)
- EXTERNAL_CHANNEL: External channel session (e.g. Slack thread)
case, agent_preset, agent_preset_builder, copilot, workflow, approval, external_channel Filter by spawning parent session ID
Include spawned children without a parent filter
Maximum number of sessions to return
1 <= x <= 200Filter by history source session ID
Legacy alias for forked_from_session_id
Response
Successful Response
- AgentSessionRead
- ChatReadMinimal
Response schema for agent session.
The type of entity associated with an agent session.
Determines the context and behavior of the session:
- CASE: Chat attached to a Case entity for investigation
- AGENT_PRESET: Live chat testing a preset configuration
- AGENT_PRESET_BUILDER: Builder chat for editing/configuring a preset
- WORKSPACE_CHAT: Workspace-level chat assistant (wire value: copilot)
- WORKFLOW: Workflow-initiated agent run (from action)
- APPROVAL: Inbox approval continuation (hidden from main chat list)
- EXTERNAL_CHANNEL: External channel session (e.g. Slack thread)
case, agent_preset, agent_preset_builder, copilot, workflow, approval, external_channel Whether the requesting actor can modify this session
Persisted immutable resolved child refs.
Case artifact shown in artifact-capable chat surfaces.
- CaseArtifact
- WorkflowArtifact
- RunArtifact
- TableArtifact
- AgentArtifact
- FormArtifact
- AlertArtifact
- IntegrationArtifact
- SecretArtifact
- GenericArtifact