• Blog
  • Docs
  • Careers
  • Get Support
  • Contact Sales
DigitalOcean
  • Featured AI Products

    Compute

    Build, deploy, and scale cloud compute resources

    Containers and Images

    Safely store and manage containers and backups

    Managed Databases

    Fully managed resources running popular database engines

    Management and Dev Tools

    Control infrastructure and gather insights

    Networking

    Secure and control traffic to apps

    Security

    Help protect your account and resources with these security features

    Storage

    Store and access any amount of data reliably in the cloud

    Browse all products

  • AI/ML

    CMS

    Data and IoT

    Developer Tools

    Gaming and Media

    Hosting

    Security and Networking

    Startups and SMBs

    Web and App Platforms

    See all solutions

  • Community

    Documentation

    Developer Tools

    Get Involved

    Utilities and Help

  • Become a Partner

    Marketplace

  • Pricing
  • Log in
  • Sign up
  • Log in
  • Sign up

Company

  • About
  • Leadership
  • Blog
  • Careers
  • Customers
  • Partners
  • Referral Program
  • Affiliate Program
  • Press
  • Legal
  • Privacy Policy
  • Security
  • Investor Relations

Products

  • Knowledge Bases
  • GPU Droplets
  • Bare Metal GPUs
  • Inference Engine
  • Data & Learning
  • Evaluations
  • Model Library
  • Droplets
  • Kubernetes
  • Functions
  • App Platform
  • Load Balancers
  • Managed Databases
  • Spaces
  • Block Storage
  • Network File Storage
  • API
  • Uptime
  • Cloud Security Posture Management (CSPM)
  • Identity and Access Management (IAM)
  • Cloudways
  • View all Products

Resources

  • Community Tutorials
  • Community Q&A
  • CSS-Tricks
  • Write for DOnations
  • Currents Research
  • DigitalOcean Startups
  • Wavemakers Program
  • Compass Council
  • Open Source
  • Newsletter Signup
  • Marketplace
  • Pricing
  • Pricing Calculator
  • Documentation
  • Release Notes
  • Code of Conduct
  • Shop Swag

Solutions

  • AI Training GPU
  • GPU Inference
  • VPS Hosting
  • Website Hosting
  • VPN
  • Docker Hosting
  • Node.js Hosting
  • Web Mobile Apps
  • WordPress Hosting
  • Virtual Machines
  • View all Solutions

Contact

  • Support
  • Sales
  • Report Abuse
  • System Status
  • Share your ideas

Company

  • About
  • Leadership
  • Blog
  • Careers
  • Customers
  • Partners
  • Referral Program
  • Affiliate Program
  • Press
  • Legal
  • Privacy Policy
  • Security
  • Investor Relations

Products

  • Knowledge Bases
  • GPU Droplets
  • Bare Metal GPUs
  • Inference Engine
  • Data & Learning
  • Evaluations
  • Model Library
  • Droplets
  • Kubernetes
  • Functions
  • App Platform
  • Load Balancers
  • Managed Databases
  • Spaces
  • Block Storage
  • Network File Storage
  • API
  • Uptime
  • Cloud Security Posture Management (CSPM)
  • Identity and Access Management (IAM)
  • Cloudways
  • View all Products

Resources

  • Community Tutorials
  • Community Q&A
  • CSS-Tricks
  • Write for DOnations
  • Currents Research
  • DigitalOcean Startups
  • Wavemakers Program
  • Compass Council
  • Open Source
  • Newsletter Signup
  • Marketplace
  • Pricing
  • Pricing Calculator
  • Documentation
  • Release Notes
  • Code of Conduct
  • Shop Swag

Solutions

  • AI Training GPU
  • GPU Inference
  • VPS Hosting
  • Website Hosting
  • VPN
  • Docker Hosting
  • Node.js Hosting
  • Web Mobile Apps
  • WordPress Hosting
  • Virtual Machines
  • View all Solutions

Contact

  • Support
  • Sales
  • Report Abuse
  • System Status
  • Share your ideas
© 2026 DigitalOcean, LLC.Sitemap.
Community

Try the DigitalOcean API directly from our documentation

author

By Dan Brian

  • Published: November 9, 2023
  • 2 min read
<- Back to blog home

The DigitalOcean Product Documentation team is excited to share a new feature that we hope will make it even easier for customers to test our API, troubleshoot issues, and learn new skills. The API “Try it out” feature allows DigitalOcean customers to test API calls directly from the product documentation website. This enables our customers to securely explore what our API has to offer them without setting up test environments or third-party API platforms.

The “Try the API” page uses the popular Swagger protocol to render DigitalOcean’s OpenAPI spec into a documentation reference. The reference not only documents our API calls, but also allows customers to authenticate, format, and make HTTP requests to their DigitalOcean account from the documentation itself.

For example, you can format a POST request that creates a Droplet from the Droplet section of the doc, or you can make a GET request to retrieve your account’s billing information from the Billing section. Swagger renders the JSON responses on the page.

Getting Started

To use the “Try it out” functionality, you need a DigitalOcean API key. You can follow the steps in our documentation to create a key and set its permissions to whatever you feel comfortable with.

Once you have an API key, open the Try-It-Now page and click on the “Authorize” button, or any of the lock icons beside the API calls, to open the authorization screen and enter your API key.

Swagger then stores the API key as a Javascript variable in its local state. This means that the key will be erased from your browser’s memory if the tab is closed or the page is refreshed. For security purposes, the page does not store the key in local or session storage.

Once you have entered the API key, select an API call from the page and click the Try it out! button. Configure any parameters or requests bodies as necessary, and then click Execute. The page makes the HTTP request to your account and returns a response. That’s it!

We hope this makes it easier to see what our API can do for you and can’t wait for you to try the “Try it out!” documentation feature!

About the author

Dan Brian
Dan Brian
Author

Share

  • Community

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
Sign up

Related Articles

Open by Design: How NVIDIA and DigitalOcean Are Building the Stack for the Always-On Agentic Era
Community

Open by Design: How NVIDIA and DigitalOcean Are Building the Stack for the Always-On Agentic Era

Jess Lulka
  • June 2, 2026
  • 7 min read

Read more

AI Disruptors: How the Next Generation of Business is Being Built
Community

AI Disruptors: How the Next Generation of Business is Being Built

Dinesh Murthy
  • May 29, 2026
  • 8 min read

Read more

Heroku’s Next Chapter Is Maintenance. Yours Shouldn’t Be
Community

Heroku’s Next Chapter Is Maintenance. Yours Shouldn’t Be

Wade Wegner
  • February 9, 2026
  • 5 min read

Read more