# Getting Rest API URL and Request Params for Rasa x agent in a server

**URL:** <https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [March 26, 2020, 7:20am UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586 "2020-03-26T07:20:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![senthurRam](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@senthurRam](https://forum.rasa.com/u/senthurRam)\
**Post date:** [March 26, 2020, 7:20am UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/1 "2020-03-26T07:20:41Z")

</div>

I have installed Rasa X on a VPS(Virtual Private Server) using one line deploy script by following the documentation [One-Line Deploy Script](https://rasa.com/docs/rasa-x/installation-and-setup/one-line-deploy-script/) using the command `curl -s get-rasa-x.rasa.com | sudo bash`.

Now I want to get the Rest API URL and request format for the deployed agent to test in a mobile app.

Thank in advance.

---

<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:** [March 26, 2020, 4:55pm UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/2 "2020-03-26T16:55:07Z")

</div>

Hi @senthurRam, welcome to the forum!

Not sure I understand your question completely, but the REST API is available at `<host>/api`. For a full API specification please check the docs on the Rasa X [HTTP API](https://rasa.com/docs/rasa-x/api/rasa-x-http-api/) .

Let me know if that helps!

---

<div class="post-metadata">

**Author:** ![senthurRam](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@senthurRam](https://forum.rasa.com/u/senthurRam)\
**Post date:** [March 26, 2020, 4:58pm UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/3 "2020-03-26T16:58:49Z")

</div>

Hi @ricwo thanks for the reply but I need the chat API to send the text and get the response from the chat agent in rasa x

---

<div class="post-metadata">

**Author:** ![FelixKing](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@FelixKing](https://forum.rasa.com/u/FelixKing)\
**Post date:** [March 26, 2020, 9:57pm UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/4 "2020-03-26T21:57:06Z")

</div>

Bump on this, installed with one-line curl, use to be able to sort it out with Rasa, but with Rasa X no idea how to get rest working. Any ideas???

---

<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:** [March 27, 2020, 9:32am UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/5 "2020-03-27T09:32:45Z")

</div>

@senthurRam, @FelixKing I assume you’re talking about the REST input channel? This section in the docs on the [One-Line Deploy Script](https://rasa.com/docs/rasa-x/installation-and-setup/one-line-deploy-script/#customizing-the-script) describes to do that - you can run the script with

```bash
export ADDITIONAL_CHANNEL_CREDENTIALS="rest=''"
curl -s get-rasa-x.rasa.com | sudo -E bash

```

I hope that helps!

---

<div class="post-metadata">

**Author:** ![senthurRam](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@senthurRam](https://forum.rasa.com/u/senthurRam)\
**Post date:** [March 27, 2020, 9:37am UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/6 "2020-03-27T09:37:29Z")

</div>

@ricwo I have added the ADDITIONAL\_CHANNEL\_CREDENTIALS in environment variable as stated above and then executed the one line deploy script but still I’m not able to access the messaging Rest API

[http://host/webhooks/rest/webhook](http://host/webhooks/rest/webhook)

It show error as Error: Requested URL /webhooks/rest/webhook not found

---

<div class="post-metadata">

**Author:** ![FelixKing](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@FelixKing](https://forum.rasa.com/u/FelixKing)\
**Post date:** [March 28, 2020, 1:27am UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/7 "2020-03-28T01:27:51Z")

</div>

have you tried localhost/core/webhooks/rest/webhook?

I found another thread where they were using /core before webhooks and they got it to work, let me know if that works!

---

<div class="post-metadata">

**Author:** ![senthurRam](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@senthurRam](https://forum.rasa.com/u/senthurRam)\
**Post date:** [March 28, 2020, 5:14am UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/8 "2020-03-28T05:14:20Z")

</div>

@FelixKing I have tried adding /core before webbhooks, but still it shows as Error: Requested URL /webhooks/rest/webhook not found.

---

<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:** [March 28, 2020, 11:35am UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/9 "2020-03-28T11:35:40Z")

</div>

Can you share a full stacktrace of the error?

---

<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:** [March 28, 2020, 1:50pm UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/11 "2020-03-28T13:50:46Z")

</div>

Did you run the bash command with the `-E` flag, i.e. `curl -s get-rasa-x.rasa.com | sudo -E bash`?

---

<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:** [March 28, 2020, 2:02pm UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/12 "2020-03-28T14:02:42Z")

</div>

I just gave it a try and the REST input channel works with the method mentioned earlier:

```bash
export ADDITIONAL_CHANNEL_CREDENTIALS="rest=''"
curl -s get-rasa-x.rasa.com | sudo -E bash

```

note the `-E` in the bash command. You can then access it at `<IP>/webhooks/rest/webhook`. I hope that helps!

---

<div class="post-metadata">

**Author:** ![FelixKing](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@FelixKing](https://forum.rasa.com/u/FelixKing)\
**Post date:** [March 29, 2020, 9:35pm UTC](https://forum.rasa.com/t/getting-rest-api-url-and-request-params-for-rasa-x-agent-in-a-server/26586/13 "2020-03-29T21:35:00Z")

</div>

I attempted this on my current install and I received the same results as prior, and that @senthurRam Error: ‘’ not found

So I went and spun up another VPS ran both of the steps, expor & curl and it looks like its working. If you visit the url of /webhooks/rest/webhook it will toss up another error, and its working! I can send a curl command and get a response, and it also shows up in Rasa X, which a REST method.

@senthurRam Try to reinstall, I have a git connected so it wasn’t too difficult, once I did a fresh install, connected git, trained, I was able to send this command from terminal and get a proper response

curl -d ‘{“sender”: “Rasa”, “message”: “Hi”}’ [http://159.89.163.88:5005/webhooks/rest/webhook](http://159.89.163.88:5005/webhooks/rest/webhook)

curl --request POST   
–url [http://IPADDRESS/webhooks/rest/webhook](http://IPADDRESS/webhooks/rest/webhook)   
–header ‘content-type: application/json’   
–data ‘{ “message”: “Hello” }’

and received the response

[{“recipient\_id”:“default”,“text”:“Hey! How are you?”,“buttons”:[{“payload”:“great”,“title”:“great”
