Documentation
Sign inGet started

Get stored message content

GET
/v1/email/messages/{message_id}/content
Returns the stored HTML and text bodies for a sent message. A message must have content storage enabled for this endpoint to return data. Content is available for up to 30 days after sending. A 404 indicates no content was stored for this message; a 425 indicates the content is still being stored and the request can be retried shortly; a 410 indicates the content was stored but has since expired.
Paramètres
message_id
string
Message ID.
Response Payload
html
string
The HTML body of the message, if it was stored.
text
string
The plain-text body of the message, if it was stored.
cURL
curl -X GET "https://us1.platform.bird.com/v1/email/messages/{message_id}/content" \
  -H "Authorization: Bearer $TOKEN"