Bot API token

Bot access codes are deprecated. Use a Bot API token everywhere you used an access code: in scripts, plugins, devices and HTTP API calls. A token is a drop-in replacement, so it goes wherever the access code went.

Bot API tokens authenticate your bot with scripts, plugins and devices. They work like the Security code for groups, but control access to your personal bot.

Creating a Bot API token

  1. Log in to your account at https://mysmartbots.com.

  2. In the menu on the left, click 'Your personal bots' and then 'manage bot'.

  3. Click Security > Access code & API tokens.

  4. Click New token, enter a Name and choose an Expiration, or Never expires.

  5. To stop the old access code working, tick Revoke legacy access code (recommended).

  6. Click Create token and copy the token straight away. It is only shown once.

Tokens start with bct_. You can Rotate, Expire or Delete a token on the same page at any time.


Legacy bot access code

Bot access codes still work for now, but they are deprecated. Replace them with Bot API tokens.

  1. Log in to your account at https://mysmartbots.com.

  2. In the menu on the left, click 'Personal bots' and then 'manage' next to the bot.


  3. Set or change the bot access code: