Skip to content
Proud to collaborate with Microsoft for Startups

data.agents.list-sessions ​

List agent sessions for an organisation (paginated, optional status/config filter)

List agent sessions for an organisation with optional filters.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
APIGET /api/agents/{resource}Read-only data query for the agents platform

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
statusstringNo——
agent_config_uuidstringNo——
limitintegerNo——
offsetintegerNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
limitjsonNo——
offsetjsonNo——
sessionsjsonNo——
totaljsonNo——
organization_uuidjsonNo——
statusjsonNo——
agent_config_uuidjsonNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
listedSUCCESSAgent sessions listedsessions, total, organization_uuid
failedFAILUREAgent sessions listed failedfailure_reason, error, error_type, failed_at_state, failed_step, failed_layer

Business Errors ​

CodeMessage Template
AGENTS_ORGANIZATION_CONTEXT_INVALIDAuthenticated organization context is missing or does not match the workflow input
AGENTS_CONFIG_NOT_FOUNDAgent configuration {agent_config_uuid} was not found in the organization
AGENTS_SKILL_NOT_FOUNDAgent skill {skill_uuid} was not found in the organization
AGENTS_SESSION_NOT_FOUNDAgent session {session_uuid} was not found in the organization
AGENTS_MCP_SERVER_NOT_FOUNDMCP server {mcp_server_uuid} was not found in the organization
AGENTS_DATASET_NOT_FOUNDFine-tuning dataset {dataset_uuid} was not found in the organization
AGENTS_PACKAGE_NOT_FOUNDSkill/guidance package {package_uuid} was not found in the organization
AGENTS_RUNNER_GROUP_NOT_FOUNDRunner group {runner_group_uuid} was not found in the organization
AGENTS_VALIDATION_FAILEDWorkflow input or domain state failed validation:
AGENTS_CONFLICTConflicting agent domain state:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "data.agents.list-sessions",
  "initial_data": {
    "organization_uuid": "value"
  }
}