Skip to Content
Flows

List flows

Permissionflows:readAuthentication
GET
/flows

Returns organization-scoped flows, newest first by created_at then id.

Each element carries the whole graph plus its derived agent_count and handoff_count, so a list page can show each flow's shape without a second request.

q is a case-insensitive literal substring over slug, name and description. The opaque cursor is bound to this endpoint and to the exact q, created_from, created_to and archived filters that issued it.

Reading flows needs only the permission; the flows entitlement is required to create or change one. Supplying any request body is a 400 unexpected_body error.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's next_cursor.

limit?integer

Number of flows to return. The server fetches one extra row only to determine next_cursor.

Range1 <= value <= 200
Default50
q?string

Case-insensitive literal substring search across slug, name, and description. The supplied and trimmed values must each contain 1–200 Unicode characters; blank values and every Unicode control character are rejected. Percent, underscore, and backslash are literal characters, not LIKE syntax.

Length1 <= length <= 200
created_from?|

Inclusive created_at lower bound. A YYYY-MM-DD value means midnight UTC.

created_to?|

Exclusive created_at upper bound. It must be later than created_from; a YYYY-MM-DD value means midnight UTC.

archived?string

Whether archived resources are excluded, included alongside active resources, or returned exclusively.

Default"exclude"
Value in"exclude""include""only"

Response Body

One deterministic page of flows. An empty result is data=[] and next_cursor=null.

application/json
  1. response
data*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://api.kejue.co/v1/flows'
Example Response
{  "data": [    {      "id": "33333333-3333-4333-8333-333333333333",      "org_id": "44444444-4444-4444-8444-444444444444",      "slug": "support-front-door",      "name": "Support front door",      "start_agent_id": "11111111-1111-4111-8111-111111111111",      "graph": {        "nodes": [          {            "id": "triage",            "agent_id": "11111111-1111-4111-8111-111111111111",            "x": 0,            "y": 0          },          {            "id": "billing",            "agent_id": "22222222-2222-4222-8222-222222222222",            "x": 320,            "y": -120          }        ],        "edges": [          {            "id": "triage-to-billing",            "source": "triage",            "target": "billing",            "label": "billing",            "condition": "the caller asks about an invoice or a payment"          }        ]      },      "agent_count": 2,      "handoff_count": 1,      "summary_enabled": true,      "extraction_object_ids": [],      "webhook_config_ids": [],      "resource_version": 1,      "created_at": "2026-09-15T09:00:00Z",      "updated_at": "2026-09-15T09:00:00Z"    }  ],  "next_cursor": null}