Set your webhook
Saves the URL we post events to, for your key’s mode. An empty URL stops deliveries.
Send your secret key: Authorization: Bearer sk_live_…. See authentication.
Answers the same shape as GET /webhook. The same checks as the dashboard: https only, no username or password in the URL, and it must resolve to a public address. A failure is 422 bad_url with field: "url". An empty url stops deliveries. No url field at all is 422 invalid_request. Saving replaces whatever the dashboard set for that mode, and is logged against the key. 60 saves an hour per key.