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

This endpoint expects an object.
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_atdatetimeOptional

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 objectsOptional
bodystringOptional

The message body.

conversationobjectOptional

A conversation with a Contact

idstringOptional

Unique identifier for the object.