---
title: API: cycles
description: REST-эндпоинты с тегом cycles — сгенерировано из OpenAPI-контракта платформы (4 операций).
locale: ru
version: 0.2.0
canonical: https://enterium-developer-docs.pages.dev/developers/ru/api/cycles/
---

> Documentation index: https://enterium-developer-docs.pages.dev/developers/llms.txt — every page of this portal has a Markdown twin at <route>.md; the frozen API contract is at https://enterium-developer-docs.pages.dev/developers/api/openapi.json.

:::note
Сгенерировано из OpenAPI-контракта — не редактировать руками. Сводки операций и описания полей приводятся на английском (дословно из контракта). Интерактивный обозреватель с полными схемами: [https://entherium.duckdns.org:8443/reference](https://entherium.duckdns.org:8443/reference); замороженная спецификация этой сборки: [openapi.json](/developers/api/openapi.json).
:::

## `GET /api/v1/cycles/history`

Cycle History

[Открыть отдельной страницей →](./get-cycles-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`

Cron Status

[Открыть отдельной страницей →](./get-cycles-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`

Cycle Timeline

[Открыть отдельной страницей →](./get-cycles-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`

Today Funnel

[Открыть отдельной страницей →](./get-cycles-today/)

Funnel summary for today's auto-cycle, plus per-SC breakdown.

Derived from:
  - `pipeline_run` rows created today (≈ runs started)
  - `generated_articles` count by status (pending / ready / live)
  - `salescontracts` for per-SC grouping

**Авторизация:** нужен `Authorization: Bearer <token>`

**Ответы:**

| Код | Смысл | Тело |
| --- | --- | --- |
| `200` | Successful Response | `TodayFunnel` |
| `401` | Missing or invalid authentication credentials | `ErrorResponse` |
