curl -H “Authorization: Bearer your_actual_Figma_token” https://api.figma.com/v1/me
Or
curl -H “Authorization: Bearer your_personal_access_token” https://api.figma.com/v1/files/your_file_key
Result in status":403,“err”:"Invalid token
Generated new tokens to test, same result.