Skip to main content
POST
Rotate the secret of a webhook endpoint

Authorizations

x-api-key
string
header
required

API key for authentication. Get your API key from Settings → API Keys in your Spott dashboard.

Path Parameters

id
string
required
Minimum string length: 1
Pattern: ^(?!\.+$)

Body

application/json
overlapMs
integer
default:86400000

How long the current secret stays valid after the rotation, in milliseconds (whole seconds only, up to 7 days). 0 stops it immediately.

Required range: 0 <= x <= 604800000Must be a multiple of 1000

Response

Webhook endpoint secret rotated successfully. Returns the new secret.

secret
string
required

The new secret that signs the webhook messages. It is only returned here and on create, and cannot be read later.