Reference for Using the DigitalOcean API with App Platform

The DigitalOcean API allows you to manage your app in a programmatic way using conventional HTTP requests. All of the functionality that you see in the DigitalOcean control panel is also available through the API, allowing you to script the complex actions that your situation requires.

The DigitalOcean API is useful for automating configuration and resourcing changes to your app from within the application code itself.

Connect to the API

Use of the API requires an API token, which you can generate for your account by visiting the control panel’s token generator.

The endpoint for the App Platform API is; you can consult the API documentation for details on how to send native HTTP requests that are properly formed to make API calls.

An Introduction to the DigitalOcean Products API
Get started with the DigitalOcean API using these examples.
Create a personal access token for use with the DigitalOcean API.
Get started with the DigitalOcean API.
Get started with the DigitalOcean Metadata API.
The reference documentation for DigitalOcean’s Oauth API.
The reference documentation for DigitalOcean’s Spaces API.

Connect to the API with a Wrapper Library

Alternatively, you can use an API wrapper for your desired programming language to integrate access to the API in your application’s codebase. This makes calls to the DigitalOcean API similar to calling functions from locally-installed libraries that your code is importing. You will still need to create an API token with the control panel’s token generator and reference the token string in your code.

View details about the available wrapper libraries for consuming the DigitalOcean API

Consult the Reference Documentation

The reference documentation for the DigitalOcean API is viewable at It should be noted that the API includes functionality for all of DigitalOcean’s products, including App Platform. As an App Platform user you will want to click the Apps link to see the API methods that apply to App Platform events.

That said, because you can also manage databases, domains, and account details through the API, it could be worth exploring other areas outside of Apps, depending on what you’d like to automate.

View App Platform section of the DigitalOcean API Reference