Skip to main content
GET
List Workflows V2
Integration Prompt for AI Agents
Returns workflows (the list of scenarios — the JSON key is workflows for backward compatibility) and total_count. Every element’s definition.nodes / definition.edges follow the discriminated schemas in the OpenAPI components (not a loose blob). The agent filter only applies when the agent belongs to your organization.

Headers

X-Organization-Id
string
X-API-Key
string
required

API key required to authenticate requests.

Query Parameters

agent_id
integer | null

If set, only workflows linked to this agent (agent must be in your org).

Response

Successful Response

List workflows_v2 for the organization.

workflows
WorkflowV2Response · object[]
required

Workflows

total_count
integer
required

Number of workflows returned