---
title: "Update thread"
method: PATCH
path: "/v1/threads/{id}"
tags: ["threads"]
---

# Update thread

`PATCH /v1/threads/{id}`

## Request

- Base URL: `https://api.openmail.sh`
- URL: `https://api.openmail.sh/v1/threads/{id}`
- Auth: HTTP bearer

Update a thread's read status. Use this to mark a thread as read after your agent has processed it, or as unread to re-queue it for later processing.

## Path parameters

- `id` string, required

## Request body

- union
  - object
    - `isRead` boolean, required: Set to true to mark as read, false to mark as unread
    - `is_read` boolean: Alias of isRead, kept for compatibility. Prefer isRead.
  - object
    - `isRead` boolean: Set to true to mark as read, false to mark as unread
    - `is_read` boolean, required: Alias of isRead, kept for compatibility. Prefer isRead.

## Response `200`

Thread updated

- object: Thread updated
  - `ok` boolean

## Other responses

- `404`: Thread not found

---

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