webhooks
Generate a webhook signing secret
Changed onGenerate a new signing secret for the endpoint, store it, and return it once. Use this for providers where you choose the secret, such as GitHub. It replaces the existing secret. Pass previousSecretTtlSeconds to keep accepting the old secret while you update the provider; without it, deliveries signed with the old secret fail verification straight away. Endpoints whose source verifies with a public key refuse this; set the provider's key with the set secret endpoint instead.
post/api/v1/webhooks/endpoints/{endpointId}/rotate-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
{
"previousSecretTtlSeconds": 3600
}Response
Successful request
Example response
{
"id": "wh_cm1a2b3c4d5e6f",
"secret": "whsec_5f2b...",
"previousSecretExpiresAt": "2026-10-21T12:00:00.000Z"
}Changes
- info
added optional request body
- info
added the optional property
to the response with the status
- info
- info
endpoint added
- info