Try the API (Swagger)

Swagger UI is a tool that renders OpenAPI specifications. We’ve integrated Swagger UI on this page for its “Try it out” functionality, which lets you securely pass your DigitalOcean API key to this page and make API requests directly from the documentation.

Each method on this page has a Try it now button. To use this feature, open up one of the API methods, click the Try it now button and then enter your API key when prompted. Once authenticated, you can optionally update any of the query string parameters for the call, and then click the Execute button below the list of parameters. The page makes the API request and displays the returned information on the page.

You can log out from the page at any time by clicking the lock icon in upper-right corner of any method.