Send Conversation Message

Send a message to a conversation

post
/v1/conversation/{conversationId}/send

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

conversationIdstring* Required

The ID of the conversation to send the message to

Request Body * Required

Request Body Schema: application/json

textstring

The text of the message to send

entitiesarray

Known entities

typestring

The entity type

beginnumber

Start offset

endnumber

End offset

textstring

The text value of the entity

replacementobject

beginnumber

Start offset

endnumber

End offset

textstring

The text value of the replacement

curl -X POST "https://api.chatbotkit.com/v1/conversation/{conversationId}/send" \

-H "Authorization: Bearer $CHATBOTKIT_API_SECRET" \

-H "Content-Type: application/json" \

--data-binary @- << EOF {
"text":"string",
"entities":[
{
"type":"string",
"begin":"number",
"end":"number",
"text":"string",
"replacement":{
"begin":"number",
"end":"number",
"text":"string"
}
}
]
}
EOF
{
"id":"string",
"entities":[
{
"type":"string",
"begin":"number",
"end":"number",
"text":"string",
"replacement":{
"begin":"number",
"end":"number",
"text":"string"
}
}
]
}
The message was sent successfully