GET
Get Workflows
Возвращает всех агентов (воркфлоу) вашей организации, включая как активных, так и архивированных. Незавершённый агент визарда (активный, создан визардом, опубликованная версия всё ещё шаблон: нет wizard.completed_at, номер версии не выше 1) приходит с полем wizard_in_progress: true; у остальных агентов этого поля нет. Каждый элемент содержит сводные поля — используйте Получить агента, чтобы получить полное определение воркфлоу.

Headers

authorization
string | null
X-API-Key
string | null

Query Parameters

status
string | null

Filter by status - can be single value (active/archived) or comma-separated (active,archived)

metrics_days
integer | null

Add period metrics (calls_in_period, avg_duration_seconds, last_call_at) over the last N days. N must be one of the public platform setting workflow_list.metrics_periods_days, else 422 {code: invalid_metrics_period, allowed}.

Response

Successful Response

id
integer
required
name
string
required
status
string
required
created_at
string<date-time>
required
total_runs
integer
required
folder_id
integer | null
workflow_uuid
string | null
calls_in_period
integer | null

Runs in the last metrics_days days (simulation excluded).

avg_duration_seconds
number | null

Average duration of the period's runs with a positive recorded duration, seconds; null when there is none.

last_call_at
string<date-time> | null

Newest run of the agent ever (not bounded by the period).

wizard_in_progress
boolean | null

True when this active agent was created by the wizard and the wizard has not finished (published version is still the template, without wizard.completed_at). The agents list hides it and offers «Продолжить» instead of the editor.

has_unpublished_draft
boolean | null

True when the workflow has an unpublished draft version (what GET /workflow/fetch/{id} reports as version_status 'draft'). Absent when there is no draft.