FlowGuard webhooks
FlowGuard sends a webhook when a proxy goes offline or comes back, or when a proxy upgrade starts, succeeds, or fails. It also sends one when an automatic rollout pauses, and when someone adds, changes, or removes a server, rule, action, or IP list. Use them to page someone when a proxy stops reporting, to keep an audit trail of every change to your traffic rules, or to keep a copy of your configuration in another system without polling the API.
Deliveries are signed, retried, and logged the same way in every Chief Tools product. Read Receive webhooks first for verification, responses, retries, and duplicates. This page covers what is specific to FlowGuard.
Set up an endpoint
Add endpoints under Settings › Webhooks in FlowGuard, then send a test event from the endpoint's page. Deliveries come with the User-Agent FlowGuard-Webhooks/1.0.
To set up endpoints from code, use the webhooks API with a token that has the flowguard:webhooks:write scope:
Code
The response includes the endpoint's secret. Store it right away. FlowGuard only returns it when the endpoint is created and when you rotate its secret. Then send a test event to check your receiver. The same API lists event types, events, and deliveries with each attempt's request and response, and resends them.
Events go to the endpoints of the team the server, rule, action, or IP list belongs to.
Events
Each event's data.object is the resource the event is about, as the API returns it when the event happens: a Server, Rule, Action, IPList, or ProxyRelease. Some events add fields next to object in data.
Each event type below links to its page in the API reference, with the request headers and every field of the payload. The OpenAPI document also lists the events under webhooks, so you can generate types for your receiver from it.
Servers
| Type | Sent when |
|---|---|
server.created | A server is added. Its proxy has not reported in yet, so version and heartbeat_status are null. |
server.enrolled | A server's proxy reports in for the first time. For a fleet, its first instance does. Reinstalling the proxy with the same key does not send it again. |
server.updated | Someone changes a server's name or settings, such as its protocols, certificate paths, or whether FlowGuard may upgrade it. |
server.deleted | A server is removed. object is the server as it was right before. |
What the proxy reports itself, such as its version, its instances, and whether it loaded the latest configuration, changes without a server.updated event. Show the server when you need those.
Availability
| Type | Sent when | Extra data fields |
|---|---|---|
server.offline | A server's proxy has not reported in for 15 minutes. For a fleet, none of its instances has. | |
server.online | An offline server's proxy reports in again. | offline_since: when FlowGuard marked it offline, the time of its server.offline event |
Each outage sends server.offline once, and server.online ends it. A proxy that misses reports for less than 15 minutes sends neither.
Proxy upgrades
| Type | Sent when | Extra data fields |
|---|---|---|
server.upgrade_started | Someone upgrades a proxy, or the automatic rollout does. | |
server.upgrade_succeeded | The proxy reports the version it was upgraded to. | |
server.upgrade_failed | The proxy did not report that version within 10 minutes, or the server was deleted while the upgrade was running. | |
proxy_rollout.paused | The automatic rollout of a release paused for your team because too many upgrades to it failed. | failures: the failed upgrades since the rollout was last resumed |
The upgrade events carry the server, and object.upgrades.latest is the upgrade. Its source is manual or automatic. On a failed upgrade, failure is timeout when the proxy did not report the version in time, or cancelled when the server was deleted during the upgrade. In that case server.upgrade_failed comes right before server.deleted. Every server.upgrade_started is followed by server.upgrade_succeeded or server.upgrade_failed.
A proxy that reports the new version after its upgrade failed sends server.upgrade_succeeded too, so a failure is not always final. Fleets and FlowGuard in Caddy are upgraded by redeploying them, which sends no upgrade events.
For proxy_rollout.paused, object is the ProxyRelease whose rollout paused. Servers that already upgraded keep the new version. The rollout stays paused until someone resumes it in the team settings, which sends no event.
Rules
| Type | Sent when |
|---|---|
rule.created | A rule is added. |
rule.updated | A rule's name, action, conditions, server scope, or position changes. A disabled rule, and a rule whose action was deleted, has action_id set to null. |
rule.deleted | A rule is removed. object is the rule as it was right before. |
FlowGuard runs rules in order of position. Adding, moving, or removing one rule shifts the positions of other rules, and each rule whose position changes gets its own rule.updated event. Blocking an IP address from the request stream puts its rule at the top, which shifts the other rules down when it was not there yet.
Actions
| Type | Sent when |
|---|---|
action.created | An action is added. |
action.updated | An action's name or configuration changes. This changes what every rule that uses it does. |
action.deleted | An action is removed. object is the action as it was right before. |
Deleting an action leaves the rules that used it without an action, so they stop acting on requests. Each of those rules gets a rule.updated event after action.deleted.
FlowGuard adds a set of default actions when your team adds its first server, and an action, IP list, and rule the first time you block an IP address from the request stream. Each of those sends its .created event too.
IP lists
| Type | Sent when |
|---|---|
ip_list.created | A team IP list is added. |
ip_list.updated | A team IP list is renamed. |
ip_list.deleted | A team IP list is removed. object is the list as it was right before. |
| Type | Sent when | Extra data fields |
|---|---|---|
ip_list_entry.created | An entry is added to a team IP list, also by blocking an IP address from the request stream. | ip_list_id: the list the entry belongs to |
ip_list_entry.updated | An entry's address or comment changes. | ip_list_id |
ip_list_entry.deleted | An entry is removed. object is the entry as it was right before. | ip_list_id |
An import sends ip_list_entry.created for every entry it adds, up to 1,000 per request, and none for entries the list already had. Deleting a list sends only ip_list.deleted, not an event for each of its entries.
The global lists FlowGuard maintains, such as the cloud provider and abuse lists, send no events. They change often and belong to no team. Use List IP-list entries to read them.
Examples
A proxy went offline
Code
The full object has every field of the Server schema. The server's key never appears in webhooks.
An upgrade failed
Code
A rule was disabled
Code
The payload is the rule after the change. FlowGuard does not send the previous values, so keep your own copy if you need to show what changed.
Common integrations
- Paging. Subscribe to
server.offline,server.upgrade_failed, andproxy_rollout.paused. Close the page onserver.onlineandserver.upgrade_succeeded. - Change audit. Subscribe to the rule, action, and IP list events, and store each payload with its
timestamp. Every change made in the dashboard, through the API, or by an AI client over MCP sends the same events. - Configuration sync. Subscribe to every server, rule, action, IP list, and IP list entry event, and store the resource from
data.object. Use the list endpoints once to load what already exists, and again to catch up after your receiver was down for longer than the retries last.
Event types can be added later. Ignore types your receiver does not handle, and handle unknown values in extensible fields such as deployment and the upgrade's status, source, and failure without failing the delivery.
Events are kept for 30 days. For anything older, read the current state from the API.