Inspecting request bodies
The Traffic Inspector automatically formats and syntax-highlights common content types including JSON, XML, HTML, and form data. This makes it easy to verify that webhook payloads, API requests, and form submissions contain the expected data.Filtering traffic
Use the search bar in the Traffic Inspector to filter requests by path, method, status code, or any other attribute. This helps you focus on the specific requests you’re debugging.Traffic inspection via the API
You can also access captured traffic programmatically through the Agent API. This is useful for building automated tests or integrating traffic inspection into your development workflow.How replays work
- Start your tunnel with
ngrok http <port> - Open Traffic Inspector in ngrok dashboard
- Trigger a request (or wait for a webhook delivery)
- Click on the request in Traffic Inspector
- Click Replay on any captured request to resend it to your local server
-
Use cases for request replays
- Webhook development: Replay webhook deliveries instead of waiting for the provider to retry.
- Bug reproduction: Capture a request that triggers a bug, fix your code, and replay to verify the fix.
- Load testing: Replay requests multiple times to observe how your application handles repeated traffic.