I set up a test bot in a botpress environment and am trying to access the chat via the converse api (is this not the right way?), using these endpoints:
Login on the Admin UI # @name login POST {{baseUrl}}/api/v1/auth/login/basic/default Content-Type: application/x-www-form-urlencoded
email={{email}}&password={{password}}
@authToken = {{login.response.body.payload.jwt}}
List All Bots (need to login first) GET {{baseUrl}}/api/v1/admin/bots Authorization: Bearer {{authToken}} X-BP-Workspace: default
@botId = YOUR_BOT_ID
Send a request using Converse POST {{baseUrl}}/api/v1/bots/{{botId}}/converse/{{userId}} Content-Type: application/json
{ "type": "text", "text": "hey" }
...I can authenticate okay and receive the bot list. But the last, most important call does not work. I authenticate with my admin account. In the conversation studio it is not possible to create users. Where do I get "userId" from?