# How can I get the Bearer Token in Rasa Open Source API

**URL:** <https://forum.rasa.com/t/how-can-i-get-the-bearer-token-in-rasa-open-source-api/50171>\
**Category:** Rasa Open Source\
**Created:** [December 20, 2021, 1:41pm UTC](https://forum.rasa.com/t/how-can-i-get-the-bearer-token-in-rasa-open-source-api/50171 "2021-12-20T13:41:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunil13](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sunil13](https://forum.rasa.com/u/sunil13)\
**Post date:** [December 20, 2021, 1:41pm UTC](https://forum.rasa.com/t/how-can-i-get-the-bearer-token-in-rasa-open-source-api/50171/1 "2021-12-20T13:41:43Z")

</div>

Hi,

I am using Rasa Open source APIs to get the INTENT and ENTITIES. I am able to achieve that. But I want to secure my API’s.

When I go through the rasa documentation, I found two methods:

1. Token-Based Auth
2. JWT Based Auth

I am succeded using the Token-Based Auth. Now I am trying to make it work with JWT, but I am unable to find a way to get the Authorization Bearer Key. I have followed the below steps:

## Step:1

I am running my Rasa with the below Command: **rasa run --enable-api --jwt-secret thisismysecret**

After that, I am confused, because I don’t find a way to get the Authorization Bearer Key.

Can anyone help me how can i get the Authorization Bearer Key?

---

<div class="post-metadata">

**Author:** ![webdev-rohit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/webdev-rohit/32/18943_2.png) [@webdev-rohit](https://forum.rasa.com/u/webdev-rohit)\
**Post date:** [February 4, 2022, 2:20pm UTC](https://forum.rasa.com/t/how-can-i-get-the-bearer-token-in-rasa-open-source-api/50171/2 "2022-02-04T14:20:35Z")

</div>

Hi @sunil13 were you able to solve it? And what frontend are you using? Can you attach a screenshot of the frontend code
