---
title: "Update Visible Message Flags"
method: PATCH
path: "/api/v1/mail/messages/{message_id}"
tags: ["Messages"]
---

# Update Visible Message Flags

`PATCH /api/v1/mail/messages/{message_id}`

## Path parameters

- `message_id` string, uuid, required

## Headers

- `Idempotency-Key` string, nullable

## Request body

- MessageFlagsUpdate
  - `is_read` boolean, nullable
  - `is_starred` boolean, nullable

## Response `200`

Successful Response

- MessageResponse
  - `id` string, uuid, required
  - `mailbox_id` string, uuid, required
  - `thread_id` string, uuid, nullable, required
  - `message_id` string, nullable
  - `from_address` string, required
  - `to_addresses` string[], required
  - `cc_addresses` string[], nullable, required
  - `subject` string, nullable, required
  - `snippet` string, nullable, required
  - `direction` 'inbound' | 'outbound', required
  - `status` 'queued' | 'sent' | 'delivered' | 'bounced' | 'failed' | 'received' | 'deleted', required
  - `is_read` boolean, required
  - `is_starred` boolean, required
  - `has_attachments` boolean, required
  - `reply_to` string, nullable
  - `first_opened_at` string, date-time, nullable
  - `open_count` integer
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable
  - `sending_domain_warning` string, nullable
  - `import_job_id` string, uuid, nullable

## Other responses

- `422` — Validation Error
- `4XX` — Client error with Support Agent information.
- `5XX` — Server error with Support Agent information.

---

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