curl --request POST \
--url https://api.botpress.cloud/v1/chat/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-bot-id: <x-bot-id>' \
--data '
{
"payload": {},
"userId": "<string>",
"conversationId": "<string>",
"type": "<string>",
"tags": {},
"schedule": {
"dateTime": "<string>",
"delay": 123
},
"origin": "synthetic"
}
'{
"message": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "<string>",
"payload": {},
"direction": "incoming",
"userId": "<string>",
"conversationId": "<string>",
"tags": {},
"origin": "synthetic"
}
}curl --request POST \
--url https://api.botpress.cloud/v1/chat/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-bot-id: <x-bot-id>' \
--data '
{
"payload": {},
"userId": "<string>",
"conversationId": "<string>",
"type": "<string>",
"tags": {},
"schedule": {
"dateTime": "<string>",
"delay": 123
},
"origin": "synthetic"
}
'{
"message": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "<string>",
"payload": {},
"direction": "incoming",
"userId": "<string>",
"conversationId": "<string>",
"tags": {},
"origin": "synthetic"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bot id
Integration id
Integration alias
Message data
Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
ID of the Conversation
28 - 36Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.
Show child attributes
synthetic Returns a Message object if creation succeeds.
The Message object represents a message in a Conversation for a specific User.
Show child attributes
Was this page helpful?