Bot

Returns one globally identified Agent owned by the authenticated bot.

get/bot/getAgent

Request

  • Base URL
    https://api.inline.chat
  • Auth
    none required

Query parameters

agent_idstring required

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

Example:42

Bot method parameter.

Headers

authorizationstring required

Required bot token using the Bearer scheme.

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