Create Message Request Payload

You can create a message

Any of:

You can create a message

message_type
required
string

The kind of message being created. Values: in_app or email.

Enum: "in_app" "email"
subject
required
string

The title of the email.

body
required
string

The content of the message. HTML and plaintext are supported.

template
required
string

The style of the outgoing message. Possible values plain or personal.

required
object

The sender of the message. If not provided, the default sender will be used.

required
object

The sender of the message. If not provided, the default sender will be used.

created_at
integer

The time the message was created. If not provided, the current time will be used.

create_conversation_without_contact_reply
boolean
Default: false

Whether a conversation should be opened in the inbox for the message without the contact replying. Defaults to false if not provided.

{ "message_type": "in_app", "subject": "Thanks for everything", "body": "Hello there", "template": "plain", "from": { "type": "admin", "id": 394051 }, "to": { "type": "user", "id": "536e564f316c83104c000020" }, "created_at": 1590000000, "create_conversation_without_contact_reply": true }