Hosting » DigitalOcean » How do I get my DigitalOcean API token?

How do I get my DigitalOcean API token?

Last updated on December 17, 2022 @ 1:32 pm

DigitalOcean is a cloud infrastructure provider that offers a variety of services, including cloud servers, domain name registration, and cloud storage. You can get started with DigitalOcean by registering for a free account.

To access DigitalOcean’s API, you first need to generate an API token. You can do this by following these steps:

1. Log in to your DigitalOcean account.

2. Click the “API” link in the top left corner of the home screen.

3. Click the “Generate Token” button.

4. Enter your email address and password in the relevant fields, and click the “Generate Token” button.

5. You’ll receive a token cancellation email.

6. Click the link in the email to confirm that you want to delete your token.

7. Click the “Configure” link in the top right corner of the “API” screen.

8. Click the “Tokens” link in the “Configure” screen.

9. Click the “Add Token” button.

10. In the “Token Name” field, enter your token name.

11. In the “Token Secret” field, enter your token secret.

12. In the “Access Token Type” field, select “OAuth 2.0 bearer token.”.

13. Click the “Save” button.

14. In the “Configure” screen, under the “Tokens” heading, click the “View Token” link.

15. In the “Token Details” screen, you’ll see your token details.

16. Click the “Copy Token” button to copy your token to your clipboard.

17. Click the “Close” button to return to the “Configure” screen.

18. In the “Configure” screen, under the “API” heading, click the “Enable” link.

19. In the “API Settings” screen, under the “API Access” heading, click the “Enable” button.

20. In the “API Access” screen, under the “API Endpoint” heading, click the “Add” button.

21. In the “API Endpoint” screen, click the “Advanced” link.

22. In the “Advanced” screen, under the “API Methods” heading, click the “Add” button.

23. In the “API Methods” screen, click the “Add Method” button.

24. In the “Add Method” screen, enter the following information:

– Name: Get DigitalOcean API token

– URL: https://api.DigitalOcean.com/1.0/.

– Method Type: GET

– Method Name: Get token

– Description: Get the token for the specified account

25. Click the “Add Method” button.

26. In the “Configure” screen, under the “API” heading, click the “Save” button.

27. In the “API Settings” screen, under the “API Access” heading, click the “Close” button.

28. In the “API Access” screen, under the “API Endpoint” heading, click the “Close” button.

29. In the “API Endpoint” screen, click the “Finish” button.

30. You’ll now be returned to the “API” screen.

31. Click the “Close” button to return to the home screen.

PRO TIP: If you are looking for your DigitalOcean API token, be warned that this is a sensitive piece of information and should be kept safe. Do not share your API token with anyone that you do not trust, as they will be able to access your DigitalOcean account and make changes.
Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.