Sample - Slack Web API
GET/bots.info

Get bot information

Retrieves information about a bot user. Omit bot to use the applicable default bot context, or provide a bot user identifier to retrieve a specific bot.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
tokenstringrequired
Authentication token for the request; the required scope is `users:read`.
botstringoptional
Bot user identifier for the bot whose information to retrieve.

2 status codes
200Returns `ok` set to true and a `bot` object containing the bot's `id`, deletion state, `name`, update timestamp, `app_id`, and `icons`.
botobjectrequired
okbooleanrequired
Allowed:true
defaultReturned when no bot can be found or authentication, authorization, or request validation fails; the response contains `ok` set to false and an `error` value.
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
Allowed:bot_not_foundnot_authedinvalid_authaccount_inactivetoken_revokedno_permissionorg_login_requiredinvalid_arg_nameinvalid_array_arginvalid_charsetinvalid_form_datainvalid_post_type
okbooleanrequired
Allowed:false

Error handling

token must be a valid authentication token with the users:read scope. When supplied, bot must identify an existing bot user.