DigitalOcean makes it very simple for you to deploy infrastructure on their cloud. One simply signs into their console, navigate to the bottom right and click on "API". From there create a new personal access token per screen below.
Et voila. That's all you need.