Move messages
Move multiple messages from a source folder to a target folder.
Move multiple messages from a source folder to a target folder.
Bearer authentication using API tokens in the Authorization header.
Resource ID of the managed mailbox the bearer token is authorized for.
AC1a2b3c4d5e6f7gSource folder path (URL-encoded).
INBOXBody for moving multiple messages to a target folder.
Message UIDs to move. 1-100 entries, each > 0.
[42,43,44]Destination folder path.
INBOX.SentMessages moved successfully.
No content
Missing or invalid credentials.
Token is not authorized to manage the requested mailbox.
Request payload failed validation. params maps field name to an array of error messages.
Server-side failure.
Upstream service is unavailable or returned an unexpected response.
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?