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

Get message text content

Retrieve rendered text (plain + HTML) of a message. Does not change the message \Seen flag.

Get message text content

get

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
mailboxResourceIdstringRequired

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

Example: AC1a2b3c4d5e6f7g
folderstringRequired

Folder path (URL-encoded).

Example: INBOX
uidinteger · min: 1Required

Message UID.

Example: 42
Responses
200

Rendered text and HTML payload.

application/json

Single message text payload.

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?