Clean email messages
PUT {{baseUrl}}/v3/grants/:grant_id/messages/clean?select=<string>
This endpoint removes extra information from email messages. Instead of needing to parse through images, attachments, and HTML pages, Nylas removes the information you don't need and returns what you do need.
Note: Nylas removes all the extra information, such as <script>
and <style>
tags, regardless of the configuration.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
select | string | Specify fields that you want Nylas to return, as a comma-separated list (for example, | |
select=id,updated_at ). This allows you to receive only the portion of object data that you're | |||
interested in. You can use select to optimize response size and reduce latency by limiting queries | |||
to only the information that you need. |
Request Body
{"message_id"=>["{{message_id}}"], "ignore_links"=>true, "ignore_images"=>true, "images_as_markdown"=>true, "ignore_tables"=>true, "remove_conclusion_phrases"=>true}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"value":"\u003cError: Could not resolve allOf schema"}