Dev guideAPI Reference
Dev guideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback

Webhooks for Agent

How to set up a webhook listener for Optimizely Agent.

Optimizely Agent implements a webhook listener used to receive inbound Webhook requests from These webhooks enable PUSH-style notifications triggering immediate project configuration updates.

The webhook listener is configured on its own port (default: 8085), since it can be configured to select traffic from the internet.

To accept webhook requests Agent must be configured by mapping an Optimizely Feature Experimentation Project Id to a set of SDK keys along with the associated secret used for validating the inbound request. An example webhook configuration can be seen below, while the complete example configuration can be found in the provided config.yaml on GitHub.

## webhook service receives update notifications to your Optimizely Feature Experimentation project. Receipt of the webhook will
## trigger an immediate download of the datafile from the CDN
    ## HTTP listener port
    port: "8089"
    ## a map of Optimizely Feature Experimentation Projects to one or more SDK keys
       ## <project-id>: Optimizely Feature Experimentation project id as an integer
            ## sdkKeys: a list of SDKs linked to this project
                - <sdk-key-1>
                - <sdk-key-1>
            ## secret: webhook secret used the validate the notification
            secret: <secret-10000>
            ## skipSignatureCheck: override the signature check (not recommended for production)
            skipSignatureCheck: true