Rotate a webhook signing secret
POST
Mint a new signing secret for an endpoint and return it once; it is never returned again. The previous secret is retired after a 24-hour grace window (retired_grace_until), giving you time to move your receiver to the new one. An endpoint outside your workspace is a 404. Requires the coding:webhooks:write scope.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
endpoint_id*stringFormat
uuidcustomer_id?|nullDocument created, URL follows
application/json- response
retired_grace_until*stringFormat
date-timesecret*stringFormat
passwordversion*integercurl -X POST 'https://api.syndai.ai/api/v1/external/coding/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret'Example Response
{ "retired_grace_until": "2019-08-24T14:15:22Z", "secret": "pa$$word", "version": 0}