People · Developer account

reportBot

Report a bot for abuse

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.

Reports a bot for abuse. Reasons limited to a fixed list. One pending report per user per bot. You cannot report your own bot. (A DB trigger auto-suspends a bot on 3 upheld reports in 30 days; the trigger lives in the migration, not in this file.)

Request

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

Parameters

NameTypeRequiredRules
bot_idstringYes-
reasonstringYesmust be one of: spam, scam, abuse, other
detailsstringNotruncated to 1000 characters

Response

{ ok: true, result: { reported: true } }

Rate limit: none in code

Errors

StatusErrorWhen
400bot_id is requiredmissing bot_id
400reason must be one of: spam, scam, abuse, otherreason not in the list
404bot not foundno such bot or deleted
400you cannot report your own botcaller owns the bot
409you already have a pending report for this botduplicate pending report
500could not submit reportDB insert failed