Skip to content
Dashboard
Theme
Theme

Rotate the signing secret

POST /v1/webhook_endpoints/{endpoint}/rotate_secret: Rotate the signing secret.

View Markdown

24 h dual signing.

POST /v1/webhook_endpoints/{endpoint}/rotate_secret

Scope
webhooks:write
Auth
Secret key (sk_…)
Since
1.0
  • endpoint string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • Idempotency-Key string

    Honoured for 24 h; a replay returns the original response.

    min length 1 · max length 255

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/webhook_endpoints/whep_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/rotate_secret" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"
Response 200
{
"endpoint": {
"format": "native",
"id": "whep_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "webhook_endpoint",
"url": "https://app.acme.com/callback",
"events": [
"user.signed_in"
],
"version": "1.0",
"enabled": true,
"created_at": "2026-01-15T09:30:00Z"
},
"secret": "sk_test_example",
"previous_secret_expires_at": "2026-01-15T09:30:00Z"
}