Skip to main content
POST
Replaces the hook’s signing secret with a new random one and returns it. This response is the only place the new secret appears: hook reads carry signed, never the secret. Nothing goes on-chain.
The previous secret stops at once, with no overlap. Every attempt sent after this call is signed with the new secret, including retries of deliveries queued before it. A receiver that rejects a signature with a 4xx other than 408, 425 or 429 fails that delivery for good. Switch the receiver to the new secret right away, or have it answer a retried status such as 503 while it switches.
Create Hook issues a secret to every hook it creates, but only an inform action sends deliveries, so the secret is used only there. A hook whose signed reads false holds no secret, and its deliveries carry no x-webhook-signature. Rotating issues it one, and every attempt from then on is signed. Signed deliveries describes how the signature is computed. The request takes no body.

Path Parameters

string
required
The market’s record ID, as id on List Markets, not its contract address. See Market IDs.
string
required
Hook ID.

Response Fields

object

Error Codes