How do I connect to rasa api webhook using my virtual machine?

Hi, so I have already trained and run the rasa model on my system, and it opens in localhost:5005. I have vital pbx in my oracle VM, and I need to connect to my localhost on my system. Can anyone help me with how to do this? Does anyone know if the IPv4 address shown at can be used to curl my API webhook from rasa?

You’ll need to open that port on your VM. I’m not familiar with vital pbx, but as long as the port is open and your VM has a public IP address then you will be able to connect to the Rasa REST API. Make sure it is enabled in your credentials.yml file.

say I have the ip , then two questions:

  1. how do i curl the rasa server api from the terminal of my local machine? I tried

    curl -XPOST -i localhost:5005/webhooks/rest/webhooks ‘{“message”:“hello”}’

but that didn’t work. It returns:

HTTP/1.1 404 Not Found

Connection: keep-alive

Keep-Alive: 5

Access-Control-Allow-Origin: *

Access-Control-Allow-Credentials: true

Content-Length: 54

Content-Type: text/plain; charset=utf-8

  1. can I curl it from the terminal of the VM/ another machine?

I have no idea of how IP addresses work, so please bear with my questions.

It should be:

if you are connecting remotely or


when pinging locally.

Note there is no “s” in the last part of the endpoint.

If that doesn’t work, please share a redacted version of your credentials file.

I used ngrok. :smile: thank you for your replies, sir