Authentication – TOKEN_AUTH πŸ”’

πŸ“˜

Authentication – TOKEN_AUTH

Each bot is given a unique authentication token. You can obtain the token through the "Get token" overflow menu from the API/bot chat. Obtaining a new token will cause any existing token to immediately expire.

πŸ‘

Remember β€” a happy bot is an authenticated bot!

Sending Requests

Requests to nandbox Bot API are sent as JSON objects over a WebSocket session. In order to connect to the server, you need to obtain an authentication token first.

The Bot Server WebSocket URL format is: wss://<nandboxBotServer>:<port>/nandbox/api/

The first request over the WebSocket method must be an authentication request.

An example of an authentication request is the following ➑️

After the bot is successfully authenticated, it can send further responses.

Language