Digital Ocean Apps API

App Platform is a Platform-as-a-Service (PaaS) offering from DigitalOcean that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure. Most API operations are centered around a few core object types. Following are the definitions of these types. These definitions will be omitted from the operation-specific documentation. For documentation on app specifications (`AppSpec` objects), please refer to the [product documentation](https://docs.digitalocean.com/products/app-platform/reference/app-spec/)).

GitHub OpenAPI

Operations 38

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/apps List apps · Get apps #
Ask an LLM
“Which apps have I deployed on App Platform?”
“Can I see all my apps in one list?”
Tell an agent
List all my apps.
Show every App Platform app I own.
POST /v2/apps Create an app · Create apps #
Ask an LLM
“How do I deploy a new app to App Platform?”
“Can I create an app from an existing git repo?”
Tell an agent
Create a new app.
Deploy a fresh app to App Platform.
DELETE /v2/apps/{id} Delete an app · Delete apps by id #
Ask an LLM
“How do I delete an app I no longer need?”
“Can I remove an app by its ID?”
Tell an agent destructive · confirm first
Delete app {id}.
Remove the app {id} from App Platform.
GET /v2/apps/{id} Get an app · Get apps by id #
Ask an LLM
“What is the status of one of my apps?”
“Can I look up an app by its ID?”
Tell an agent
Show app {id}.
Get the details of app {id}.
PUT /v2/apps/{id} Replace an app · Replace apps by id #
Ask an LLM
“How do I overwrite an app's configuration?”
“Can I replace an entire app definition?”
Tell an agent
Replace app {id}.
Overwrite the whole definition of app {id}.
POST /v2/apps/{app_id}/restart Restart an app · Create apps by app id restart #
Ask an LLM
“How do I restart an app without redeploying?”
“Can I force an app to restart?”
Tell an agent
Restart app {app_id}.
Restart every component of app {app_id}.
GET /v2/apps/{app_id}/components/{component_name}/logs Get component logs · Get apps by app id components by component name logs #
Ask an LLM
“Where can I see the logs for one component of an app?”
“Can I read the logs of a single component?”
Tell an agent
Show the logs for component {component_name} of app {app_id}.
Get the output of component {component_name} in app {app_id}.
GET /v2/apps/{app_id}/components/{component_name}/exec Open a shell to a component · Get apps by app id components by component name exec #
Ask an LLM
“Can I run a shell command inside one component of an app?”
“How do I open an interactive session with a component?”
Tell an agent
Open an exec session to component {component_name} of app {app_id}.
Run a shell command in component {component_name} of app {app_id}.
GET /v2/apps/{app_id}/instances List an app's instances · Get apps by app id instances #
Ask an LLM
“Which instances is my app running on?”
“Can I see the current instances of an app?”
Tell an agent
List the instances of app {app_id}.
Show which instances app {app_id} is deployed on.
GET /v2/apps/{app_id}/deployments List an app's deployments · Get apps by app id deployments #
Ask an LLM
“What deployments has my app had?”
“Can I see the deployment history of an app?”
Tell an agent
List the deployments of app {app_id}.
Show the deployment history for app {app_id}.
POST /v2/apps/{app_id}/deployments Deploy an app · Create apps by app id deployments #
Ask an LLM
“How do I deploy a new version of my app?”
“Can I trigger a new deployment of an app?”
Tell an agent
Deploy a new version of app {app_id}.
Trigger a fresh deployment for app {app_id}.
GET /v2/apps/{app_id}/deployments/{deployment_id} Get an app deployment · Get apps by app id deployments by deployment id #
Ask an LLM
“What happened in a specific deployment of my app?”
“Can I inspect one deployment by its ID?”
Tell an agent
Show deployment {deployment_id} of app {app_id}.
Get the details of deployment {deployment_id} for app {app_id}.
POST /v2/apps/{app_id}/deployments/{deployment_id}/cancel Cancel an app deployment · Create apps by app id deployments by deployment id cancel #
Ask an LLM
“How do I cancel a deployment that is still in progress?”
“Can I stop a pending app deployment?”
Tell an agent destructive · confirm first
Cancel deployment {deployment_id} of app {app_id}.
Stop the in-progress deployment {deployment_id} for app {app_id}.
GET /v2/apps/{app_id}/deployments/{deployment_id}/components/{component_name}/logs Get component logs for a deployment · Get apps by app id deployments by deployment id components by component name… #
Ask an LLM
“Where can I see a component's logs for a specific deployment?”
“Can I read deployment-level logs for one component?”
Tell an agent
Show the logs for component {component_name} in deployment {deployment_id} of app {app_id}.
Get component {component_name} logs from deployment {deployment_id} of app {app_id}.
GET /v2/apps/{app_id}/deployments/{deployment_id}/logs Get app logs for a deployment · Get apps by app id deployments by deployment id logs #
Ask an LLM
“Can I see the combined logs of an app for a single deployment?”
“Where are the logs for one deployment of my app?”
Tell an agent
Show the app logs for deployment {deployment_id} of app {app_id}.
Get the combined logs of app {app_id} from deployment {deployment_id}.
GET /v2/apps/{app_id}/deployments/{deployment_id}/components/{component_name}/exec Open a shell to a component in a deployment · Get apps by app id deployments by deployment id components by component name… #
Ask an LLM
“Can I run a shell command inside a component of a specific deployment?”
“How do I open an exec session for a deployment's component?”
Tell an agent
Open an exec session to component {component_name} in deployment {deployment_id} of app {app_id}.
Run a shell command in component {component_name} of deployment {deployment_id} for app {app_id}.
GET /v2/apps/{app_id}/logs Get an app's logs · Get apps by app id logs #
Ask an LLM
“Where can I see the combined logs of my app in real time?”
“Can I stream an app's logs?”
Tell an agent
Show the logs for app {app_id}.
Stream the combined logs of app {app_id}.
GET /v2/apps/{app_id}/job-invocations List an app's job invocations · Get apps by app id job invocations #
Ask an LLM
“Which jobs have been run on my app?”
“Can I see the job invocation history of an app?”
Tell an agent
List the job invocations of app {app_id}.
Show the job invocation history for app {app_id}.
GET /v2/apps/{app_id}/job-invocations/{job_invocation_id} Get an app job invocation · Get apps by app id job invocations by job invocation id #
Ask an LLM
“What happened in a specific job invocation of my app?”
“Can I inspect one job invocation by its ID?”
Tell an agent
Show job invocation {job_invocation_id} of app {app_id}.
Get the details of job invocation {job_invocation_id} for app {app_id}.
POST /v2/apps/{app_id}/job-invocations/{job_invocation_id}/cancel Cancel an app job invocation · Create apps by app id job invocations by job invocation id cancel #
Ask an LLM
“How do I cancel a job invocation that is still running?”
“Can I stop a pending job on my app?”
Tell an agent destructive · confirm first
Cancel job invocation {job_invocation_id} of app {app_id}.
Stop the in-progress job invocation {job_invocation_id} for app {app_id}.
GET /v2/apps/{app_id}/jobs/{job_name}/invocations/{job_invocation_id}/logs Get logs for a job invocation · Get apps by app id jobs by job name invocations by job invocation id logs #
Ask an LLM
“How do I see the logs from a specific invocation of a background job?”
“Can I fetch the output of a single job run?”
Tell an agent
Get the logs for invocation {job_invocation_id} of job {job_name} in app {app_id}.
Show the output of job {job_name} run {job_invocation_id} in app {app_id}.
GET /v2/apps/{app_id}/events List events for an app · Get apps by app id events #
Ask an LLM
“What events have happened on my app recently?”
“Can I see the event history for an app?”
Tell an agent
List events for app {app_id}.
Show the event history of app {app_id}.
GET /v2/apps/{app_id}/events/{event_id} Get an app event · Get apps by app id events by event id #
Ask an LLM
“What happened when a particular event occurred on my app?”
“Can I look up one app event by its ID?”
Tell an agent
Get event {event_id} for app {app_id}.
Show the details of event {event_id} on app {app_id}.
POST /v2/apps/{app_id}/events/{event_id}/cancel Cancel an app event · Create apps by app id events by event id cancel #
Ask an LLM
“How do I cancel an event that's still running on my app?”
“Can I stop an app event partway through?”
Tell an agent destructive · confirm first
Cancel event {event_id} on app {app_id}.
Stop the running event {event_id} in app {app_id}.
GET /v2/apps/{app_id}/events/{event_id}/logs Get logs for an app event · Get apps by app id events by event id logs #
Ask an LLM
“How do I see the logs for an event that happened on my app?”
“Can I fetch the output of an app event?”
Tell an agent
Get the logs for event {event_id} in app {app_id}.
Show the output of event {event_id} on app {app_id}.
GET /v2/apps/tiers/instance_sizes List app instance sizes · Get apps tiers instance sizes #
Ask an LLM
“Which instance sizes can I choose for my app?”
“What instance tiers are available for App Platform?”
Tell an agent
List all app instance sizes.
Show the available App Platform instance tiers.
GET /v2/apps/tiers/instance_sizes/{slug} Get an app instance size · Get apps tiers instance sizes by slug #
Ask an LLM
“What does a particular app instance size include?”
“Can I look up one instance size by its slug?”
Tell an agent
Get app instance size {slug}.
Show the details of instance size {slug}.
GET /v2/apps/regions List app regions · Get apps regions #
Ask an LLM
“In which regions can I deploy my app?”
“Which regions support App Platform?”
Tell an agent
List the regions where App Platform is available.
Show every region I can deploy an app to.
POST /v2/apps/propose Propose an app deployment · Create apps propose #
Ask an LLM
“How do I preview what an app would look like before deploying it?”
“Can I propose an app spec without creating the app?”
Tell an agent
Propose an app deployment.
Preview an app spec before creating the app.
GET /v2/apps/{app_id}/alerts List alerts for an app · Get apps by app id alerts #
Ask an LLM
“What alerts are configured for my app?”
“Can I see the alert rules on an app?”
Tell an agent
List alerts for app {app_id}.
Show the alert rules on app {app_id}.
POST /v2/apps/{app_id}/alerts/{alert_id}/destinations Add a destination to an app alert · Create apps by app id alerts by alert id destinations #
Ask an LLM
“How do I get an app alert sent to a notification destination?”
“Can I add a Slack channel as an alert destination?”
Tell an agent
Add a destination to alert {alert_id} on app {app_id}.
Send alert {alert_id} from app {app_id} to a notification destination.
POST /v2/apps/{app_id}/rollback Roll back an app to a previous version · Create apps by app id rollback #
Ask an LLM
“How do I roll my app back to an earlier version?”
“Can I undo a recent app deployment?”
Tell an agent destructive · confirm first
Roll back app {app_id} to its previous version.
Undo the latest deployment of app {app_id}.
POST /v2/apps/{app_id}/rollback/validate Validate an app rollback · Create apps by app id rollback validate #
Ask an LLM
“Can I check what a rollback would change before committing it?”
“Is there a dry run for rolling back an app?”
Tell an agent
Validate the rollback of app {app_id}.
Dry-run the rollback for app {app_id} without committing it.
POST /v2/apps/{app_id}/rollback/commit Commit an app rollback · Create apps by app id rollback commit #
Ask an LLM
“How do I make a rollback permanent?”
“Can I commit the rollback I validated earlier?”
Tell an agent destructive · confirm first
Commit the rollback of app {app_id}.
Make the rollback of app {app_id} permanent.
POST /v2/apps/{app_id}/rollback/revert Revert an app rollback · Create apps by app id rollback revert #
Ask an LLM
“How do I undo a rollback and go back to the current version?”
“Can I reverse a rollback I already committed?”
Tell an agent destructive · confirm first
Revert the rollback of app {app_id}.
Undo the rollback on app {app_id} and restore the current version.
GET /v2/apps/{app_id}/metrics/bandwidth_daily Get daily bandwidth metrics for an app · Get apps by app id metrics bandwidth daily #
Ask an LLM
“How much bandwidth did my app use each day?”
“Can I see daily bandwidth usage for an app?”
Tell an agent
Get daily bandwidth metrics for app {app_id}.
Show how much bandwidth app {app_id} used per day.
POST /v2/apps/metrics/bandwidth_daily Report daily bandwidth usage for all apps · Create apps metrics bandwidth daily #
Ask an LLM
“How do I report daily bandwidth usage across all my apps?”
“Can I send daily bandwidth metrics for every app at once?”
Tell an agent
Report daily bandwidth usage for all apps.
Send daily bandwidth metrics for every app in one request.
GET /v2/apps/{app_id}/health Check an app's health · Get apps by app id health #
Ask an LLM
“Is my app up and running?”
“Can I check the health of an app?”
Tell an agent
Check the health of app {app_id}.
Tell me whether app {app_id} is healthy.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/digital-ocean:digital-ocean-apps-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

digital-ocean-apps-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigitalOcean Apps API
  version: '2.0'
  description: 'App Platform is a Platform-as-a-Service (PaaS) offering from DigitalOcean that allows

    developers to publish code directly to DigitalOcean servers without worrying about the

    underlying infrastructure.


    Most API operations are centered around a few core object types. Following are the

    definitions of these types. These definitions will be omitted from the operation-specific

    documentation.


    For documentation on app specifications (`AppSpec` objects), please refer to the

    product documentation).'
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  contact:
    name: DigitalOcean API Team
    email: api-engineering@digitalocean.com
  termsOfService: https://www.digitalocean.com/legal/terms-of-service-agreement/
servers:
- url: https://api.digitalocean.com
  description: production
security:
- bearer_auth: []
tags:
- name: Apps
  description: 'App Platform is a Platform-as-a-Service (PaaS) offering from DigitalOcean that allows

    developers to publish code directly to DigitalOcean servers without worrying about the

    underlying infrastructure.


    Most API operations are centered around a few core object types. Following are the

    definitions of these types. These definitions will be omitted from the operation-specific

    documentation.


    For documentation on app specifications (`AppSpec` objects), please refer to the

    product documentation).'
paths:
  /v2/apps:
    get:
      $ref: resources/apps/apps_list.yml
      tags:
      - Apps
      summary: Get apps
      x-summary-source: derived
      operationId: getV2Apps
      x-operation-id-source: derived
    post:
      $ref: resources/apps/apps_create.yml
      tags:
      - Apps
      summary: Create apps
      x-summary-source: derived
      operationId: postV2Apps
      x-operation-id-source: derived
  /v2/apps/{id}:
    delete:
      $ref: resources/apps/apps_delete.yml
      tags:
      - Apps
      summary: Delete apps by id
      x-summary-source: derived
      operationId: deleteV2AppsById
      x-operation-id-source: derived
    get:
      $ref: resources/apps/apps_get.yml
      tags:
      - Apps
      summary: Get apps by id
      x-summary-source: derived
      operationId: getV2AppsById
      x-operation-id-source: derived
    put:
      $ref: resources/apps/apps_update.yml
      tags:
      - Apps
      summary: Replace apps by id
      x-summary-source: derived
      operationId: putV2AppsById
      x-operation-id-source: derived
  /v2/apps/{app_id}/restart:
    post:
      $ref: resources/apps/apps_restart.yml
      tags:
      - Apps
      summary: Create apps by app id restart
      x-summary-source: derived
      operationId: postV2AppsByAppIdRestart
      x-operation-id-source: derived
  /v2/apps/{app_id}/components/{component_name}/logs:
    get:
      $ref: resources/apps/apps_get_logs_active_deployment.yml
      tags:
      - Apps
      summary: Get apps by app id components by component name logs
      x-summary-source: derived
      operationId: getV2AppsByAppIdComponentsByComponentNameLogs
      x-operation-id-source: derived
  /v2/apps/{app_id}/components/{component_name}/exec:
    get:
      $ref: resources/apps/apps_get_exec_active_deployment.yml
      tags:
      - Apps
      summary: Get apps by app id components by component name exec
      x-summary-source: derived
      operationId: getV2AppsByAppIdComponentsByComponentNameExec
      x-operation-id-source: derived
  /v2/apps/{app_id}/instances:
    get:
      $ref: resources/apps/apps_get_instances.yml
      tags:
      - Apps
      summary: Get apps by app id instances
      x-summary-source: derived
      operationId: getV2AppsByAppIdInstances
      x-operation-id-source: derived
  /v2/apps/{app_id}/deployments:
    get:
      $ref: resources/apps/apps_list_deployments.yml
      tags:
      - Apps
      summary: Get apps by app id deployments
      x-summary-source: derived
      operationId: getV2AppsByAppIdDeployments
      x-operation-id-source: derived
    post:
      $ref: resources/apps/apps_create_deployment.yml
      tags:
      - Apps
      summary: Create apps by app id deployments
      x-summary-source: derived
      operationId: postV2AppsByAppIdDeployments
      x-operation-id-source: derived
  /v2/apps/{app_id}/deployments/{deployment_id}:
    get:
      $ref: resources/apps/apps_get_deployment.yml
      tags:
      - Apps
      summary: Get apps by app id deployments by deployment id
      x-summary-source: derived
      operationId: getV2AppsByAppIdDeploymentsByDeploymentId
      x-operation-id-source: derived
  /v2/apps/{app_id}/deployments/{deployment_id}/cancel:
    post:
      $ref: resources/apps/apps_cancel_deployment.yml
      tags:
      - Apps
      summary: Create apps by app id deployments by deployment id cancel
      x-summary-source: derived
      operationId: postV2AppsByAppIdDeploymentsByDeploymentIdCancel
      x-operation-id-source: derived
  /v2/apps/{app_id}/deployments/{deployment_id}/components/{component_name}/logs:
    get:
      $ref: resources/apps/apps_get_logs.yml
      tags:
      - Apps
      summary: Get apps by app id deployments by deployment id components by component name…
      x-summary-source: derived
      operationId: getV2AppsByAppIdDeploymentsByDeploymentIdComponentsByComponentNameLogs
      x-operation-id-source: derived
  /v2/apps/{app_id}/deployments/{deployment_id}/logs:
    get:
      $ref: resources/apps/apps_get_logs_aggregate.yml
      tags:
      - Apps
      summary: Get apps by app id deployments by deployment id logs
      x-summary-source: derived
      operationId: getV2AppsByAppIdDeploymentsByDeploymentIdLogs
      x-operation-id-source: derived
  /v2/apps/{app_id}/deployments/{deployment_id}/components/{component_name}/exec:
    get:
      $ref: resources/apps/apps_get_exec.yml
      tags:
      - Apps
      summary: Get apps by app id deployments by deployment id components by component name…
      x-summary-source: derived
      operationId: getV2AppsByAppIdDeploymentsByDeploymentIdComponentsByComponentNameExec
      x-operation-id-source: derived
  /v2/apps/{app_id}/logs:
    get:
      $ref: resources/apps/apps_get_logs_active_deployment_aggregate.yml
      tags:
      - Apps
      summary: Get apps by app id logs
      x-summary-source: derived
      operationId: getV2AppsByAppIdLogs
      x-operation-id-source: derived
  /v2/apps/{app_id}/job-invocations:
    get:
      $ref: resources/apps/apps_list_job_invocations.yml
      tags:
      - Apps
      summary: Get apps by app id job invocations
      x-summary-source: derived
      operationId: getV2AppsByAppIdJobInvocations
      x-operation-id-source: derived
  /v2/apps/{app_id}/job-invocations/{job_invocation_id}:
    get:
      $ref: resources/apps/apps_get_job_invocation.yml
      tags:
      - Apps
      summary: Get apps by app id job invocations by job invocation id
      x-summary-source: derived
      operationId: getV2AppsByAppIdJobInvocationsByJobInvocationId
      x-operation-id-source: derived
  /v2/apps/{app_id}/job-invocations/{job_invocation_id}/cancel:
    post:
      $ref: resources/apps/apps_cancel_job_invocation.yml
      tags:
      - Apps
      summary: Create apps by app id job invocations by job invocation id cancel
      x-summary-source: derived
      operationId: postV2AppsByAppIdJobInvocationsByJobInvocationIdCancel
      x-operation-id-source: derived
  /v2/apps/{app_id}/jobs/{job_name}/invocations/{job_invocation_id}/logs:
    get:
      $ref: resources/apps/apps_get_job_invocation_logs.yml
      tags:
      - Apps
      summary: Get apps by app id jobs by job name invocations by job invocation id logs
      x-summary-source: derived
      operationId: getV2AppsByAppIdJobsByJobNameInvocationsByJobInvocationIdLogs
      x-operation-id-source: derived
  /v2/apps/{app_id}/events:
    get:
      $ref: resources/apps/apps_list_events.yml
      tags:
      - Apps
      summary: Get apps by app id events
      x-summary-source: derived
      operationId: getV2AppsByAppIdEvents
      x-operation-id-source: derived
  /v2/apps/{app_id}/events/{event_id}:
    get:
      $ref: resources/apps/apps_get_event.yml
      tags:
      - Apps
      summary: Get apps by app id events by event id
      x-summary-source: derived
      operationId: getV2AppsByAppIdEventsByEventId
      x-operation-id-source: derived
  /v2/apps/{app_id}/events/{event_id}/cancel:
    post:
      $ref: resources/apps/apps_cancel_event.yml
      tags:
      - Apps
      summary: Create apps by app id events by event id cancel
      x-summary-source: derived
      operationId: postV2AppsByAppIdEventsByEventIdCancel
      x-operation-id-source: derived
  /v2/apps/{app_id}/events/{event_id}/logs:
    get:
      $ref: resources/apps/apps_get_event_logs.yml
      tags:
      - Apps
      summary: Get apps by app id events by event id logs
      x-summary-source: derived
      operationId: getV2AppsByAppIdEventsByEventIdLogs
      x-operation-id-source: derived
  /v2/apps/tiers/instance_sizes:
    get:
      $ref: resources/apps/apps_list_instanceSizes.yml
      tags:
      - Apps
      summary: Get apps tiers instance sizes
      x-summary-source: derived
      operationId: getV2AppsTiersInstanceSizes
      x-operation-id-source: derived
  /v2/apps/tiers/instance_sizes/{slug}:
    get:
      $ref: resources/apps/apps_get_instanceSize.yml
      tags:
      - Apps
      summary: Get apps tiers instance sizes by slug
      x-summary-source: derived
      operationId: getV2AppsTiersInstanceSizesBySlug
      x-operation-id-source: derived
  /v2/apps/regions:
    get:
      $ref: resources/apps/apps_list_regions.yml
      tags:
      - Apps
      summary: Get apps regions
      x-summary-source: derived
      operationId: getV2AppsRegions
      x-operation-id-source: derived
  /v2/apps/propose:
    post:
      $ref: resources/apps/apps_validate_appSpec.yml
      tags:
      - Apps
      summary: Create apps propose
      x-summary-source: derived
      operationId: postV2AppsPropose
      x-operation-id-source: derived
  /v2/apps/{app_id}/alerts:
    get:
      $ref: resources/apps/apps_list_alerts.yml
      tags:
      - Apps
      summary: Get apps by app id alerts
      x-summary-source: derived
      operationId: getV2AppsByAppIdAlerts
      x-operation-id-source: derived
  /v2/apps/{app_id}/alerts/{alert_id}/destinations:
    post:
      $ref: resources/apps/apps_assign_alertDestinations.yml
      tags:
      - Apps
      summary: Create apps by app id alerts by alert id destinations
      x-summary-source: derived
      operationId: postV2AppsByAppIdAlertsByAlertIdDestinations
      x-operation-id-source: derived
  /v2/apps/{app_id}/rollback:
    post:
      $ref: resources/apps/apps_create_rollback.yml
      tags:
      - Apps
      summary: Create apps by app id rollback
      x-summary-source: derived
      operationId: postV2AppsByAppIdRollback
      x-operation-id-source: derived
  /v2/apps/{app_id}/rollback/validate:
    post:
      $ref: resources/apps/apps_validate_rollback.yml
      tags:
      - Apps
      summary: Create apps by app id rollback validate
      x-summary-source: derived
      operationId: postV2AppsByAppIdRollbackValidate
      x-operation-id-source: derived
  /v2/apps/{app_id}/rollback/commit:
    post:
      $ref: resources/apps/apps_commit_rollback.yml
      tags:
      - Apps
      summary: Create apps by app id rollback commit
      x-summary-source: derived
      operationId: postV2AppsByAppIdRollbackCommit
      x-operation-id-source: derived
  /v2/apps/{app_id}/rollback/revert:
    post:
      $ref: resources/apps/apps_revert_rollback.yml
      tags:
      - Apps
      summary: Create apps by app id rollback revert
      x-summary-source: derived
      operationId: postV2AppsByAppIdRollbackRevert
      x-operation-id-source: derived
  /v2/apps/{app_id}/metrics/bandwidth_daily:
    get:
      $ref: resources/apps/apps_get_metrics_bandwidth_usage.yml
      tags:
      - Apps
      summary: Get apps by app id metrics bandwidth daily
      x-summary-source: derived
      operationId: getV2AppsByAppIdMetricsBandwidthDaily
      x-operation-id-source: derived
  /v2/apps/metrics/bandwidth_daily:
    post:
      $ref: resources/apps/apps_list_metrics_bandwidth_usage.yml
      tags:
      - Apps
      summary: Create apps metrics bandwidth daily
      x-summary-source: derived
      operationId: postV2AppsMetricsBandwidthDaily
      x-operation-id-source: derived
  /v2/apps/{app_id}/health:
    get:
      $ref: resources/apps/apps_get_health.yml
      tags:
      - Apps
      summary: Get apps by app id health
      x-summary-source: derived
      operationId: getV2AppsByAppIdHealth
      x-operation-id-source: derived
components:
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: '## OAuth Authentication


        In order to interact with the DigitalOcean API, you or your application must

        authenticate.


        The DigitalOcean API handles this through OAuth, an open standard for

        authorization. OAuth allows you to delegate access to your account.

        Scopes can be used to grant full access, read-only access, or access to

        a specific set of endpoints.


        You can generate an OAuth token by visiting the [Apps & API](https://cloud.digitalocean.com/account/api/tokens)

        section of the DigitalOcean control panel for your account.


        An OAuth token functions as a complete authentication request. In effect, it

        acts as a substitute for a username and password pair.


        Because of this, it is absolutely **essential** that you keep your OAuth

        tokens secure. In fact, upon generation, the web interface will only display

        each token a single time in order to prevent the token from being compromised.


        DigitalOcean access tokens begin with an identifiable prefix in order to

        distinguish them from other similar tokens.


        - `dop_v1_` for personal access tokens generated in the control panel

        - `doo_v1_` for tokens generated by applications using [the OAuth flow](https://docs.digitalocean.com/reference/api/oauth-api/)

        - `dor_v1_` for OAuth refresh tokens


        ### Scopes


        Scopes act like permissions assigned to an API token. These permissions

        determine what actions the token can perform. You can create API

        tokens that grant read-only access, full access, or limited access to

        specific endpoints by using custom scopes.


        Generally, scopes are designed to match HTTP verbs and common CRUD

        operations (Create, Read, Update, Delete).


        | HTTP Verb | CRUD Operation | Scope |

        |---|---|---|

        | GET | Read | `<resource>:read` |

        | POST | Create | `<resource>:create` |

        | PUT/PATCH | Update | `<resource>:update` |

        | DELETE | Delete | `<resource>:delete` |


        For example, creating a new Droplet by making a `POST` request to the

        `/v2/droplets` endpoint requires the `droplet:create` scope while

        listing Droplets by making a `GET` request to the `/v2/droplets`

        endpoint requires the `droplet:read` scope.


        Each endpoint below specifies which scope is required to access it when

        using custom scopes.


        ### How to Authenticate with OAuth


        In order to make an authenticated request, include a bearer-type

        `Authorization` header containing your OAuth token. All requests must be

        made over HTTPS.


        ### Authenticate with a Bearer Authorization Header


        ```

        curl -X $HTTP_METHOD -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://api.digitalocean.com/v2/$OBJECT"

        ```

        '
    inference_bearer_auth:
      type: http
      scheme: bearer
      description: '## OAuth Authentication


        In order to interact with the DigitalOcean API, you or your application must

        authenticate.


        The DigitalOcean API handles this through OAuth, an open standard for

        authorization. OAuth allows you to delegate access to your account.

        Scopes can be used to grant full access, read-only access, or access to

        a specific set of endpoints.


        You can generate an OAuth token by visiting the [Apps & API](https://cloud.digitalocean.com/account/api/tokens)

        section of the DigitalOcean control panel for your account.


        An OAuth token functions as a complete authentication request. In effect, it

        acts as a substitute for a username and password pair.


        Because of this, it is absolutely **essential** that you keep your OAuth

        tokens secure. In fact, upon generation, the web interface will only display

        each token a single time in order to prevent the token from being compromised.


        DigitalOcean access tokens begin with an identifiable prefix in order to

        distinguish them from other similar tokens.


        - `dop_v1_` for personal access tokens generated in the control panel

        - `doo_v1_` for tokens generated by applications using [the OAuth flow](https://docs.digitalocean.com/reference/api/oauth-api/)

        - `dor_v1_` for OAuth refresh tokens


        ### Authenticate with a Bearer Authorization Header


        **Serverless Inference:**


        ```

        curl -X POST -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" "https://inference.do-ai.run/v1/chat/completions"

        ```


        **Agent Inference:**


        ```

        curl -X POST -H "Authorization: Bearer $AGENT_ACCESS_KEY" "https://{your-agent-url}.agents.do-ai.run/v1/chat/completions?agent=true"

        ```


        **Note:** Agent Inference APIs use an `agent_access_key` (endpoint access

        key) instead of a DigitalOcean OAuth token. The `agent_access_key` is

        provided when you provision an agent endpoint and is scoped to that

        specific agent. It is not interchangeable with DigitalOcean OAuth tokens

        (`dop_v1_*`, `doo_v1_*`, `dor_v1_*`), which are used with Serverless

        Inference and the control-plane API at `https://api.digitalocean.com`.

        '
x-tagGroups:
- name: Public APIs
  tags:
  - Public APIs Introduction
  - 1-Click Applications
  - Account
  - Actions
  - Add-Ons
  - Action Gateway
  - Action Gateway Data Plane
  - Agent Platform API
  - Apps
  - Billing
  - Block Storage
  - Block Storage Actions
  - BYOIP Prefixes
  - CDN Endpoints
  - Certificates
  - Container Registry
  - Container Registries
  - Databases
  - Dedicated Inference
  - Domain Records
  - Domains
  - Droplet Actions
  - Droplets
  - Droplet Autoscale Pools
  - Firewalls
  - Floating IP Actions
  - Floating IPs
  - Functions
  - Harness Runtime
  - Image Actions
  - Images
  - Insights
  - Kubernetes
  - Load Balancers
  - MicroVMs [Public Preview]
  - Monitoring
  - NFS
  - NFS Actions
  - Organizations
  - Partner Network Connect
  - Project Resources
  - Projects
  - Regions
  - Reserved IP Actions
  - Reserved IPs
  - Reserved IPv6
  - Reserved IPv6 Actions
  - Security
  - Signals
  - Sizes
  - Snapshots
  - Spaces Keys
  - SSH Keys
  - Tags
  - Uptime
  - Vector Databases
  - VPC NAT Gateways
  - VPC Peerings
  - VPC Routes [Public Preview]
  - VPC Subnets [Public Preview]
  - VPCs
- name: Inference APIs
  tags:
  - Inference Introduction
  - Agent Inference
  - Batch Inference
  - Embeddings
  - Serverless Inference