---
title: "Update a thread"
method: PATCH
path: "/v1/inboxes/{inbox_id}/threads/{thread_id}"
tags: ["Inboxes"]
---

# Update a thread

`PATCH /v1/inboxes/{inbox_id}/threads/{thread_id}`

## Request

- Base URL: `https://smtpfa.st/api`
- URL: `https://smtpfa.st/api/v1/inboxes/{inbox_id}/threads/{thread_id}`
- Auth: HTTP bearer

Mark every message read or unread (the same read state the mailbox and GET /v1/emails/receiving show), move the thread to inbox, archive, spam or trash (sent is assigned automatically), apply a label, or remove one with remove_label_id (not in Resend). At least one of read, folder, label_id or remove_label_id. Requires the inbound:read scope; moving to trash is a delete and needs the inbound:delete scope on a key created by a team owner or admin.

## Path parameters

- `inbox_id` string, required
- `thread_id` string, required

## Request body

- object
  - `read` boolean
  - `folder` 'inbox' | 'archive' | 'spam' | 'trash'
  - `label_id` string: Apply this label of the same inbox
  - `remove_label_id` string: Remove this label. Not in Resend.

## Response `200`

The thread after the update

- InboxThread
  - `object` string
  - `id` string
  - `subject` string, nullable
  - `folder` 'inbox' | 'archive' | 'spam' | 'sent' | 'trash'
  - `labels` InboxLabelRef[]
    - `id` string
    - `name` string
    - `color` 'cyan' | 'teal' | 'grass' | 'lime' | 'yellow' | 'orange' | 'iris' | 'plum' | 'crimson' | 'bronze' | 'mauve'
  - `read` boolean: True only when every message in the thread is read
  - `received_at` string, date-time: When the thread was last active. Not in Resend's thread object.
  - `delete_after` string, date-time, nullable: When a thread in trash is removed. Not in Resend.

## Other responses

- `400`: Bad request - check your payload
- `401`: Invalid or missing API key
- `403`: Forbidden - domain not verified or insufficient permissions
- `404`: Resource not found
- `429`: Rate limit exceeded - retry after the period indicated in the Retry-After header
- `500`: Internal server error

---

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