I can't get the token I created to work

For example, it might appear if you misconfigured fine-grained tokens, but the causes of a 401 error are diverse

Anyway, testing the token with whoami-v2 makes it easier to isolate the problem.