Post the necessary fields for the API to send a new message.
Request
Provide your bearer token in the Authorization header when making requests to protected resources.
Body
Type of message being sent
ID of the contact receiving the message
ID of the associated appointment
Array of attachment URLs
Email address to send from
Array of CC email addresses
Array of BCC email addresses
HTML content of the message
Text content of the message
Subject line for email messages
ID of message being replied to
ID of message template
ID of message thread. For email messages, this is the message ID that contains multiple email messages in the thread
UTC Timestamp (in seconds) at which the message should be scheduled
ID of conversation provider
Email address to send to, if different from contact's primary email. This should be a valid email address associated with the contact.
Mode for email replies
Phone number used as the sender number for outbound messages
Recipient phone number for outbound messages
Headers
Access Token
API Version
Responses
200
Successful response
Body
Conversation ID.
This contains the email message id (only for Email type). Use this ID to send inbound replies to GHL to create a threaded email.
This is the main Message ID
When sending via the GMB channel, we will be returning list of messageIds instead of single messageId.
Additional response message when sending a workflow message
422
Unprocessable Entity
Body
401
Unauthorized
Body
400
Bad Request