Move message
Move a single message to a target folder.
Move a single message to a target folder.
Authorizations
AuthorizationstringRequired
Bearer authentication using API tokens in the Authorization header.
Path parameters
mailboxResourceIdstringRequiredExample:
Resource ID of the managed mailbox the bearer token is authorized for.
AC1a2b3c4d5e6f7gfolderstringRequiredExample:
Source folder path (URL-encoded).
INBOXuidinteger · min: 1RequiredExample:
Message UID.
42Body
Body for moving a single message to a target folder.
targetFolderstring · min: 1 · max: 100RequiredExample:
Destination folder path.
INBOX.SentResponses
204
Message moved successfully.
No content
401
Missing or invalid credentials.
application/json
403
Token is not authorized to manage the requested mailbox.
application/json
422
Request payload failed validation. params maps field name to an array of error messages.
application/json
500
Server-side failure.
application/json
502
Upstream service is unavailable or returned an unexpected response.
application/json
post/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}/move
POST /api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}/move HTTP/1.1
Host: api.mail.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"targetFolder": "INBOX.Sent"
}No content
Last updated
Was this helpful?