Create Conversation Message

Create message

post
/v1/conversation/{conversationId}/message/create

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

conversationIdstring* Required

The ID of the conversation

Request Body * Required

Request Body Schema: application/json

typestring

The type of the message

textstring

The text of the message

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}/message/create" \

-H "Authorization: Bearer $CHATBOTKIT_API_SECRET" \

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

--data-binary @- << EOF {
"type":"string",
"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 created successfully