flagsmith · AsyncAPI Specification
Flagsmith Webhook Events
Version 1.0
Flagsmith provides two types of webhooks for receiving event notifications. Environment webhooks automatically send flag evaluations for identified users whenever an identity's flags are evaluated via the Get Identity Flags endpoint. Organisation webhooks send audit log events whenever changes are made to feature flags, environments, or other resources across the organisation. Both webhook types support HMAC-SHA256 signature verification using a configurable secret.
Channels
/environment-webhook
Receive flag evaluation events for identified users
Environment webhooks receive flag evaluation data for identified users. Every time an identity's flags are evaluated via the Get Identity Flags endpoint, Flagsmith sends the full set of flag evaluations, traits, and segments for that user to the configured webhook URL.
/organisation-webhook
Receive audit log events for organisation changes
Organisation webhooks receive audit log events when changes are made to resources across the organisation. This includes feature flag changes, environment updates, segment modifications, and other administrative actions performed via the dashboard or Admin API.
Messages
EnvironmentWebhookEvent
Environment Webhook Event
Flag evaluation data sent when an identity's flags are evaluated
OrganisationWebhookEvent
Organisation Webhook Event
Audit log event sent when changes occur within the organisation
Servers
https
webhookReceiver
{webhookUrl}
Your webhook receiver endpoint. Flagsmith sends POST requests to this URL when events occur. The URL is configured per environment or per organisation in the Flagsmith dashboard or via the Admin API.