Chat API
- Introduction
- Endpoints
- GETgetConversation
- DELdeleteConversation
- POSTcreateConversation
- GETlistConversations
- POSTgetOrCreateConversation
- GETlistenConversation
- GETlistMessages
- GETgetMessage
- DELdeleteMessage
- POSTcreateMessage
- POSTaddParticipant
- GETlistParticipants
- DELremoveParticipant
- GETgetParticipant
- GETgetUser
- PUTupdateUser
- DELdeleteUser
- POSTcreateUser
- POSTgetOrCreateUser
- GETgetEvent
- POSTcreateEvent
- GET
Admin API
- Getting started
- Concepts
- Endpoints
Files API
Tables API
- Getting Started
- Endpoints
Runtime API
- Getting Started
- Concepts
- Endpoints
createMessage
Creates a new Message
POST
/
messages
curl --request POST \
--url https://chat.botpress.cloud/{webhookUrl}/messages \
--header 'Content-Type: application/json' \
--header 'x-user-key: <x-user-key>' \
--data '{
"payload": {
"audioUrl": "<string>",
"type": "audio"
},
"conversationId": "<string>"
}'
{
"message": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"payload": {
"audioUrl": "<string>",
"type": "audio"
},
"userId": "<string>",
"conversationId": "<string>"
}
}
Headers
Authentication Key
Body
application/json
Message data
The body is of type object
.
Response
201
application/json
Returns a [Message](#schema_message).
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://chat.botpress.cloud/{webhookUrl}/messages \
--header 'Content-Type: application/json' \
--header 'x-user-key: <x-user-key>' \
--data '{
"payload": {
"audioUrl": "<string>",
"type": "audio"
},
"conversationId": "<string>"
}'
{
"message": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"payload": {
"audioUrl": "<string>",
"type": "audio"
},
"userId": "<string>",
"conversationId": "<string>"
}
}