Documentation
Sign inGet started

Get a thread message's original body

GET
/v1/email/threads/{thread_id}/messages/{message_id}/body
const body = await bird.email.threads.messages.body("thr_01abc", "rem_01xyz");
console.log(body.text);
Returns the original rendered HTML and plain-text body of a message in a conversation. The original body is available for 30 days after the message occurred. Later requests return 410 Gone, while the message's extracted text stays readable on the message itself.
Parameters
thread_id
string
Thread identifier. Starts with thr_.
message_id
string
Message ID (rem_ for a received message, em_ for a sent one).
Response Payload
html
nullable string
required
The HTML body of the message, or null when the message had no HTML part.
text
nullable string
required
The plain-text body of the message, or null when the message had no text part.