SETSimple Easy Transactions
SET DocsAPI reference and complianceUpdated 2026-11-10
Browse: SET API (Platforms)

SET API (Platforms) · Events & webhooks

Rotate an endpoint's secret

POST/v1/webhook_endpoints/{id}/rotate_secret

Key scope: write

A new signing secret for this endpoint, shown once. The previous secret also signs its deliveries for 24 hours (previousSecretValidUntil).

Path parameters

id stringrequired
The webhook endpoint's id.

Headers

Idempotency-Key string
Optional. The same key and body run once; a replay answers with Idempotent-Replayed: true. Kept 24 hours.

Errors

  • 404 webhook_endpoint_unknown
  • 401 api_key_required
  • 401 api_key_invalid
  • 401 api_key_wrong_mode
  • 403 scope_missing
  • 429 rate_limited

All codes: Errors.