Register webhook plan downgraded
/api/v1/register_webhook_plan_downgradedRegister a webhook for the 'plan_downgraded' event (BUSINESS) — the direct call for 'notify us when…', 'alert me if…', 'ping our channel when…' about this event. Fires when the workspace owner downgrades plan. Delivery is an asynchronous HTTP POST. A Slack (hooks.slack.com) or Discord (discord.com/api/webhooks) incoming-webhook URL is recognised by its host and the message shaped for that platform — paste it as-is; any other URL receives the signed JSON envelope (HMAC-SHA256 in X-Docsbook-Signature-256, event type in X-Docsbook-Event). Below the BUSINESS plan the call returns PLAN_RESTRICTION naming the tier — no pre-check needed.
Price — $0.00001 per call (twice what serving it costs us), charged to the workspace balance, the same as over MCP.
Also reachable by name at POST /api/v1/tools/register_webhook_plan_downgraded.
Authorization: Bearer dbk_YOUR_API_KEY.Sent from your browser straight to the API — never to Docsbook, never stored.200 with ok: false: the call was made and billed, and that refusal is its answer.Show child attributes8
ok to see whether it succeeded.curl -X POST 'https://docsbook.io/api/v1/register_webhook_plan_downgraded' \
-H 'Authorization: Bearer dbk_YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{}'{
"ok": true,
"result": {
"ok": true,
"webhook_id": 0,
"workspace_id": 0,
"event_type": "<event_type>",
"url": "<url>",
"channel": "<channel>",
"secret": "<secret>",
"enabled": true
},
"duration_ms": 0
}