# Rasa HTTP API unreachable using in production with RASA X

**URL:** <https://forum.rasa.com/t/rasa-http-api-unreachable-using-in-production-with-rasa-x/30486>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [June 22, 2020, 6:41am UTC](https://forum.rasa.com/t/rasa-http-api-unreachable-using-in-production-with-rasa-x/30486 "2020-06-22T06:41:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rogers\_ntr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rogers_ntr/32/3067_2.png) [@Rogers\_ntr](https://forum.rasa.com/u/Rogers_ntr)\
**Post date:** [June 22, 2020, 6:41am UTC](https://forum.rasa.com/t/rasa-http-api-unreachable-using-in-production-with-rasa-x/30486/1 "2020-06-22T06:41:14Z")

</div>

Hi, I want to use inject an intent in a conversation from an external server that run our own company API using Rasa [HTTP API](https://rasa.com/docs/rasa/api/http-api/#operation/triggerConversationIntent).

We deploy the bot using Rasa X and when we call the Rasa HTTP API, it does not work. To inject intent, we use the Rasa X IPas the base url, like this: **[IP]/conversations/{conversation\_id}/trigger\_intent=** …

Note also that we are using a token, that we are passing in the url.

Any clue ho to solve that please ? It was working before going to production with Rasa X.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [June 22, 2020, 2:18pm UTC](https://forum.rasa.com/t/rasa-http-api-unreachable-using-in-production-with-rasa-x/30486/2 "2020-06-22T14:18:04Z")

</div>

Hi @Rogers_ntr, to hit the production container directly, add the `/core` prefix to your endpoint. this tells nginx where to reroute the request, as it’s not a rasa x endpoint. So try:

`[IP]/core/conversations/{conversation_id}/trigger_intent`

Let me know if this doesn’t help!

---

<div class="post-metadata">

**Author:** ![Rogers\_ntr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rogers_ntr/32/3067_2.png) [@Rogers\_ntr](https://forum.rasa.com/u/Rogers_ntr)\
**Post date:** [June 22, 2020, 3:02pm UTC](https://forum.rasa.com/t/rasa-http-api-unreachable-using-in-production-with-rasa-x/30486/3 "2020-06-22T15:02:19Z")

</div>

Hi @erohmensingThanks for the reply. It seems to work now, but I’m getting **401** error.

How do I get the access token ? I tried [this](https://rasa.com/docs/rasa-x/api/rasa-x-http-api/#tag/Authentication), but didn’t get any response.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [June 25, 2020, 12:15pm UTC](https://forum.rasa.com/t/rasa-http-api-unreachable-using-in-production-with-rasa-x/30486/4 "2020-06-25T12:15:20Z")

</div>

Hi @Rogers_ntr, the token is the `RASA_TOKEN` defined in your `.env`. You attach it via a query parameter `token`, so

```auto
[IP]/core/conversations/{conversation_id}/trigger_intent?token=<RASA_X_TOKEN>

```

---

<div class="post-metadata">

**Author:** ![Rogers\_ntr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rogers_ntr/32/3067_2.png) [@Rogers\_ntr](https://forum.rasa.com/u/Rogers_ntr)\
**Post date:** [June 25, 2020, 12:27pm UTC](https://forum.rasa.com/t/rasa-http-api-unreachable-using-in-production-with-rasa-x/30486/5 "2020-06-25T12:27:54Z")

</div>

Hi, Yes, I have been able to solve it by finding the predefined token created during Rasa X installation and it solved the problem.

Thanks deeply for your help! @erohmensing

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [June 25, 2020, 12:33pm UTC](https://forum.rasa.com/t/rasa-http-api-unreachable-using-in-production-with-rasa-x/30486/6 "2020-06-25T12:33:03Z")

</div>

No problem, good work figuring that out!
