API: cockpit
GET /api/v1/contracts/{guid}/cockpit
Заголовок раздела «GET /api/v1/contracts/{guid}/cockpit»Get Cockpit
Live cockpit snapshot for a SalesContract (empty contract → all zeros).
Авторизация: нужен Authorization: Bearer <token>
| Параметр | Где | Обязателен | Тип | Описание |
|---|---|---|---|---|
guid | path | да | integer |
Ответы:
| Код | Смысл | Тело |
|---|---|---|
200 | Successful Response | CockpitResponse |
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
GET /api/v1/contracts/{guid}/heatmap
Заголовок раздела «GET /api/v1/contracts/{guid}/heatmap»Get Heatmap
Generate per-step distribution from the SC’s in-flight generate run_steps.
Авторизация: нужен Authorization: Bearer <token>
| Параметр | Где | Обязателен | Тип | Описание |
|---|---|---|---|---|
guid | path | да | integer |
Ответы:
| Код | Смысл | Тело |
|---|---|---|
200 | Successful Response | object |
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
GET /api/v1/contracts/{guid}/published-articles
Заголовок раздела «GET /api/v1/contracts/{guid}/published-articles»Get Published Articles
Published articles (live URL set) for a contract — title, link, word count.
Авторизация: нужен Authorization: Bearer <token>
| Параметр | Где | Обязателен | Тип | Описание |
|---|---|---|---|---|
guid | path | да | integer |
Ответы:
| Код | Смысл | Тело |
|---|---|---|
200 | Successful Response | массив PublishedArticle |
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
GET /api/v1/contracts/{guid}/timeline
Заголовок раздела «GET /api/v1/contracts/{guid}/timeline»Get Timeline
24h per-pipeline Gantt strip from the SC’s last-24h pipeline_run rows.
Авторизация: нужен Authorization: Bearer <token>
| Параметр | Где | Обязателен | Тип | Описание |
|---|---|---|---|---|
guid | path | да | integer | |
window | query | нет | string |
Ответы:
| Код | Смысл | Тело |
|---|---|---|
200 | Successful Response | object |
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |