---
title: "Acknowledge or reject a claimed environment command"
method: POST
path: "/api/v1/agent-environments/{environmentId}/commands/{commandId}/ack"
tags: ["Agent environments"]
---

# Acknowledge or reject a claimed environment command

`POST /api/v1/agent-environments/{environmentId}/commands/{commandId}/ack`

## Path parameters

- `environmentId` string, required
- `commandId` string, required

## Request body

- object
  - `protocolVersion` 1, required
  - `commandId` string, required
  - `environmentId` string, required
  - `accepted` boolean, required
  - `error` object
    - `code` string, required
    - `message` string, required

## Response `200`

Successful response. Stable response schemas are documented in workflow guides when available.

- unknown

## Other responses

- `400` — Invalid request.
- `401` — Missing or invalid authentication.
- `500` — Unexpected server error.

## Changes

- **2026-08-27** `e9bf9a73b28a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/layernorm/apis/overlay-web-api/changes/api/v1/agent-environments/:environmentId/commands/:commandId/ack/post.md)

---

[API](https://skmtc.dev/layernorm/apis/overlay-web-api.md) · [All operations](https://skmtc.dev/layernorm/apis/overlay-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/layernorm/overlay-web-api/revisions/a64546f5bde3/schema)
