Introduction
Modern integrations are event-driven. Whether you’re syncing documents to an ERP, triggering workflows in a third-party system, or building a custom compliance layer, webhooks are often the backbone of real-time communication. Alongside the Circularo API, webhook events allow your application to instantly react to document lifecycle changes – such as creation, signing, or approval – without polling the system.
But during development, receiving webhook callbacks can be challenging when your application runs locally behind a firewall. This guide shows you how to use Ngrok to securely expose your local development environment to the internet and test Circularo webhook integrations without deploying to a live server.
You will learn how to:
- Create a secure tunnel to your local application
- Register a webhook endpoint in Circularo
- Inspect and debug webhook payloads in real time
- Retrieve related documents using the Circularo API
Using Ngrok allows you to test and develop Circularo webhook integrations locally, without the need to immediately deploy your application to a live server. Learn how to securely expose your local environment, register the generated forwarding URL with the Circularo API, and use Ngrok’s web interface to inspect webhook callbacks in real time.
Installation and setup
- Get the tool from the official website: https://ngrok.com/
- Unpack into a new directory
- Add an auth token (you will get it on the ngrok webpage)
ngrok config add-authtoken <auth_token>
- Execute the following command in your terminal, replacing <port> with the port number your local application is running on
grok http <port>
- Once running, Ngrok will display a status screen. Note the Forwarding URL (e.g., https://159….ngrok-free.app), which maps to your localhost. You will use this URL to register the webhook

Registering the webhook
- To receive notifications, you must register the Ngrok URL under Webhooks with Circularo
- This requires a global or team admin account
- The webhook can be registered under Administration -> Webhooks

- Paste in the Ngrok Forwarding URL, leaving the HMAC Secret empty
Monitoring and Inspecting Events
Ngrok provides a web interface to inspect incoming requests in real-time, which is useful for debugging and understanding the data structure.
Open http://127.0.0.1:4040 in your web browser to access the interface

When an event occurs in Circularo (e.g., a document is created), a request will appear in the Ngrok interface. You can view the full JSON payload, headers, and response.

Expected Data Format
The webhook callback is provided in JSON in the format below:
{
"documentId": "4816b163-8957-41d5-b7c9-7ce3b2ef11be",
"event": "documentCreated",
"actor": "adam.smith@circularo.com",
"timestamp": "2026-01-29T13:51:22.077Z"
}
The list of all possible webhook events can be found in Webhooks – Documents events article.
Retrieving documents
To retrieve the document that triggered the webhook event, you need to utilize the Circularo API.
Once you successfully receive the webhook callback in Ngrok:
- Extract the documentId from the payload shown above.
- Call the Circularo API (GET /documents/:documentId) to retrieve metadata
- Download the File using the file hash found in the metadata (GET /files/loadFile/hash/:hash).
See Circularo API documentation for more information.
Next steps & developer resources
You now have a fully working local webhook testing setup – a critical foundation for building reliable integrations. From here, you can:
- Implement event validation and signature verification
- Build automated processing pipelines
- Sync documents to external systems (ERP, CRM, archiving tools)
- Trigger downstream workflows based on document lifecycle events
To continue building, explore the following developer resources:
- Circularo for Developers: https://www.circularo.com/for-developers/
- API Documentation: https://developers.circularo.com
- Full API Reference: https://circularo.com/api







