The whoami endpoint is listed on your public facing API page here: Hugging Face Hub Endpoints
However I cannot curl this endpoint. It always returns unauthorized.
There’s a been a stackoverflow question hanging around that matches my issue exactly, so I’ll link it here:
Is this endpoint intended to be usable? If so, how?
My intent was to check token validity before trying to use them to run models, so that I could quickly identify bad tokens.
Thanks for any help.