Appearance
Enable API (only with root permissions).
Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
Keys & Tokens
API tokens