Botpress API doesn't work
# 🤝help
g
Trying to list and then get a single bot in our workspace via the API https://botpress.com/docs/api-documentation/ Trying to list bots I made the following curl: First it requires a workspaceID which isn't listed in the API docs but second it says I don't have permission to view them? What gives? is there better docs for the cloud API? We want to list, get, and update our bots via github actions
Copy code
curl --request GET \
  --url https://api.botpress.cloud/v1/admin/bots \
  --header 'Authorization: Bearer %MYPAT%' \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: %MYWORKSPACEID%'
Maybe I’ve got the workspaceid wrong?
I was able to get past this by snagging the workspace-id from a request in chrome (it's different than the id in the url) But now I'm curious if there is API access to the bot itself (the export from studio)? I don't see it in the API. We are trying to setup a CI/CD pipeline around the bot to allow multiple devs to work on the bot at one time.
3 Views