Autorización
string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
string
default:"2021-07-28"
required
Versión de la API.
Body
string
default:"Email"
required
Type of message being sent Posibles valores: ‘SMS’, ‘RCS’, ‘Email’, ‘WhatsApp’, ‘IG’, ‘FB’, ‘Custom’, ‘Live_Chat’, ‘TIKTOK’
object
default:"Email"
required
Type of message being sent
string
default:"abc123def456"
required
ID of the contact receiving the message
string
default:"appt123"
ID of the associated appointment
string[]
Array of attachment URLs
string
default:"sender@company.com"
Email address to send from
string[]
Array of CC email addresses
string[]
Array of BCC email addresses
string
default:"<p>Hello World</p>"
HTML content of the message
string
default:"Hello, how can I help you today?"
Text content of the message
string
default:"Important Update"
Subject line for email messages
string
default:"msg123"
ID of message being replied to
string
default:"template123"
ID of message template
string
default:"thread123"
ID of message thread. For email messages, this is the message ID that contains multiple email messages in the thread
number
default:"1669287863"
UTC Timestamp (in seconds) at which the message should be scheduled
string
default:"provider123"
ID of conversation provider
string
default:"recipient@company.com"
Email address to send to, if different from contact’s primary email. This should be a valid email address associated with the contact.
string
default:"507f1f77bcf86cd799439011"
Custom subtype ID for email unsubscription preferences. Only applies to email messages.
string
default:"reply_all"
Mode for email replies Posibles valores: ‘reply’, ‘reply_all’
string
default:"+1499499299"
Phone number used as the sender number for outbound messages
string
default:"+1439499299"
Recipient phone number for outbound messages
object
Forwarding configuration for emails
string
default:"delivered"
required
Message status Posibles valores: ‘delivered’, ‘failed’, ‘pending’, ‘read’
boolean
default:"False"
Whether the scheduled email uses native AI for the email scheduling
string
default:"24h"
Optimization period in hours (24h, 48h, or 72h) Posibles valores: ‘24h’, ‘48h’, ‘72h’
Respuestas
200 - Created the message
200 - Created the message
string
default:"ABC12h2F6uBrIkfXYazb"
required
Conversation ID.
string
default:"rnGyqh2F6uBrIkfhFo9A"
This contains the email message id (only for Email type). Use this ID to send inbound replies to GHL to create a threaded email.
string
default:"t22c6DQcTDf3MjRhwf77"
required
This is the main Message ID
string[]
When sending via the GMB channel, we will be returning list of
messageIds instead of single messageId.string
default:"Message queued successfully."
Additional response message when sending a workflow message
object
Optional metadata for forwarded email
string
default:"delivered"
required
Message status Posibles valores: ‘delivered’, ‘failed’, ‘pending’, ‘read’
400 - Bad Request
400 - Bad Request

