Transactional Emails
GET
Get Transactional Email Content
GET /v1/emails/{emailId}/contentRetrieve the HTML and plain text content of a specific transactional email.
Use Cases:
- View the actual email content that was sent
- Debug rendering issues by examining HTML
- Retrieve email content for audit or compliance purposes
- Display sent email content in your application
Behavior:
- Returns the HTML and plain text versions of the email
- Content is retrieved from storage (S3)
- Returns 404 if email content is no longer available
- Content may be unavailable for very old emails (storage retention policy)
- Email must belong to your workspace
Required Scope: smtp:send
Response Includes:
- html: Full HTML content of the email (nullable if not available)
- text: Plain text version of the email (nullable if not provided)
Content Availability:
- Content is stored when the email is created
- Content may be purged after the retention period
- If both html and text are unavailable, a 404 is returned
Path parameters
emailIdstringrequiredTransactional email ID
Response
200Successfully retrieved email content (HTML and/or plain text)
objectstringrequiredhtmlanyrequiredHTML content of the email
textanyrequiredPlain text content of the email