---
title: "Update Message"
method: PATCH
path: "/v0/inboxes/{inbox_id}/messages/{message_id}"
tags: ["InboxesMessages"]
---

# Update Message

`PATCH /v0/inboxes/{inbox_id}/messages/{message_id}`

**CLI:**
```bash
agentmail inboxes:messages update --inbox-id <inbox_id> --message-id <message_id> --add-label read --remove-label unread
```

## Path parameters

- `inbox_id` string, required — The ID of the inbox.
- `message_id` string, required — ID of message.

## Request body

- UpdateMessageRequest
  - `add_labels` union — Label or list of labels.
    - string
    - string[]
  - `remove_labels` union — Label or list of labels.
    - string
    - string[]

## Response `200`

- UpdateMessageResponse
  - `message_id` string, required — ID of message.
  - `labels` string[], required — Labels of message.

## Other responses

- `400`
- `404`

## Changes

- **2026-07-15** `394ddcdd9c29` — 7 info
  - added the optional property `code` to the response with the `400` status
  - added the optional property `code` to the response with the `404` status
  - added the optional property `docs` to the response with the `400` status
  - added the optional property `docs` to the response with the `404` status
  - …3 more
- **2026-03-31** `5b7e1869efdc` — 2 info
  - request property `add_labels` list-of-types was widened by adding types `string` to media type `application/json`
  - request property `remove_labels` list-of-types was widened by adding types `string` to media type `application/json`
- **2026-03-31** `27965096e618` — 8 breaking, 13 warning
  - removed the required property `created_at` from the response with the `200` status
  - removed the required property `from` from the response with the `200` status
  - removed the required property `inbox_id` from the response with the `200` status
  - removed the required property `size` from the response with the `200` status
  - …17 more

[Change history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/inboxes/:inbox_id/messages/:message_id/patch.md)

---

[API](https://skmtc.dev/agentmail-to/apis/api.md) · [All operations](https://skmtc.dev/agentmail-to/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentmail-to/api/revisions/394ddcdd9c29/schema)
