# Mark read or unread

`POST /mailboxes/{mailbox}/messages/{id}/read` · Praecise Inbox · Mailboxes

Set or clear the read flag on a message.

## Parameters

- `mailbox` (path, required), string: Mailbox address.
- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "folder": {
      "type": "string",
      "description": "Folder id: inbox, sent, draft, archive, spam, trash, or a custom folder name.",
      "default": "inbox"
    },
    "read": {
      "type": "boolean",
      "default": true
    }
  }
}
```

## Responses

- `200`: Mark read or unread
- `401`: No valid access key.
- `403`: The key may not do this on this mailbox.
- `429`: Too many calls; see Retry-After.

## Example

```sh
curl -X POST 'https://email.inbox.praecise.com/api/mailboxes/{mailbox}/messages/{id}/read' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "folder": "inbox",
  "read": true
}'
```
