Get message content
Returns the content the message was sent or received with. Use this endpoint to get message content through the Samva email API.
Returns the content the message was sent or received with.
Authorization
apiKey x-api-key<token>
In: header
Path Parameters
id*string
Match
^msg_[0-9a-hjkmnp-tv-z]{16,24}$Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/messages/string/content"{ "text": "string", "html": "string", "markdown": "string", "email": { "subject": "string", "html": "string", "text": "string", "headers": { "property1": "string", "property2": "string" }, "tracking": { "opens": true, "clicks": true }, "attachments": [ { "filename": "string", "content": "string", "mediaId": "string", "contentType": "string", "size": 0 } ] }, "metadata": {}}Related documentation
Get a message
Returns a message by its ID: addresses, subject, status, and why it is waiting when it is. Per-recipient delivery state and the body are their own reads.
Get email message details
Returns email delivery details for a message, optionally including signed URLs for its raw MIME, HTML, and text content.