Better to do whoami().get("email") since this field is not guaranteed to be returned. It depends on token's permission which can be restricted in case of finegrained token or OAuth token.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
Better to do
whoami().get("email")
since this field is not guaranteed to be returned. It depends on token's permission which can be restricted in case of finegrained token or OAuth token.First reported on HF Forum.