# Problem with Rasa HTTP API

**URL:** <https://forum.rasa.com/t/problem-with-rasa-http-api/11390>\
**Category:** Rasa Open Source\
**Created:** [June 12, 2019, 4:50pm UTC](https://forum.rasa.com/t/problem-with-rasa-http-api/11390 "2019-06-12T16:50:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaioTsubake](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@CaioTsubake](https://forum.rasa.com/u/CaioTsubake)\
**Post date:** [June 12, 2019, 4:50pm UTC](https://forum.rasa.com/t/problem-with-rasa-http-api/11390/1 "2019-06-12T16:50:48Z")

</div>

I am trying to execute an action at the beginning of my conversation with the user. To do that, I am using the http api method to run an action. This was working fine before I migrated to Rasa 1.0.1

Now when I try it, get the folling message: Error: Requested URL /conversations/default/execute not found

Here is my request url and the body:  
[http://192.168.99.100:5005/conversations/{sessionId}/execute](http://192.168.99.100:5005/conversations/%7BsessionId%7D/execute)  
body :{“name”:“utter\_welcome\_message”}

I don’t know if it related but I also cannot retrieve the tracker of the conversation anymore by calling: [http://192.168.99.100:5005/conversations/{sessionId}/tracker](http://192.168.99.100:5005/conversations/%7BsessionId%7D/tracker)

I’ve checked the API documentation but couldn’t find anything different from what I am doing. What I am doing wrong?

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 12, 2019, 5:48pm UTC](https://forum.rasa.com/t/problem-with-rasa-http-api/11390/2 "2019-06-12T17:48:24Z")

</div>

Hi @CaioTsubake

did you start the server with the `--enable-api` flag?

Regards

---

<div class="post-metadata">

**Author:** ![CaioTsubake](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@CaioTsubake](https://forum.rasa.com/u/CaioTsubake)\
**Post date:** [June 12, 2019, 6:21pm UTC](https://forum.rasa.com/t/problem-with-rasa-http-api/11390/3 "2019-06-12T18:21:45Z")

</div>

Hi @JulianGerhard.

No I didn’t. I was running the server with a docker compose file, in which I am basically just doing `rasa run`.

So, I need to run my command with `--enable-api` flag to be able to call the API over HTTP, correct?

I will try it and let you know what happened. Thanks!

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 12, 2019, 6:23pm UTC](https://forum.rasa.com/t/problem-with-rasa-http-api/11390/4 "2019-06-12T18:23:02Z")

</div>

Exactly! If you do:

`rasa run -vv <other flags> --enable-api`

you should be able to see something like:

```
rasa.core.utils - Available web server routes:
/conversations/<conversation_id>/messages POST add_message
/conversations/<conversation_id>/tracker/events POST append_event
/webhooks/rasa GET custom_webhook_RasaChatInput.health
/webhooks/rasa/webhook POST custom_webhook_RasaChatInput.receive
/webhooks/rest GET custom_webhook_RestInput.health
/webhooks/rest/webhook POST custom_webhook_RestInput.receive
/model/test/intents POST evaluate_intents
/model/test/stories POST evaluate_stories
/conversations/<conversation_id>/execute POST execute_action
/domain GET get_domain
/ GET hello
/model PUT load_model
/model/parse POST parse
/conversations/<conversation_id>/predict POST predict
/conversations/<conversation_id>/tracker/events PUT replace_events
/conversations/<conversation_id>/story GET retrieve_story
/conversations/<conversation_id>/tracker GET retrieve_tracker
/status GET status
/model/predict POST tracker_predict
/model/train POST train
/model DELETE unload_model
/version GET version

```

then you should be able to use the API!

---

<div class="post-metadata">

**Author:** ![CaioTsubake](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@CaioTsubake](https://forum.rasa.com/u/CaioTsubake)\
**Post date:** [June 12, 2019, 7:36pm UTC](https://forum.rasa.com/t/problem-with-rasa-http-api/11390/5 "2019-06-12T19:36:58Z")

</div>

Thanks Julian, it worked like a charm.  
I also had to change the old body parameters in my code but after that it began working like before. Thanks for the help!

Oh, one last thing, is using the API the best way to trigger a specific action on the bot, or is there a more correct way?

Thanks again for the help!

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 13, 2019, 4:46am UTC](https://forum.rasa.com/t/problem-with-rasa-http-api/11390/6 "2019-06-13T04:46:06Z")

</div>

Glad that I could help!

That depends on what “triggering an action” means exactly. I’d say that it is absolutely okay to trigger an action via API but it seems to me that it is more natural to trigger it during conversation by uttering things.

So - no exact answer here! 🙂

Regards

---

<div class="post-metadata">

**Author:** ![Navjan](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@Navjan](https://forum.rasa.com/u/Navjan)\
**Post date:** [May 20, 2020, 5:52pm UTC](https://forum.rasa.com/t/problem-with-rasa-http-api/11390/7 "2020-05-20T17:52:52Z")

</div>

@JulianGerhard I got below issue when using chatroom UI with Rasa. It faild with below eoor when i try to send message from Chatroom UI.

 ![InkedCapture_LI](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/2/211851c77217f8c74d4e65e7d9fe105b74f2ffdc.jpeg)

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [May 22, 2020, 4:21pm UTC](https://forum.rasa.com/t/problem-with-rasa-http-api/11390/8 "2020-05-22T16:21:55Z")

</div>

Hi @Navjan,

such an issue can e.g. be observed when a request is SSL secured meaning that Rasa needs to be started with SSL encryption - at least this would be my first assumption.

Did you try following [this documentation](https://rasa.com/docs/rasa/user-guide/configuring-http-api/#server-ssl) to see if it works then?

I am not familiar with Chatroom UI but let’s try SSL first.

Kind regards  
Julian

---

<div class="post-metadata">

**Author:** ![basil-chatha](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/basil-chatha/32/9260_2.png) [@basil-chatha](https://forum.rasa.com/u/basil-chatha)\
**Post date:** [July 30, 2020, 4:49am UTC](https://forum.rasa.com/t/problem-with-rasa-http-api/11390/9 "2020-07-30T04:49:22Z")

</div>

Hi @JulianGerhard do you know if these endpoints [HTTP API](https://rasa.com/docs/rasa/api/http-api/#operation/getConversationTracker) have been deprecated and these [Rasa X HTTP API](https://rasa.com/docs/rasa-x/api/rasa-x-http-api/#operation/deleteConversationById) are the only ones that work? I’m trying to add events to the tracker via one of the endpoints but I get a “Not Found” error, which means it doesn’t exist.

EDIT: It’s weird because I did rasa run actions with the -vv option and in my logs it says the `/conversations/{conversation_id}/tracker/events` POST endpoint exists but I still get a “Not Found” 404 error from the api
