Skip to main content

Overview

Instead of polling for results, you can configure webhooks to receive automatic notifications when your flows complete. When you provide a callback configuration in your request, Edges will send a POST request to your specified URL with the results.
For action callbacks (outside of Flows), refer to the Managing Callbacks documentation in the main Edges docs.

Setting up callbacks

Include a callback object in your flow run request:
Always include an authentication header in your callback configuration to secure your webhook endpoint and verify that requests are coming from Edges.

Webhook payload

When a flow completes (or reaches milestones), Edges sends this payload:
Example payload:

Status values

The status field in the webhook payload can have the following values:

Handling webhooks

Here’s an example of how to handle flow webhook payloads in your application:

Best practices

Always use HTTPS for your webhook URL and include an authentication header in your callback configuration. Verify this header in your webhook handler to ensure requests are coming from Edges.
Your webhook endpoint should respond with a 2xx status code within a few seconds. If you need to do heavy processing, acknowledge the webhook first and process asynchronously.
Edges may retry failed webhook deliveries. Make your webhook handler idempotent by checking if you’ve already processed a given flow_run_uid.
Always check the status field and handle error cases. If status is FAILED, check the error field for details about what went wrong.
Webhook delivery is best-effort. For critical workflows, we recommend also polling the Get Flow Run endpoint as a fallback to ensure you don’t miss any results.