Use this endpoint to fetch the data of a specific transactional email, including metadata, content, and attachments.
GET API-URL/transactional-emails/EMAIL-UNIQUE-ID
X-API-KEY: your-api-key-here
// GET ONE ITEM
$response = $endpoint->getEmail('EMAIL-UNIQUE-ID');
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
{
"status": "success",
"data": {
"record": {
"email_uid": "em847xqvnlz45",
"customer_id": "102",
"to_email": "lucas.smith@demo.com",
"to_name": "Lucas Smith",
"from_email": "emma.james@demo.com",
"from_name": "Emma James",
"reply_to_email": "emma.james@demo.com",
"reply_to_name": "Emma James",
"subject": "📧 Important Update – Please Review",
"body": "<strong>Hello Lucas, please find the attached document for your review.<\/strong>",
"plain_text": "Hello Lucas, please find the attached document for your review.",
"priority": "5",
"retries": "0",
"max_retries": "3",
"send_at": "2025-04-17 11:15:00",
"fallback_system_servers": "no",
"status": "sent",
"date_added": "2025-04-17 11:15:05",
"last_updated": "2025-04-17 11:16:10",
"attachments": [
{
"type": "application/pdf",
"name": "monthly-report-april.pdf",
"data": "Email attachment content blob"
}
]
}
}
}