Webhooks / TypeScript SDK
Rotate webhook secret
Rotate an endpoint signing secret. Returns the new secret once while the previous secret remains valid for 24 hours.
pipeline.rotateWebhookSecretDeterministic operationParameters
workspaceIdOptional · string- Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
endpointIdRequired · string- See the input schema for this field.
await pipeline.rotateWebhookSecret({
"endpointId": "00000000-0000-4000-8000-000000000000"
})Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"description": "Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client."
},
"endpointId": {
"type": "string",
"format": "uuid"
}
},
"required": [
"endpointId"
]
}