How it works
When you create a webhook, you provide three things:- A URL where Leaf sends HTTP POST requests.
- A secret key Leaf uses to sign each request (HMAC SHA-256).
- A list of event types you want to receive.
Recommended events
At a minimum, set up webhooks for:- Field events (
fieldCreated,fieldBoundaryCreated,fieldBoundaryUpdated) to track boundary changes. - Machine file events (
providerFileProcessingFinished,uploadedFileProcessingFinished) to know when new data is ready. - Operation events (
operationCreated,operationProcessingFinished) to react when field operations are available. - Credential events (
credentialsUnauthenticated,credentialsLimitedPermission) to catch broken provider connections early.
Retry policy
| Attempt | Delay after failure |
|---|---|
| 1 | 1 minute |
| 2 | 30 minutes |
| 3 | 60 minutes |
| 4 | 240 minutes |
GET /webhooks/failed-calls.
Security
Every request includes anX-Leaf-Signature header containing a base64-encoded HMAC SHA-256 digest of the request body, signed with your secret. Always verify this signature before processing the payload. See Authentication for implementation details.
Leaf runs on cloud infrastructure and does not have a fixed set of IP addresses for webhook delivery. If your network requires allow-listing, consider placing a reverse proxy or load balancer in a DMZ to receive webhooks and forward them internally.
Common use cases
- React to new field operations: Subscribe to
operationProcessingFinishedto trigger downstream workflows (yield analysis, report generation) as soon as data is ready. - Monitor provider credentials: Subscribe to
credentialsUnauthenticatedandcredentialsLimitedPermissionto alert your support team when a grower’s connection breaks. - Track boundary changes: Subscribe to
fieldBoundaryCreatedandfieldBoundaryUpdatedto keep your system in sync with provider-side field edits. - Automate satellite ingestion: Subscribe to
newSatelliteImageto process NDVI or NDRE imagery as soon as each satellite pass is clipped.
What to do next
- Events reference for all event types and payloads.
- Authentication for signature verification code examples.
- Alerts API Reference for endpoint details.

