Content — three formats
Every email body is delivered in three formats simultaneously. Use whichever fits your pipeline — or all three for different purposes.
"content": {
"text": "Hi, please find the invoice attached...",
"html": "<p>Hi, please find the invoice...</p>",
"markdown": "Hi, please find the invoice attached...",
"links": [
{
"url": "https://acme.com/pay/1042",
"text": "Pay now",
"domain": "acme.com"
}
]
}Best for search indexing, keyword matching, and feeding to LLMs. Clean, no markup.
The original email markup. Use when you need to render the email exactly as it was sent.
Structured but readable. Great for AI processing, ticket descriptions, and CRM notes.
Practical use: Feed content.markdown to your LLM for classification or summarisation. Use content.links to extract tracking URLs from shipping notifications or payment links from invoices.