Get message web version
Description
Retrieves an email message web version.
Request URL
Method: POST
https://example.com/api/v1.1/webver/get
Request parameters
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
format | string | "json" | No | Response data format By default – json |
send_message_id | string | "abcdefghijklmnqrstuvwxyz" | Yes | Web version ID |
Request example
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"send_message_id": "abcdefghijklmnqrstuvwxyz"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<send_message_id>abcdefghijklmnqrstuvwxyz</send_message_id>
</xml>
Response example
- JSON
- XML
{
"data": {
"createtime": "2018-08-24T09:26:23.292Z",
"email": {
"from_email": "example@example.com",
"from_name": "example.com",
"html": "HTML content ...",
"replyto_email": "example@example.com",
"replyto_name": "example.com",
"subject": "Welcome to Altcraft",
"text": "Text version also important\n\n--\nUnsubscribe: http://trk.gmail.com/37cfe6oTGQF4LYqk6oMi8eCtZ?dummy=1"
}
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<createtime>2018-08-24T09:26:23.292Z</createtime>
<email>
<from_email>example@example.com</from_email>
<from_name>example.com</from_name>
<html>HTML content ...</html>
<replyto_email>example@example.com</replyto_email>
<replyto_name>example.com</replyto_name>
<subject>Welcome to Altcraft</subject>
<text>Text version also important --
Unsubscribe: http://trk.gmail.com/37cfe6oTGQF4LYqk6oMi8eCtZ?dummy=1</text>
</email>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>
Response parameters
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | error text |
createtime | date | Template creation time |
JSON object | Message object |