Bots · Developer account

getBot

Get a bot's details

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.

Returns one bot (owner-scoped; non-owners and deleted bots get 404) plus its webhook rows and group memberships.

Request

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

Parameters

NameTypeRequiredRules
bot_idstringYes-

Response

{ ok: true, result: { bot: { id, name, username, avatar_url, description, created_at, is_suspended, suspended_at, suspension_reason }, webhooks: [ { env, url, is_disabled, last_error, last_error_at, pending_count, updated_at } ], groups: [ { group_id, privacy_mode, added_at } ] } }

Rate limit: none in code

Errors

StatusErrorWhen
400bot_id is requiredmissing bot_id
404bot not foundno such bot, not owned by caller, or deleted