Bots · Developer account

deleteBot

Delete a bot

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.

Soft-deletes the bot (row kept 30 days per code comment). Everything stops immediately: all tokens revoked at once, all webhook rows deleted (no more deliveries or retries).

Request

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

Parameters

NameTypeRequiredRules
bot_idstringYes-
confirmbooleanYesmust be exactly true, otherwise the call is rejected

Response

{ ok: true, result: { deleted: true } }

Rate limit: none in code

Errors

StatusErrorWhen
400bot_id is requiredmissing bot_id
400confirm must be true to delete a botconfirm is not exactly true
404bot not foundno such bot, not owned by caller, or already deleted
500could not delete botsoft-delete update failed