Skip to content

Roll the endpoint's signing secret

POST /webhook-endpoints/{id}/roll-secret

Both secrets sign every delivery for the next 24 hours, and the endpoint takes no other roll until they end.

Scope: webhooks:manage. The key’s connection must hold it; see the reference’s introduction.

Replace the CAPITALS, and set PASSKAAR_KEY to a key from the portal.

Terminal window
curl -X POST "https://api.passkaar.com/integrations/v1/webhook-endpoints/ENDPOINT_ID/roll-secret" \
-H "Authorization: Bearer $PASSKAAR_KEY" \
-H "Idempotency-Key: $(uuidgen)"
Name In Type Required What it is
id path string (uuid) yes
Idempotency-Key header string Any 1–255 visible ASCII characters, a UUID by preference. A retry with the same key within 24 hours answers the first result. reference is what guards a resend after that.

The new secret, shown this once.

Field Type Required What it is
secret string yes Shown once. Store it on your server.
previous_expires_at string (date-time) yes Until then each delivery carries both signatures.

Every error is a Problem Details answer with a stable code.

Status Code
400 invalid_request
401 unauthorized
404 not_found
409 request_in_progress
409 previous_secret_active
422 idempotency_key_reused
429 rate_limited
500 internal_error
503 unavailable