echoing-napkin-26350
07/30/2025, 12:28 PM{
"message": "must be equal to one of the allowed values"
}
- Attempts: I have been using this body structure in my API calls, trying the type with "text", "trigger", "object", "event", but so far all of them return `400 status code`:
{
"payload": {
"type": "text",
"text": "some random text"
}
}
- As far as I know, there shouldn't be any issue with my x-user-key, conversationId, and any other fields that are required by botpress chat API, because I have tested them with the other endpoints (eg: createUser, createConversation, createMessage, etc).
This is just one side of the issue. The end goal would be for my Bubble webapp backend to be able to do 2-way communication with my botpress chat engine.
Is there probably some samples of working createEvent API call that I can imitate?
Thanks in advance.swift-market-64816
07/30/2025, 1:38 PMechoing-napkin-26350
07/31/2025, 1:45 PMcreateEvent endpoint with the following payload:
{
"payload": {
"type": "banana",
"data": {
"foo": "bar"
}
},
"conversationId": "conv_01K1..."
}
- Do I need to define in my workflow how to handle "type": "banana" first ?
- Or should the value of the type should match only native Botpress's allowed values?echoing-napkin-26350
07/31/2025, 6:22 PMprehistoric-airplane-85682
07/31/2025, 6:29 PMgreen-salesmen-95102
08/25/2025, 1:30 PM