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.

GET
/v1/messages/{id}/content

Returns the content the message was sent or received with.

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