Bot

Get an Agent

Returns one globally identified Agent owned by the authenticated bot.

get/bot{token}/getAgent

Path parameters

tokenstring required

Required bot token included in the URL path.

Query parameters

agent_idstring required

A signed decimal integer string within JavaScript's safe-integer range

Example:42

Bot method parameter.

Headers

authorizationstring

Optional bot token using the Bearer scheme. When supplied, it takes precedence over the token in the URL.

Response

BotGetAgentSuccess

oktrue required

Always true for a successful request.

Example response

{
  "result": {
    "bot": {
      "id": 284901,
      "is_bot": true,
      "username": "deploy_bot",
      "first_name": "Deploy Bot"
    }
  }
}

Changes