EmailController

Take a screenshot of an email in a browser and return base64 encoded string

Renders the email in a browser engine and returns PNG data as base64. Useful for APIs and dashboards that cannot easily stream binary responses.

post/emails/{emailId}/screenshot/base64

Request

  • Base URL: https://api.mailslurp.com
  • URL: https://api.mailslurp.com/emails/{emailId}/screenshot/base64
  • Auth: API key in header x-api-key

Path parameters

emailIdstring uuid required

Request body

heightinteger nullable

Window height in pixels

widthinteger nullable

Window width in pixels

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.