Synq Docs
Management APIWebhooks

Rotate a webhook's signing secret

A new secret, in this response only. For 24 hours deliveries carry signatures by both, so the receiver can switch over. Needs `org.webhooks.edit`. Recorded as `webhook.secret_rotated`.

POST/v1/orgs/{org}/webhooks/{webhook}/rotate-secret

A new secret, in this response only. For 24 hours deliveries carry signatures by both, so the receiver can switch over. Needs org.webhooks.edit. Recorded as webhook.secret_rotated.

Authorization

bearer
AuthorizationBearer <token>

An org API key (sk_live_…, sk_test_…), or an access token from the Synq issuer (the synq brand, on the accounts host) for this API.

In: header

Path Parameters

org*string
webhook*string

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/orgs/string/webhooks/string/rotate-secret"
{  "id": "string",  "url": "string",  "events": [    "string"  ],  "description": "string",  "enabled": true,  "disabled_reason": "string",  "previous_secret_expires_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "secret": "string"}