Documentation Index
Fetch the complete documentation index at: https://growthbook-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Global SDK Webhooks are just like SDK Webhooks, but configured via environment variables instead of the GrowthBook UI.
When any SDK Connection payloads changes in any organization, all of your Global SDK Webhooks will be triggered.
Setup
Define aWEBHOOKS environment variable as a JSON string of an array of global webhook objects.
The only required field for a global webhook is url. Here’s a minimal example:
signingKey(string) - Will be used to add a signature header that enables you to verify the webhook originmethod(string) - One ofGET,PUT,POST,PURGE,PATCH, orDELETE. Defaults toPOSTif omittedheaders(object) - Additional headers to add to the webhook request. Useful for adding auth headers for example. Default{}.payloadFormat(string) - How to format the body (ignored when method = “GET”). One ofstandard,standard-no-payload,sdkPayload,edgeConfigornone. Defaults tostandard. Read more about the different formats in the SDK Webhooks Payload Format docs.payloadKey(string) - Only used when payloadFormat is set toedgeConfig. The key in Vercel Edge Config you want to update.
sendPayload(boolean) - Whether or not to include the full SDK Payload in the body.truemaps topayloadFormat = standard; false maps topayloadFormat = standard-no-payload.
Verify Signatures
If you define asigningKey, you can use it to verify that webhooks are coming from GrowthBook.
See: SDK Webhooks - Verify Signatures
Errors and Retries
Unlike normal SDK Webhooks, Global SDK Webhooks are NOT retried on error. On failure, they will output container logs as well as save them to the Mongosdkwebhooklogs collection.
