Get Message Body
Download a decoded text or HTML message body part.
Download a decoded text or HTML message body part.
Scope: email_testing.messages.read
Path Parameters
idstringrequiredThe ID of the captured message, for example d5949378-3069-4d8f-a8f3-6e5edf5d6060. You get it from List Messages or the message.received webhook. It isn't the email's Message-ID header.
partstringrequiredWhich body to download: html for the HTML version, or text for the plain-text version.
Sample Request
Request
curl "https://api.maileroo.com/v1/email-testing/messages/d5949378-3069-4d8f-a8f3-6e5edf5d6060/body/html" \
-H "Authorization: Bearer roo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"Sample Response
The response is wrapped in a data object.
Response
{
"data": {
"content": "<p>Hello</p>"
}
}The content value is the decoded text or HTML body part.
Errors
400 Bad Request—partmust behtmlortext.404 Not Found— the resource does not exist or is not owned by the account.