Optionalsecret: null | stringOptionaltolerance: numberValidates whether or not the webhook payload was sent by OpenAI.
An error will be raised if the webhook payload was not sent by OpenAI.
The webhook payload
The webhook headers
Optionalsecret: null | stringThe webhook secret (optional, will use client secret if not provided)
Optionaltolerance: numberMaximum age of the webhook in seconds (default: 300 = 5 minutes)
Validates that the given payload was sent by OpenAI and parses the payload.