Insights · Developer account

deleteBotWebhook

Delete a bot's webhook on behalf of the owner

This method authenticates with your developer account. The easiest way to call it is the dashboard, which signs the request for you. Direct calls need a dashboard session cookie.

Owner-scoped version of deleteWebhook: deletes the webhook row for one env.

Request

curl https://api.sprintelex.com/deleteBotWebhook \
  # authenticated with your dashboard session \
  -H "Content-Type: application/json" \
  -d '{"bot_id":"<bot-id>"}'

Parameters

NameTypeRequiredRules
bot_idstringYes-
envstringNo (default 'live')must be 'live' or 'test'
drop_pending_updatesbooleanNowhen true, updates not yet delivered via webhook are marked delivered_webhook=true

Response

{ ok: true, result: true }

Rate limit: none in code

Errors

StatusErrorWhen
400bot_id is requiredmissing bot_id
400env must be 'live' or 'test'env not live/test
404bot not foundno such bot, not owned by caller, or deleted