Skip to content

Replace an endpoint’s secret

POST
/v1/admin/webhooks/{id}/rotate-secret
curl --request POST \
--url https://api.sealcord.com/v1/admin/webhooks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rotate-secret \
--header 'Authorization: Bearer <token>'

Give an endpoint a new secret, shown only once; the old one signs for 24 hours more.

id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/

Missing or invalid API key.

Needs scope webhooks:write.