---
title: "Set the read state of inbound emails in a thread"
method: PATCH
path: "/inbox/threads/{threadId}/read-state"
tags: ["inbox"]
---

# Set the read state of inbound emails in a thread

`PATCH /inbox/threads/{threadId}/read-state`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/inbox/threads/{threadId}/read-state`
- Auth: HTTP bearer

## Path parameters

- `threadId` string, required: Thread ID

## Request body

- object
  - `is_read` boolean, required: true marks as read, false marks as unread
  - `folder` string: inbox or quarantine, default inbox

## Response `200`

Updated

- object
  - `success` boolean, required
  - `thread_id` string, required
  - `is_read` boolean, required
  - `updated_count` number, required

## Other responses

- `400`: Invalid parameters
- `401`: Missing or invalid API key
- `404`: Resource not found
- `500`: Server error

---

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