Report this

What is the reason for this report?

Accessing the REST API from a droplet without access token

Posted on September 18, 2016

Hi all

While in general it is necessary to specify an access token to access the DigitalOcean REST API, I wanted to ask whether there is some way to access the API without an access token when the access is done from a droplet (similar to the Metadata API)?

I’m asking since I have some tools which run directly on a droplet and which access the DigitalOcean API and, if possible, I would like to avoid having to pass my access token to those tools.

Thanks in advance for any help.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You do need a token in order to access the API for your account. If that wasn’t the case, then anyone who gains access to one of your droplets could have access to the entire account. This is a pretty big security risk, and would make our service unusable for resellers and the like, so the token is always necessary no matter where you’re accessing the API from.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.