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.
Schedule the Event to be sent at a specific time. Either dateTime or delay must be provided.
Show child attributes
ID of the Conversation to link the event to.
28 - 36Was this page helpful?