---
title: "Read a running or uncertain draft operation"
method: GET
path: "/v1/agents/{id}/draft/operation"
---

# Read a running or uncertain draft operation

`GET /v1/agents/{id}/draft/operation`

## Request

- Base URL: `https://volai.cz`
- URL: `https://volai.cz/v1/agents/{id}/draft/operation`
- Auth: HTTP bearer

Reads the current state of a blocking operation (`null` when nothing is blocking the agent) - the same shape as `operation` on `GET .../draft`.

## Path parameters

- `id` string, required

## Response `200`

Operation

- object
  - `operation` object, nullable, required
    - `id` string, required
    - `kind` 'update' | 'publish' | 'rollback' | 'outbound_task', required
    - `status` 'running' | 'uncertain' | 'drift' | 'failed' | 'done', required
    - `expectedRevision` number, required
    - `createdAt` number, required
    - `updatedAt` number, required

## Other responses

- `401`: Error codes: unauthorized (request).
- `403`: Error codes: account_suspended (account), forbidden (account).
- `404`: Error codes: agent_not_found (account).
- `429`: Error codes: rate_limited (busy).
- `500`: Error codes: internal_error (service), storage_failed (service).

---

[API](https://skmtc.dev/volai/apis/volai-rest-api.md) · [All operations](https://skmtc.dev/volai/apis/volai-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/volai/apis/volai-rest-api/revisions/12029b05e2fa?raw)
