webhooks
Set a webhook signing secret
Changed onStore the signing secret or public key the provider issued for this endpoint, such as the whsec_ secret Stripe returns when you create a webhook endpoint. It replaces the existing secret. Pass previousSecretTtlSeconds to keep accepting the old secret for a while, for example while the provider rolls its secret.
put/api/v1/webhooks/endpoints/{endpointId}/secret
Request
- Base URLhttps://api.trigger.dev
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"secret": "whsec_5f2b...",
"previousSecretTtlSeconds": 3600
}Response
Successful request
Example response
{
"id": "wh_cm1a2b3c4d5e6f",
"previousSecretExpiresAt": "2026-10-21T12:00:00.000Z"
}Changes
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info
- info
endpoint added
- info