Basic: Flespi token is a key-string used to access the data on the flespi platform via API. As soon as you authorize at https://flespi.io the system will create a token for your session that will expire shortly after the session ends. To use a token in API calls you need to create a new one with correct expiration date and access control parameters. With the free account, one can create up to 1000 tokens.
Advanced: Token is a 64-byte randomly generated string. The token is automatically deleted at the moment specified in the expire field. The period of token’s lifetime can be prolongated via TTL. Timing is explained in this article. More details in platform/tokens API description.
In HTTP REST API token is used in “Authorization” header.
In MQTT API token is used as MQTT connection Username.
Tokens can be used to set up a complex access control system. You can give token access to only specified REST API calls or MQTT topics using ACL settings.
Also, check our How to create a flespi token video on YouTube.