Hey @hirusi! Welcome to the forum
Assuming you created your token in the UI here:
…then you should be able to successfully make that call if you delete the semicolon so it looks something like this: curl --verbose -L -H "Authorization: Bearer jfs9df89asd" https://api.netlify.com/api/v1/sites/
Want to give that a shot and let us know if you continue to get that 401 error?
Once you get that working, this is a good guide to how to do what you want with our API: