curl --request POST \
--url https://api.botpress.cloud/v1/chat/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-bot-id: <x-bot-id>' \
--data '
{
"type": "<string>",
"payload": {},
"schedule": {
"dateTime": "<string>",
"delay": 123
},
"conversationId": "<string>",
"userId": "<string>",
"workflowId": "<string>",
"messageId": "<string>"
}
'{
"event": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"type": "<string>",
"payload": {},
"status": "pending",
"failureReason": "<string>",
"conversationId": "<string>",
"userId": "<string>",
"messageId": "<string>"
}
}curl --request POST \
--url https://api.botpress.cloud/v1/chat/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-bot-id: <x-bot-id>' \
--data '
{
"type": "<string>",
"payload": {},
"schedule": {
"dateTime": "<string>",
"delay": 123
},
"conversationId": "<string>",
"userId": "<string>",
"workflowId": "<string>",
"messageId": "<string>"
}
'{
"event": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"type": "<string>",
"payload": {},
"status": "pending",
"failureReason": "<string>",
"conversationId": "<string>",
"userId": "<string>",
"messageId": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bot id
Integration id
Integration alias
Event data
Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our API.
ID of the Conversation to link the event to.
28 - 36The event object represents an action or an occurrence.
Show child attributes
Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our api.
pending, processed, ignored, failed, scheduled, canceled Reason why the event failed to be processed
2000ID of the Conversation to link the event to.
28 - 36Was this page helpful?