Download Preview Image
Download a rendered preview image.
Download a rendered preview image.
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.
preview_idstringrequiredThe ID of the preview image, taken from List Previews.
Sample Request
Request
curl "https://api.maileroo.com/v1/email-testing/messages/d5949378-3069-4d8f-a8f3-6e5edf5d6060/previews/7500c25b-42ca-4a31-bf84-860e0b8a2e19/image" \
-H "Authorization: Bearer roo_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"Sample Response
The response body contains the preview image's raw bytes, not a JSON envelope. The stored image media type is returned, with image/png as the fallback.
Response headers
HTTP/1.1 200 OK
Content-Type: image/pngErrors
404 Not Found— the resource does not exist or is not owned by the account.