For the complete documentation index, see llms.txt. This page is also available as Markdown.

Move messages

Move multiple messages from a source folder to a target folder.

Move messages

post

Move multiple messages from a source folder to a target folder.

Authorizations
AuthorizationstringRequired

Bearer authentication using API tokens in the Authorization header.

Path parameters
mailboxResourceIdstringRequired

Resource ID of the managed mailbox the bearer token is authorized for.

Example: AC1a2b3c4d5e6f7g
folderstringRequired

Source folder path (URL-encoded).

Example: INBOX
Body

Body for moving multiple messages to a target folder.

uidsinteger[] · min: 1 · max: 100Required

Message UIDs to move. 1-100 entries, each > 0.

Example: [42,43,44]
targetFolderstring · min: 1 · max: 100Required

Destination folder path.

Example: INBOX.Sent
Responses
204

Messages moved successfully.

No content

post/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/move
POST /api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/move HTTP/1.1
Host: api.mail.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "uids": [
    42,
    43,
    44
  ],
  "targetFolder": "INBOX.Sent"
}

No content

Last updated

Was this helpful?