API: cycles
GET /api/v1/cycles/history
Заголовок раздела «GET /api/v1/cycles/history»Cycle History
N-day cycle history. Derived from pipeline_run and lifecycle_log.
Авторизация: нужен Authorization: Bearer <token>
| Параметр | Где | Обязателен | Тип | Описание |
|---|---|---|---|---|
days | query | нет | integer |
Ответы:
| Код | Смысл | Тело |
|---|---|---|
200 | Successful Response | массив CycleDay |
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
GET /api/v1/cycles/status
Заголовок раздела «GET /api/v1/cycles/status»Cron Status
Cron + last/next run summary. Settings-derived; future Cron service
SPEC will replace with real cron state from a cron_runs table.
Авторизация: нужен Authorization: Bearer <token>
Ответы:
| Код | Смысл | Тело |
|---|---|---|
200 | Successful Response | CronStatus |
401 | Missing or invalid authentication credentials | ErrorResponse |
GET /api/v1/cycles/timeline
Заголовок раздела «GET /api/v1/cycles/timeline»Cycle Timeline
Per-day timeline of auto-chain events. Derived from lifecycle_log and
pipeline_run ordered by timestamp.
Авторизация: нужен Authorization: Bearer <token>
| Параметр | Где | Обязателен | Тип | Описание |
|---|---|---|---|---|
date | query | нет | string | null |
Ответы:
| Код | Смысл | Тело |
|---|---|---|
200 | Successful Response | массив TimelineEvent |
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
GET /api/v1/cycles/today
Заголовок раздела «GET /api/v1/cycles/today»Today Funnel
Funnel summary for today’s auto-cycle, plus per-SC breakdown.
Derived from:
pipeline_runrows created today (≈ runs started)generated_articlescount by status (pending / ready / live)salescontractsfor per-SC grouping
Авторизация: нужен Authorization: Bearer <token>
Ответы:
| Код | Смысл | Тело |
|---|---|---|
200 | Successful Response | TodayFunnel |
401 | Missing or invalid authentication credentials | ErrorResponse |