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);body = client.email.threads.messages.body(
"thr_01krdgeqcxet5s7t44vh8rt9mg", "rem_01krdgeqcxet5s7t44vh8rt9mg",
)
print(body.html)body, err := client.Email.Threads.Messages.Body(context.Background(), "thr_123", "rem_456")
if err != nil {
log.Fatal(err)
}
fmt.Println(body.Text)$body = $bird->email->threads->messages->body(
'thr_01krdgeqcxet5s7t44vh8rt9mg',
'rem_01krdgeqcxet5s7t44vh8rt9mg',
);
echo $body->getText() ?? $body->getHtml();bird email threads messages body <thread-id> <message-id>curl -X GET "https://us1.platform.bird.com/v1/email/threads/{thread_id}/messages/{message_id}/body" \
-H "Authorization: Bearer $TOKEN"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.
Parametri
thread_id
string
Thread identifier. Starts with thr_.
message_id
string
Message ID (rem_ for a received message, em_ for a sent one).
Payload di risposta
html
nullable string
obbligatorio
The HTML body of the message, or null when the message had no HTML part.
text
nullable string
obbligatorio
The plain-text body of the message, or null when the message had no text part.
Risorse correlate
Prosegui con la documentazione, le guide e gli esempi per questo argomento. Le risorse sono in inglese.
Guarda la guidaGetting started with emailEsplora la funzionalitàEmailSegui il percorso di apprendimentoBuild your first integrationGuida all'implementazioneSend your first email
Prova l'esercitazione e ottieni un brief di implementazione