Using the HTTP Api - how to get Bearer token programmatically

ricwo
(Nick Opris) #1

Hi,

I’d like to use the API in my CMS application and I need to know how to get a Bearer token without having to use the share functionality from the Conversations page in the application.

Thanks,

(ricwo) #2

HI @nickopris - you can get a token with a POST to rasa X’s /auth endpoint:

curl -XPOST http://localhost:5002/api/auth -d '{"username": "me", "password": <PW>}'