Skip to main content
POST
Add a message from the agent to a conversation.

Authorizations

Authorization
string
header
required

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

Path Parameters

conversationId
integer
required

Body

application/json
type
string
reference_id
integer | null

ID of message within the same conversation this message is referring to.

from_automation
boolean | null
default:false

Indicates if the message was sent by an automation. A "new-agent-message" webhook will be triggered if set to true.

text
object
image
object
video
object
audio
object
document
object
location
object
contact
object
file
object

Used when type is image / video / audio / document. See allowed-mime-types endpoint for valid file mime types.

Response

200 - application/json

Success

data
object

A message within a conversation.