Send a message

Sends a Message.

Path parameters

account_idstringRequired
The account for which the message should be sent.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

Message params
conversationobjectRequired
Params for selecting or creating a new conversation. Either the id or the Contact must be given.
attachmentslist of objectsOptional
bodystringOptional
The message body.
send_atstringOptionalformat: "date-time"
An optional datetime for scheduling message up to a couple of months in the future.

Response

When the message is enqueued successfully, this will be returned.
attachmentslist of objects or null
bodystring or null
The message body.
conversationobject or null
A conversation with a Contact
idstring or null
Unique identifier for the object.