I looked at the API token generation process in Atlassian and it seems different now from when I looked at it last. You can create organization-api tokens now and that could be what you are encountering, as I don't think that api token is what we are looking for. We need an api token from
https://id.atlassian.com/manage-profile/security/api-tokens. Is that how you generated your token?