Webhook Event Types
Every event you can subscribe a webhook to, grouped by scope.
Overview
When something changes in Canopy (a role is assigned, an identity is created, a node moves), an event fires. A webhook subscription lists the event types it wants, and Canopy delivers a signed HTTP POST to your endpoint for each matching change. Subscribe to a specific set, or use the wildcard "*" to receive every event in the subscription's scope (including ones added later).
Events come in two scopes
Canopy's data model is two-tiered, so events are too. Environment-scoped events carry an environment_id and cover authorization config (assignments, roles, permissions, and hierarchy nodes), delivered to env-scoped subscriptions. Account-scoped events span environments (identity lifecycle, membership, and sessions), delivered to account-scoped subscriptions. A subscription only receives events from its own scope.
Environment events
Fired by changes to an Environment's authorization configuration. Delivered to environment-scoped subscriptions.
Account events
Account-scoped events span environments, because identities live at the Account level. Delivered to account-scoped subscriptions.
Payloads & the audit log
Every event mirrors an audit-log entry
Webhook event types are the same actions Canopy records in its audit log: every delivery corresponds to an audit entry, so you can reconcile what you received against the authoritative trail and use the audit log to replay anything an endpoint missed. The live list of subscribable event types for a scope is also available from the API at GET …/webhooks/event-types, so your integration can validate against it programmatically.
Tell us how we can improve this guide.