Webhook endpoints

Create a new secret

Replace the signing secret without downtime.

POST/v1/webhook-endpoints/{id}/rotate-secret

Both secrets sign messages for 24 hours, so you have time to update your server.

Authentication

A signed-in session: the cookie from Log in. Changes also need the X-CSRF-Token header.

Path parameters

idstringrequired

The endpoint's ID.

Response

200 OK

secretstring

The new signing secret.

previous_secret_expires_atstring

When the old one stops working.

noticestring

A reminder to update your server.

Errors

StatusCodeWhat to do
401unauthenticatedLog in first, or log in again.
403csrf_failedSend the csrf_token as X-CSRF-Token.
404not_foundCheck the ID. It may belong to another workspace.