Learn how to receive server events in your local development environment.
Routing server URL payloads to a public reverse proxy, which tunnels to our local development server.
localhost
is an alias for the IP address 127.0.0.1
. This address is called the “loopback”
address and forwards the network request within the machine itself.Start Our API Locally
Start Ngrok Agent
ngrok
command to start the ngrok agent on our
machine. This will establish a connection from your local machine to ngrok’s servers.Copy Ngrok Forwarding URL
Trigger Call Events
8080
, you should be able to access it at http://localhost:8080
in your browser.
Install Ngrok Agent CLI
ngrok
command
available in our terminal.Start Ngrok Agent
ngrok http 8080
, this will create the tunnel with Ngrok’s servers.
8080
with the port your server is running on.Terminal after running the 'ngrok' command forwarding to localhost:8080 — the 'Forwarding' URL is what we want.
ngrok
command. If you’d like this URL to be the
same every Ngrok session, look into static domains on
Ngrok.POST
requests, & can log payloads to our terminal.
Logging call events routed to our local environment.
ngrok http {your_port}
commandPOST
endpoint/callbacks/vapi
)