Register webhooks to receive real-time notifications of key events, such as all policy data becoming available after an end-user submits on your Canopy Connect widget.
To register a webhook, specify a web endpoint and select the event types you wish to subscribe to. Canopy Connect's infrastructure will send POST requests to the web endpoint you specify. You can register webhooks from the Settings page on the Canopy Connect dashboard or using the Webhooks API.
Each webhook request represents an event occurring on a specific data Pull. You can use the returned
pull_id to fetch the complete information for the data Pull using the GET /pulls/:pullId endpoint.
There are 5 event types you can subscribe to:
|AUTH_STATUS||This event is triggered when a Pull transitions to a new authentication state.|
|POLICY_AVAILABLE||This event is triggered when the policy data for an insurance policy becomes available.|
|POLICIES_AVAILABLE||This event triggers once per Pull, when policy data for all insurance policies is available. Does not include documents.|
|COMPLETE||This event occurs once per Pull, once all information (including documents) is available.|
|ERROR||This event is triggered when a Pull encounters an error while running.|