For those who are having trouble finding it, you get to your Profile page on Home Assistant by clicking on your username in the bottom left panel of the HA page (under Notifications)
Then click on Create Token all the way at the bottom:
Give it a meaningful name and then copy it for use in your application.
Make sure you save it because it won’t be displayed again.