Insufficient scope when trying to get image manifest

I’m trying to get a image manifest using the registry api, making a request like bellow:

curl -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -H "Authorization: Bearer <token>"

I get the token using this URL:

But I’m receiving a 401 - Unauthorization as response.

What is the correct scope for this endpoint? or there is any other way that I can get the same info as docker inspect ubuntu.

Is this resolved? Having the same issue