---
title: "Move a message into a folder"
method: PUT
path: "/addresses/{email}/messages/{messageId}/folder/{folder}"
tags: ["Messages"]
---

# Move a message into a folder

`PUT /addresses/{email}/messages/{messageId}/folder/{folder}`

Move the message to a different mail folder.

No new folders can be added. To organize mail, use labels.

No PUT body is needed.

## Response `200`

Moved message to folder

- object
  - `_id` string, string — Unique Mailsac-generated identifier for an email message
  - `folder` 'inbox' | 'all' | 'spam' | 'trash' — Folders for a email messages

## Other responses

- `401` — Not authorized. You may need to log in first.
- `404` — Message not found by id...

---

[API](https://skmtc.net/mailsac/apis/mailsac-api-specification.md) · [All operations](https://skmtc.net/mailsac/apis/mailsac-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mailsac/mailsac-api-specification/versions/5f8b55c76229/schema)
