User
Webhooks
Rotate an outbound webhook signing secret
Changed onCancels pending deliveries signed with the old key and atomically stores the encrypted replacement response. An identical Idempotency-Key retry within 24 hours returns the same secret without rotating again.
post/api/v1/user/webhooks/{id}/rotate
Request
- Base URLhttps://openmercantil.es
- AuthAPI key in cookie ob_sess
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Headers
X-CSRF-Tokenstring required
Fresh token returned by GET /api/v1/user/me for this authenticated session.
Idempotency-Keystring required
Required for account mutations that reveal a secret. Reuse the same key only for an identical payload. The encrypted response can be replayed for 24 hours; a changed payload or an expired key returns 409.
Response
Rotated, or the exact replacement signing secret replayed for the same key
Changes
- info
endpoint added
- info