In order to use Digital Ocean’s API, you need an auth token from your DO account. So you can get that from your DO account under API settings or something (you might have to create one).
But yeah, once you set that env var, it should work for you! (Assuming your domain’s nameservers are at DigitalOcean.)