# Not able to serve Rasa as a rest service

**URL:** <https://forum.rasa.com/t/not-able-to-serve-rasa-as-a-rest-service/11733>\
**Category:** Tutorials, Resources & Videos\
**Created:** [June 19, 2019, 1:54pm UTC](https://forum.rasa.com/t/not-able-to-serve-rasa-as-a-rest-service/11733 "2019-06-19T13:54:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![reddimohan](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@reddimohan](https://forum.rasa.com/u/reddimohan)\
**Post date:** [June 19, 2019, 1:54pm UTC](https://forum.rasa.com/t/not-able-to-serve-rasa-as-a-rest-service/11733/1 "2019-06-19T13:54:31Z")

</div>

Hi Team,

I am new to Rasa and installed the latest version. I have created new project by using

> rasa init --no-prompt

I am able to run the rasa in shell using below command and interact but not able to make this as a service so that I can call this server from the UI to interact.

> rasa shell

It would be great help If someone helps me on this.

Thanks, MO

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [June 19, 2019, 2:08pm UTC](https://forum.rasa.com/t/not-able-to-serve-rasa-as-a-rest-service/11733/2 "2019-06-19T14:08:24Z")

</div>

hey @reddimohan, you need to run the below command to run the rasa as rest service:

> rasa run -m models --enable-api --cors “\*” --debug

🙂

---

<div class="post-metadata">

**Author:** ![reddimohan](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@reddimohan](https://forum.rasa.com/u/reddimohan)\
**Post date:** [June 19, 2019, 4:56pm UTC](https://forum.rasa.com/t/not-able-to-serve-rasa-as-a-rest-service/11733/3 "2019-06-19T16:56:03Z")

</div>

Thanks @JiteshGaikwad for the command.

now I see below output for the given command

> 2019-06-19 22:24:01 DEBUG rasa.cli.utils - Parameter ‘endpoints’ not set. Using default location ‘endpoints.yml’ instead. 2019-06-19 22:24:01 DEBUG rasa.cli.utils - Parameter ‘credentials’ not set. Using default location ‘credentials.yml’ instead. 2019-06-19 22:24:07 DEBUG rasa.model - Extracted model to ‘/tmp/tmpj3r55xhy’. 2019-06-19 22:24:07 DEBUG rasa.core.utils - Available web server routes: /conversations/\<conversation\_id\>/messages POST add\_message /conversations/\<conversation\_id\>/tracker/events POST append\_events /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 2019-06-19 22:24:07 INFO root - Starting Rasa Core server on [http://localhost:5005](http://localhost:5005) 2019-06-19 22:24:07 INFO root - Enabling coroutine debugging. Loop id 94528261449512. 2019-06-19 22:24:07 DEBUG rasa.model - Extracted model to ‘/tmp/tmplxiauxcc’. 2019-06-19 22:24:08 DEBUG rasa.model - Extracted model to ‘/tmp/tmpo5cxu21b’. /home/mo/anaconda3/envs/rasa36/lib/python3.6/site-packages/pykwalify/core.py:99: UnsafeLoaderWarning: The default ‘Loader’ for ‘load(stream)’ without further arguments can be unsafe. Use ‘load(stream, Loader=ruamel.yaml.Loader)’ explicitly if that is OK. Alternatively include the following in your code:
> 
> import warnings warnings.simplefilter(‘ignore’, ruamel.yaml.error.UnsafeLoaderWarning)
> 
> In most other cases you should consider using ‘safe\_load(stream)’ data = yaml.load(stream)

I see lot of API endpoints are available, can you send me the link where I can go through about each endpoint and understand. My goal is to create a simple interactive chat. And I also see it is expecting \<conversation\_id\>

Thanks, MO

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [June 20, 2019, 3:06am UTC](https://forum.rasa.com/t/not-able-to-serve-rasa-as-a-rest-service/11733/4 "2019-06-20T03:06:06Z")

</div>

hey @reddimohan you can check this

[Rasa\_CustomUI-v\_2.0/script.js at 525d9b4219a420f1947ec656123d981f0da6ffb3 · JiteshGaikwad/Rasa\_CustomUI-v\_2.0 · GitHub](https://github.com/JiteshGaikwad/Rasa_CustomUI-v_2.0/blob/525d9b4219a420f1947ec656123d981f0da6ffb3/static/js/script.js#L40)

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [June 20, 2019, 3:10am UTC](https://forum.rasa.com/t/not-able-to-serve-rasa-as-a-rest-service/11733/5 "2019-06-20T03:10:33Z")

</div>

hey @reddimohan you can read more about the webhook here:

[Custom Connectors](https://rasa.com/docs/rasa/user-guide/connectors/custom-connectors/)

---

<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 24, 2019, 12:14pm UTC](https://forum.rasa.com/t/not-able-to-serve-rasa-as-a-rest-service/11733/6 "2019-06-24T12:14:58Z")

</div>

@reddimohan here are the [HTTP API](https://rasa.com/docs/rasa/api/http-api/) docs

---

<div class="post-metadata">

**Author:** ![reddimohan](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@reddimohan](https://forum.rasa.com/u/reddimohan)\
**Post date:** [June 26, 2019, 6:50am UTC](https://forum.rasa.com/t/not-able-to-serve-rasa-as-a-rest-service/11733/7 "2019-06-26T06:50:52Z")

</div>

Thanks, @erohmensing, @JiteshGaikwad for the links.
