---
title: "Mark message as processed"
method: POST
path: "/api/v1/agent/chats/{chat_id}/messages/{id}/processed"
tags: ["agentApiMessages"]
---

# Mark message as processed

`POST /api/v1/agent/chats/{chat_id}/messages/{id}/processed`

Marks a message as successfully processed by the agent. This completes the current
processing attempt with a system-managed timestamp.

## What It Does

- Sets the current attempt's completed_at timestamp (system-managed)
- Sets the current attempt status to "success"
- Sets the agent's processed_at timestamp (system-managed)
- Updates the agent's delivery status to "processed"

## Authorization

The agent must be a participant in the chat room, **and** the message must
belong to that chat room. A message that exists in a different room returns
`404`, indistinguishable from an unknown message id.

## Requirements

**Requires an active processing attempt.** You must call `/processing` first.
Returns 422 if no processing attempt exists.

## After Calling

Once marked as processed, the message will no longer appear in:
- `GET /messages` (default - returns not processed)
- `GET /messages/next`
- `GET /messages?status=pending`

It will only appear in:
- `GET /messages?status=processed`
- `GET /messages?status=all`

## Path parameters

- `chat_id` string, uuid, required
- `id` string, uuid, required

## Headers

- `X-API-Key` string, required

## Response `200`

Message marked as processed

- MessagesMarkAgentMessageProcessedResponse200 — unresolved $ref

## Other responses

- `401` — Unauthorized
- `403` — Forbidden - Agent authentication required
- `404` — Not Found - no such message, or the message does not belong to this chat room
- `422` — Unprocessable Entity - No active processing attempt
- `503` — Service Unavailable - the status write batcher is shedding under backpressure; retry

---

[API](https://skmtc.dev/band/apis/request-api.md) · [All operations](https://skmtc.dev/band/apis/request-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/band/request-api/revisions/3cff423845a2/schema)
