Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Post the necessary fields for the API to add a new inbound message. <br />
POST https://services.leadconnectorhq.com/conversations/messages/inbound

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Body

type
string
default:"SMS"
required
Message Type Posibles valores: ‘SMS’, ‘RCS’, ‘Email’, ‘WhatsApp’, ‘GMB’, ‘IG’, ‘FB’, ‘Custom’, ‘WebChat’, ‘Live_Chat’, ‘Call’, ‘IVR_Call’, ‘Campaign_Call’, ‘Campaign_VoiceMail’, ‘TIKTOK’, ‘ALL_IN_ONE_CHAT’, ‘FORM_SUBMISSION’
attachments
string[]
Array of attachments
message
string
Message Body
conversationId
string
default:"ve9EPM428h8vShlRW1KT"
required
Conversation Id
contactId
string
default:"ve9EPM428h8vShlRW1KT"
required
Contact Id
conversationProviderId
string
default:"61d6d1f9cdac7612faf80753"
required
Conversation Provider Id
html
string
HTML Body of Email
subject
string
Subject of the Email
emailFrom
string
default:"sender@company.com"
Email address to send from. This field is associated with the contact record and cannot be dynamically changed.
emailTo
string
Recipient email address. This field is associated with the contact record and cannot be dynamically changed.
emailCc
string[]
List of email address to CC
emailBcc
string[]
List of email address to BCC
emailMessageId
string
Send the email message id for which this email should be threaded. This is for replying to a specific email
altId
string
default:"61d6d1f9cdac7612faf80753"
external mail provider’s message id
direction
object
Message direction, if required can be set manually, default is outbound
date
string
Date of the inbound message
call
object
Phone call dialer and receiver information

Respuestas

success
boolean
required
conversationId
string
default:"ABC12h2F6uBrIkfXYazb"
required
Conversation ID.
messageId
string
default:"t22c6DQcTDf3MjRhwf77"
required
This is the main Message ID
message
string
required
contactId
string
dateAdded
string
emailMessageId
string
{
  "success": true,
  "conversationId": "ABC12h2F6uBrIkfXYazb",
  "messageId": "t22c6DQcTDf3MjRhwf77",
  "message": "string",
  "contactId": "string",
  "dateAdded": "2024-01-15T10:30:00Z",
  "emailMessageId": "string"
}
{}
{}

Ejemplo

curl -X POST 'https://services.leadconnectorhq.com/conversations/messages/inbound' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "SMS",
  "attachments": [
    "string"
  ],
  "message": "string",
  "conversationId": "ve9EPM428h8vShlRW1KT",
  "contactId": "ve9EPM428h8vShlRW1KT",
  "conversationProviderId": "61d6d1f9cdac7612faf80753",
  "html": "string",
  "subject": "string",
  "emailFrom": "sender@company.com",
  "emailTo": "string",
  "emailCc": [
    "john1@doe.com",
    "john2@doe.com"
  ],
  "emailBcc": [
    "john1@doe.com",
    "john2@doe.com"
  ],
  "emailMessageId": "string",
  "altId": "61d6d1f9cdac7612faf80753",
  "direction": [
    "outbound",
    "inbound"
  ],
  "date": "2024-01-15T10:30:00Z"
}'