daan
By:
daan

Did the API v1 url change?

August 26, 2014 949 views

Having trouble connecting to the v1 API.

As far as I can tell (can't find any official info on it) it was:
https://api.digitalocean.com/[API_resource]/
and now it is:
https://api.digitalocean.com/v1/[API_resource]/
for old api and:
https://api.digitalocean.com/v2/[API_resource]/
for new api.

Am I right in assuming the v1 url has changed?

1 Answer

https://api.digitalocean.com/v1/ can be used to access APIv1 while https://api.digitalocean.com/v2/ can be used to access APIv2.

For the time being, https://api.digitalocean.com/ can still be used to acess APIv1, but at somepoint in the near future this will be deprecated. Using the versioned URL is highly recommended.

The documentation for APIv1 is now found here.

Have another answer? Share your knowledge.