EmailController

Query hydrated HTML body and return matching text lines

Applies a JSoup/CSS selector to hydrated HTML email body and returns matching text lines.

get/emails/{emailId}/htmlQuery

Request

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

Path parameters

emailIdstring uuid required

ID of email to perform HTML query on

Query parameters

htmlSelectorstring required

HTML selector to search for. Uses JQuery/JSoup/CSS style selector like '.my-div' to match content. See https://jsoup.org/apidocs/org/jsoup/select/Selector.html for more information.

Response

OK

Changes

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