# Move a message

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

Move a message to another folder. Archive and Trash are folders; nothing is deleted outright.

## 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"
    },
    "to": {
      "type": "string",
      "description": "Destination folder, e.g. Archive or Trash."
    }
  }
}
```

## Responses

- `200`: Move a message
- `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}/move' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "folder": "inbox",
  "to": "string"
}'
```
