ParasendDocs
Sign in Start free

Roll an endpoint's signing secret

POST/v1/webhook_endpoints/{id}/roll_secret

Creates a new signing secret and returns the endpoint with it in secret — the only time it is shown. The previous secret stays valid for 24 hours (previous_secret_expires_at): during that window every request carries two v1 values in Parasend-Signature, t=<t>,v1=<hmac with new>,v1=<hmac with previous>, so the receiver can switch without a gap. Rolling again inside the window drops the older previous secret at once (only one previous secret is kept). Audit webhook_endpoint.secret_rolled.

Path parameters

  • idstringrequired

    The webhook endpoint's ID, starting whk_.

Returns

200 application/json. The endpoint, with the new secret in secret. See the WebhookEndpoint object.

Errors have one shape; see Errors for every code.