# Using the HTTP Api - how to get Bearer token programmatically

**URL:** <https://forum.rasa.com/t/using-the-http-api-how-to-get-bearer-token-programmatically/10256>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [May 23, 2019, 4:15pm UTC](https://forum.rasa.com/t/using-the-http-api-how-to-get-bearer-token-programmatically/10256 "2019-05-23T16:15:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickopris](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nickopris/32/2816_2.png) [@nickopris](https://forum.rasa.com/u/nickopris)\
**Post date:** [May 23, 2019, 4:15pm UTC](https://forum.rasa.com/t/using-the-http-api-how-to-get-bearer-token-programmatically/10256/1 "2019-05-23T16:15:19Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![ricwo](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ricwo](https://forum.rasa.com/u/ricwo)\
**Post date:** [June 12, 2019, 6:57am UTC](https://forum.rasa.com/t/using-the-http-api-how-to-get-bearer-token-programmatically/10256/2 "2019-06-12T06:57:39Z")

</div>

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

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

```
