Get message text content
Retrieve rendered text (plain + HTML) of a message. Does not change the message \Seen flag.
Retrieve rendered text (plain + HTML) of a message. Does not change the message \Seen flag.
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:
Folder path (URL-encoded).
INBOXuidinteger · min: 1RequiredExample:
Message UID.
42Responses
200
Rendered text and HTML payload.
application/json
Single message text payload.
401
Missing or invalid credentials.
application/json
403
Token is not authorized to manage the requested mailbox.
application/json
404
Resource not found.
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
get/api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}/text
GET /api/v1/mailboxes/{mailboxResourceId}/folders/{folder}/messages/{uid}/text HTTP/1.1
Host: api.mail.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"text": "Hello world",
"html": "<p>Hello world</p>"
}
}Last updated
Was this helpful?