Hướng dẫn AgentFlow

list_startable_workflows

GET/workflows/startable

Deliberately not /admin/workflows. That route answers a different question — it ships the full design-time projection (description, group, active-instance count, MCP flag, author, timestamps, drafts) behind the designer's search/status/paging surface. Serving both from one endpoint is what made every org member able to enumerate the whole catalog.

AuthorizationBearer <token>

A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.

In: header

Query Parameters

limit?integer

Page size.

Formatint32
Range1 <= value <= 200
cursor?string

Forward cursor, taken from next_cursor.

before?string

Backward cursor, taken from prev_cursor. Mutually exclusive with cursor.

sort?string

The sort field; updated_at by default.

Value in

  • "updated_at"
  • "name"
dir?string

The sort direction; each sort field has its own default.

Value in

  • "asc"
  • "desc"
q?string

A case-insensitive substring of the workflow's name or description.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/workflows/startable"
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "key": "string",      "name": "string",      "version_id": "9e94c502-ca41-4342-a7f7-af96b444512c"    }  ],  "next_cursor": "string",  "prev_cursor": "string"}