« Back to Documentation Overview

get_message_contents

Section: Messages
Version: 1.5.0


Get message contents (parts).
Hint: Result may be empty (draft messages from web interface do not require content) or contain only plain, only html or both.

Hint: All merge-words in contents are GetResponse Dynamic Content syntax.


Parameters
stringAPI_KEY
object
stringmessageMESSAGE_ID
Return Value
stringplainHello there
stringhtml<h1>Hello</h1>there

Example Request JSON

[
    "API_KEY",
    {
        "message": "MESSAGE_ID"
    }
]

Example Response JSON

{
    "plain": "Hello there",
    "html": "<h1>Hello<\/h1>there"
}

Example Error Response JSON

{
    "code": -1,
    "message": "Missing message"
}
Method-specific Errors
Missing message
API-wide Errors
API key verification failed API key verification failed
API client IP not allowed API client IP not allowed
Invalid params Attribute params must be reference to hash