---
title: GET /api/v1/lifecycles/{entity_name}/{guid}/state
description: Get State
locale: ru
version: 0.2.0
canonical: https://enterium-developer-docs.pages.dev/developers/ru/api/lifecycles/get-lifecycles-entity-name-guid-state/
---

> 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). Группа: [lifecycles](../).
:::

Get State

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

## Запрос

```sh
curl -sS -X GET "https://entherium.duckdns.org:8443/api/v1/lifecycles/<entity_name>/<guid>/state" \
  -H "Authorization: Bearer <token>"
```

## Ответ `200`

В контракте нет примера для этого ответа; схема: `LifecycleStateResponse`. Поля — в [интерактивном обозревателе](https://entherium.duckdns.org:8443/reference).

## Возвращает

`LifecycleStateResponse` — Successful Response

| Поле | Тип | Описание |
| --- | --- | --- |
| `available_outlets` | `массив OutletDef` (opt.) |  |
| `current_step` | `StepDef \| null` (opt.) |  |
| `entity` | `string` |  |
| `guid` | `integer` |  |
| `is_terminal` | `boolean` (opt.) |  |
| `last_log` | `LifecycleLogRead \| null` (opt.) |  |
| `lcid` | `integer \| null` |  |
| `lcstep` | `integer \| null` |  |
| `locked_by` | `string \| null` (opt.) |  |
| `permitted_manual_steps` | `массив StepDef` (opt.) |  |

## Параметры

| Параметр | Где | Обязателен | Тип | По умолчанию | Ограничения | Описание |
| --- | --- | --- | --- | --- | --- | --- |
| `entity_name` | path | да | `string` | — | — |  |
| `guid` | path | да | `integer` | — | — |  |

## Ошибки

| Код | Смысл | Тело |
| --- | --- | --- |
| `401` | Missing or invalid authentication credentials | `ErrorResponse` |
| `422` | Validation Error | `HTTPValidationError` |

Тело любой ошибки — `{detail, code?, request_id, doc_url}`: `request_id` — что цитировать, `doc_url` ведёт в [Справочник ошибок](../../../reference/errors/).
