Digital Ocean Agents API

The Agents API from Digital Ocean — 41 operation(s) for agents.

GitHub OpenAPI

Operations 54

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/agents/configs List agent configuration templates · Get agents configs #
Ask an LLM
“What agent configuration templates are available for my AI agents?”
“Can I see all agent config templates at once?”
Tell an agent
List all agent configuration templates.
Show every agent config template.
POST /v2/agents/configs Create an agent configuration template · Create agents configs #
Ask an LLM
“How do I create a reusable template for my AI agents?”
“Can I define a new agent config template?”
Tell an agent
Create a new agent configuration template.
Add a new agent config template.
GET /v2/agents/configs/{config_id} Get an agent configuration template · Get agents configs by config id #
Ask an LLM
“What does one agent config template contain?”
“Can I fetch a single agent config template by its ID?”
Tell an agent
Get agent config template {config_id}.
Show the details of agent config template {config_id}.
DELETE /v2/agents/configs/{config_id} Delete an agent configuration template · Delete agents configs by config id #
Ask an LLM
“How do I remove an agent config template I no longer use?”
“Can I delete an agent config template by its ID?”
Tell an agent destructive · confirm first
Delete agent config template {config_id}.
Remove the agent config template {config_id}.
POST /v2/agents/configs/{config_id}/clone Clone an agent configuration template · Create agents configs by config id clone #
Ask an LLM
“Can I duplicate an existing agent config template?”
“How do I create a copy of an agent config template?”
Tell an agent
Clone agent config template {config_id}.
Duplicate the agent config template {config_id}.
GET /v2/agents/configs/{config_id}/sessions List sessions using an agent config template · Get agents configs by config id sessions #
Ask an LLM
“Which agent sessions are using a particular config template?”
“Can I see the sessions built on one agent config template?”
Tell an agent
List sessions using agent config template {config_id}.
Show the sessions that rely on agent config template {config_id}.
GET /v2/agents/sessions List agent sessions · Get agents sessions #
Ask an LLM
“What agent sessions have been run?”
“Can I see all my agent sessions?”
Tell an agent
List all agent sessions.
Show every agent session.
POST /v2/agents/sessions Start a new agent session · Create agents sessions #
Ask an LLM
“How do I start a new agent session?”
“Can I create an agent session from a config template?”
Tell an agent
Start a new agent session.
Create an agent session.
POST /v2/agents/sessions/policy/validate Validate an agent session policy · Create agents sessions policy validate #
Ask an LLM
“Can I check an agent session policy before starting a session?”
“Is there a way to validate an agent session policy?”
Tell an agent
Validate the agent session policy.
Check an agent session policy.
GET /v2/agents/sessions/sandbox/sizes List sandbox sizes for agent sessions · Get agents sessions sandbox sizes #
Ask an LLM
“What sandbox sizes can agent sessions use?”
“Which sandbox sizes are available for agent sessions?”
Tell an agent
List sandbox sizes for agent sessions.
Show the available agent session sandbox sizes.
DELETE /v2/agents/sessions/{session_id} Delete an agent session · Delete agents sessions by session id #
Ask an LLM
“How do I delete an agent session?”
“Can I remove an agent session by its ID?”
Tell an agent destructive · confirm first
Delete agent session {session_id}.
Remove the agent session {session_id}.
GET /v2/agents/sessions/{session_id} Get an agent session · Get agents sessions by session id #
Ask an LLM
“What happened in a specific agent session?”
“Can I fetch one agent session by its ID?”
Tell an agent
Get agent session {session_id}.
Show the details of agent session {session_id}.
PATCH /v2/agents/sessions/{session_id} Update an agent session · Update agents sessions by session id #
Ask an LLM
“Can I edit an existing agent session?”
“How do I change an agent session's settings?”
Tell an agent
Update agent session {session_id}.
Edit the settings of agent session {session_id}.
GET /v2/agents/sessions/{session_id}/checkpoints List checkpoints in an agent session · Get agents sessions by session id checkpoints #
Ask an LLM
“What checkpoints exist in an agent session?”
“Can I see the saved checkpoints of one agent session?”
Tell an agent
List checkpoints in agent session {session_id}.
Show the saved checkpoints of agent session {session_id}.
POST /v2/agents/sessions/{session_id}/checkpoints Save a checkpoint in an agent session · Create agents sessions by session id checkpoints #
Ask an LLM
“How do I save a checkpoint in an agent session?”
“Can I pause an agent session and save its state?”
Tell an agent
Save a checkpoint in agent session {session_id}.
Pause agent session {session_id} and save its state.
GET /v2/agents/sessions/{session_id}/checkpoints/{checkpoint_id} Get a code agent session checkpoint · Get agents sessions by session id checkpoints by checkpoint id #
Ask an LLM
“What is the state of an agent session at a specific checkpoint?”
“Can I read one step's output from a code agent session?”
Tell an agent
Get checkpoint {checkpoint_id} of agent session {session_id}.
Show the status of agent session {session_id} at checkpoint {checkpoint_id}.
DELETE /v2/agents/sessions/{session_id}/checkpoints/{checkpoint_id} Delete an agent session checkpoint · Delete agents sessions by session id checkpoints by checkpoint id #
Ask an LLM
“How do I remove a checkpoint from an agent session?”
“Can I delete an agent session checkpoint by its ID?”
Tell an agent destructive · confirm first
Delete checkpoint {checkpoint_id} from agent session {session_id}.
Remove agent session {session_id} checkpoint {checkpoint_id}.
POST /v2/agents/sessions/{session_id}/checkpoints/{checkpoint_id}/rollback Roll back an agent session to a checkpoint · Create agents sessions by session id checkpoints by checkpoint id rollback #
Ask an LLM
“Can I revert an agent session to a previous checkpoint?”
“How do I undo changes in an agent session by rolling back?”
Tell an agent
Roll back agent session {session_id} to checkpoint {checkpoint_id}.
Undo to checkpoint {checkpoint_id} in agent session {session_id}.
POST /v2/agents/sessions/{session_id}/fork Fork an agent session · Create agents sessions by session id fork #
Ask an LLM
“How do I create a copy of an agent session?”
“Can I fork an existing agent session?”
Tell an agent
Fork agent session {session_id}.
Create a copy of agent session {session_id}.
POST /v2/agents/sessions/{session_id}/hitl/{request_id} Send an agent session request to human-in-the-loop · Create agents sessions by session id hitl by request id #
Ask an LLM
“Can I hand an agent session over to a human for review?”
“How do I ask a human to review a specific agent session request?”
Tell an agent
Send request {request_id} from agent session {session_id} to human-in-the-loop.
Ask a human to review request {request_id} in agent session {session_id}.
POST /v2/agents/sessions/{session_id}/input Send input to an agent session · Create agents sessions by session id input #
Ask an LLM
“How do I send a prompt to an agent session?”
“Can I feed an agent session a new input while it's running?”
Tell an agent
Send this input to agent session {session_id}.
Feed a new prompt to agent session {session_id}.
POST /v2/agents/sessions/{session_id}/pause Pause an agent session · Create agents sessions by session id pause #
Ask an LLM
“How do I pause an agent session?”
“Can I temporarily stop an agent session without closing it?”
Tell an agent
Pause agent session {session_id}.
Temporarily stop agent session {session_id}.
POST /v2/agents/sessions/{session_id}/resume Resume a paused agent session · Create agents sessions by session id resume #
Ask an LLM
“How do I resume a paused agent session?”
“Can I restart an agent session after pausing it?”
Tell an agent
Resume agent session {session_id}.
Restart the paused agent session {session_id}.
POST /v2/agents/sessions/{session_id}/sandbox/exec Run a command in an agent session's sandbox · Create agents sessions by session id sandbox exec #
Ask an LLM
“How do I run a command inside an agent session's sandbox?”
“Can an agent session execute code in its isolated environment?”
Tell an agent
Run this command in the sandbox of agent session {session_id}.
Execute a command in agent session {session_id}'s sandbox.
GET /v2/agents/sessions/{session_id}/workspace/download Download an agent session's workspace · Get agents sessions by session id workspace download #
Ask an LLM
“How do I download the workspace of an agent session?”
“Can I export everything an agent session worked on?”
Tell an agent
Download the workspace of agent session {session_id}.
Export everything agent session {session_id} worked on.
POST /v2/agents/sessions/{session_id}/workspace/transfers Transfer files to an agent session's workspace · Create agents sessions by session id workspace transfers #
Ask an LLM
“How do I transfer files into an agent session's workspace?”
“Can I upload files to an agent session's workspace?”
Tell an agent
Transfer files into agent session {session_id}'s workspace.
Upload files to the workspace of agent session {session_id}.
GET /v2/agents/sessions/{session_id}/workspace/transfers/{transfer_id} Check a file transfer to an agent session · Get agents sessions by session id workspace transfers by transfer id #
Ask an LLM
“Has a file transfer to an agent session finished?”
“What is the status of a file transfer in an agent session?”
Tell an agent
Check file transfer {transfer_id} in agent session {session_id}.
Get the status of transfer {transfer_id} to agent session {session_id}.
POST /v2/agents/sessions/{session_id}/workspace/transfers/{transfer_id}/cancel Cancel a file transfer to an agent session · Create agents sessions by session id workspace transfers by transfer id cancel #
Ask an LLM
“How do I cancel a file transfer to an agent session?”
“Can I stop a file transfer that is still in progress?”
Tell an agent destructive · confirm first
Cancel file transfer {transfer_id} to agent session {session_id}.
Stop the in-progress transfer {transfer_id} into agent session {session_id}.
POST /v2/agents/sessions/{session_id}/workspace/transfers/{transfer_id}/commit Commit a file transfer to an agent session · Create agents sessions by session id workspace transfers by transfer id commit #
Ask an LLM
“How do I commit a file transfer into an agent session's workspace?”
“Can I finalize a transfer so the files are saved?”
Tell an agent
Commit file transfer {transfer_id} into agent session {session_id}.
Finalize transfer {transfer_id} into agent session {session_id}'s workspace.
POST /v2/agents/sessions/{session_id}/workspace/transfers/{transfer_id}/part-upload-urls Get upload URLs for a file transfer part · Create agents sessions by session id workspace transfers by transfer id part… #
Ask an LLM
“How do I get upload URLs for a part of a file transfer?”
“Can I upload a file transfer part in chunks?”
Tell an agent
Get upload URLs for part of transfer {transfer_id} in agent session {session_id}.
Generate chunk upload URLs for transfer {transfer_id} to agent session {session_id}.
POST /v2/agents/sessions/{session_id}/workspace/upload Upload a file to an agent session's workspace · Create agents sessions by session id workspace upload #
Ask an LLM
“How do I upload a file into an agent session's workspace?”
“Can I add a file to an agent session's workspace?”
Tell an agent
Upload a file into agent session {session_id}'s workspace.
Add a file to the workspace of agent session {session_id}.
GET /v2/agents/sessions/{session_id}/events List events of an agent session · Get agents sessions by session id events #
Ask an LLM
“What events have happened in an agent session?”
“Can I see the event log of an agent session?”
Tell an agent
List events for agent session {session_id}.
Show the event log of agent session {session_id}.
GET /v2/agents/sessions/{session_id}/port-forward/{port} Forward a port from an agent session · Get agents sessions by session id port forward by port #
Ask an LLM
“How do I forward a port from an agent session?”
“Can I access a port on an agent session from my machine?”
Tell an agent
Forward port {port} from agent session {session_id}.
Expose port {port} of agent session {session_id} to my machine.
GET /v2/agents/sessions/{session_id}/ingress Get an agent session's ingress URL · Get agents sessions by session id ingress #
Ask an LLM
“What URL can I use to reach an agent session?”
“Where do I find the ingress address of an agent session?”
Tell an agent
Get the ingress URL for agent session {session_id}.
Show how to reach agent session {session_id}.
GET /v2/agents/templates List agent templates · Get agents templates #
Ask an LLM
“What agent templates are available?”
“Can I see the agent templates I can use?”
Tell an agent
List agent templates.
Show the available agent templates.
POST /v2/agents/templates Create an agent template · Create agents templates #
Ask an LLM
“How do I create a new agent template?”
“Can I define a reusable agent template?”
Tell an agent
Create an agent template.
Define a new reusable agent template.
GET /v2/agents/templates/{template_id} Get an agent template · Get agents templates by template id #
Ask an LLM
“What does a particular agent template contain?”
“Can I read one agent template by its ID?”
Tell an agent
Get agent template {template_id}.
Show the contents of agent template {template_id}.
PUT /v2/agents/templates/{template_id} Replace an agent template · Replace agents templates by template id #
Ask an LLM
“How do I replace an existing agent template?”
“Can I overwrite an agent template's definition?”
Tell an agent
Replace agent template {template_id}.
Overwrite the definition of agent template {template_id}.
DELETE /v2/agents/templates/{template_id} Delete an agent template · Delete agents templates by template id #
Ask an LLM
“How do I delete an agent template?”
“Can I remove an agent template I no longer use?”
Tell an agent destructive · confirm first
Delete agent template {template_id}.
Remove agent template {template_id}.
GET /v2/agents/templates/{template_id}/builds List builds of an agent template · Get agents templates by template id builds #
Ask an LLM
“What builds have been made from an agent template?”
“Can I see the build history of an agent template?”
Tell an agent
List builds of agent template {template_id}.
Show the build history for agent template {template_id}.
GET /v2/agents/templates/{template_id}/builds/{build_id} Get an agent template build · Get agents templates by template id builds by build id #
Ask an LLM
“What is the status of a specific build of an agent template?”
“Can I fetch one agent template build by its template and build IDs?”
Tell an agent
Get build {build_id} of agent template {template_id}.
Show the status of template {template_id} build {build_id}.
GET /v2/agents/triggers List agent triggers · Get agents triggers #
Ask an LLM
“Which agent triggers are configured on my account?”
“Can I see all agent triggers and their settings?”
Tell an agent
List all agent triggers.
Show every agent trigger configured.
POST /v2/agents/triggers Create an agent trigger · Create agents triggers #
Ask an LLM
“How do I create a new trigger that runs an agent?”
“Can I add a trigger that starts an agent on a schedule?”
Tell an agent
Create a new agent trigger.
Add a trigger that runs an agent.
GET /v2/agents/triggers/by-session/{session_id} Get agent triggers by session · Get agents triggers by session by session id #
Ask an LLM
“Can I look up agent triggers that belong to a particular session?”
“What triggers are attached to a given session ID?”
Tell an agent
Get agent triggers for session {session_id}.
Show the triggers tied to session {session_id}.
GET /v2/agents/triggers/reusable-sessions List reusable agent trigger sessions · Get agents triggers reusable sessions #
Ask an LLM
“Which reusable sessions can I use for agent triggers?”
“What reusable sessions exist for agent triggers?”
Tell an agent
List reusable sessions for agent triggers.
Show the reusable sessions available to agent triggers.
GET /v2/agents/triggers/{trigger_id} Get an agent trigger · Get agents triggers by trigger id #
Ask an LLM
“Can I read one agent trigger's settings?”
“What does a specific agent trigger look like?”
Tell an agent
Get agent trigger {trigger_id}.
Show the settings of trigger {trigger_id}.
PATCH /v2/agents/triggers/{trigger_id} Update an agent trigger · Update agents triggers by trigger id #
Ask an LLM
“Can I change the settings of an existing agent trigger?”
“How do I edit an agent trigger I already created?”
Tell an agent
Update agent trigger {trigger_id}.
Change the settings of trigger {trigger_id}.
DELETE /v2/agents/triggers/{trigger_id} Delete an agent trigger · Delete agents triggers by trigger id #
Ask an LLM
“How do I remove an agent trigger?”
“Can I delete a trigger that runs an agent?”
Tell an agent destructive · confirm first
Delete agent trigger {trigger_id}.
Remove trigger {trigger_id} from my account.
GET /v2/agents/triggers/{trigger_id}/executions List executions of an agent trigger · Get agents triggers by trigger id executions #
Ask an LLM
“What has an agent trigger run so far?”
“Can I see the execution history of one trigger?”
Tell an agent
List executions of agent trigger {trigger_id}.
Show every run of trigger {trigger_id}.
GET /v2/agents/triggers/{trigger_id}/executions/{execution_id} Get a code agent trigger execution · Get agents triggers by trigger id executions by execution id #
Ask an LLM
“Did a code agent trigger successfully run?”
“Where do I see the logs of one code agent execution?”
Tell an agent
Get execution {execution_id} of trigger {trigger_id}.
Show the results of code agent trigger {trigger_id}'s run {execution_id}.
POST /v2/agents/triggers/{trigger_id}/executions/{execution_id}/cancel Cancel an agent trigger execution · Create agents triggers by trigger id executions by execution id cancel #
Ask an LLM
“Can I stop an agent trigger that is still running?”
“How do I cancel a running execution of a trigger?”
Tell an agent destructive · confirm first
Cancel execution {execution_id} of agent trigger {trigger_id}.
Stop the running run {execution_id} of trigger {trigger_id}.
POST /v2/agents/triggers/{trigger_id}/rotate-secret Rotate a trigger's secret · Create agents triggers by trigger id rotate secret #
Ask an LLM
“Can I rotate the secret used by an agent trigger?”
“How do I rotate a trigger's secret without recreating it?”
Tell an agent destructive · confirm first
Rotate the secret of agent trigger {trigger_id}.
Issue a new secret for trigger {trigger_id}.
POST /v2/agents/triggers/{trigger_id}/webhook Send a webhook to an agent trigger · Create agents triggers by trigger id webhook #
Ask an LLM
“Can I fire a webhook at an agent trigger?”
“How do I send a webhook to a trigger so it runs?”
Tell an agent
Send a webhook to agent trigger {trigger_id}.
Fire a webhook at trigger {trigger_id}.
GET /v2/agents/webhook-providers List webhook providers for agent triggers · Get agents webhook providers #
Ask an LLM
“Which webhook providers can I use with agent triggers?”
“What webhook providers are supported for agent triggers?”
Tell an agent
List webhook providers for agent triggers.
Show the supported webhook providers for agent triggers.

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-agents-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-agents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigitalOcean Agents API
  version: '2.0'
  description: ''
  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: Agents
paths:
  /v2/agents/configs:
    get:
      $ref: resources/agents/agents_list_configs.yml
      tags:
      - Agents
      summary: Get agents configs
      x-summary-source: derived
      operationId: getV2AgentsConfigs
      x-operation-id-source: derived
    post:
      $ref: resources/agents/agents_create_config.yml
      tags:
      - Agents
      summary: Create agents configs
      x-summary-source: derived
      operationId: postV2AgentsConfigs
      x-operation-id-source: derived
  /v2/agents/configs/{config_id}:
    get:
      $ref: resources/agents/agents_get_config.yml
      tags:
      - Agents
      summary: Get agents configs by config id
      x-summary-source: derived
      operationId: getV2AgentsConfigsByConfigId
      x-operation-id-source: derived
    delete:
      $ref: resources/agents/agents_delete_config.yml
      tags:
      - Agents
      summary: Delete agents configs by config id
      x-summary-source: derived
      operationId: deleteV2AgentsConfigsByConfigId
      x-operation-id-source: derived
  /v2/agents/configs/{config_id}/clone:
    post:
      $ref: resources/agents/agents_create_config_clone.yml
      tags:
      - Agents
      summary: Create agents configs by config id clone
      x-summary-source: derived
      operationId: postV2AgentsConfigsByConfigIdClone
      x-operation-id-source: derived
  /v2/agents/configs/{config_id}/sessions:
    get:
      $ref: resources/agents/agents_list_config_sessions.yml
      tags:
      - Agents
      summary: Get agents configs by config id sessions
      x-summary-source: derived
      operationId: getV2AgentsConfigsByConfigIdSessions
      x-operation-id-source: derived
  /v2/agents/sessions:
    get:
      $ref: resources/agents/agents_list_sessions.yml
      tags:
      - Agents
      summary: Get agents sessions
      x-summary-source: derived
      operationId: getV2AgentsSessions
      x-operation-id-source: derived
    post:
      $ref: resources/agents/agents_create_session.yml
      tags:
      - Agents
      summary: Create agents sessions
      x-summary-source: derived
      operationId: postV2AgentsSessions
      x-operation-id-source: derived
  /v2/agents/sessions/policy/validate:
    post:
      $ref: resources/agents/agents_validate_session_policy.yml
      tags:
      - Agents
      summary: Create agents sessions policy validate
      x-summary-source: derived
      operationId: postV2AgentsSessionsPolicyValidate
      x-operation-id-source: derived
  /v2/agents/sessions/sandbox/sizes:
    get:
      $ref: resources/agents/agents_list_session_sandbox_sizes.yml
      tags:
      - Agents
      summary: Get agents sessions sandbox sizes
      x-summary-source: derived
      operationId: getV2AgentsSessionsSandboxSizes
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}:
    delete:
      $ref: resources/agents/agents_delete_session.yml
      tags:
      - Agents
      summary: Delete agents sessions by session id
      x-summary-source: derived
      operationId: deleteV2AgentsSessionsBySessionId
      x-operation-id-source: derived
    get:
      $ref: resources/agents/agents_get_session.yml
      tags:
      - Agents
      summary: Get agents sessions by session id
      x-summary-source: derived
      operationId: getV2AgentsSessionsBySessionId
      x-operation-id-source: derived
    patch:
      $ref: resources/agents/agents_update_session.yml
      tags:
      - Agents
      summary: Update agents sessions by session id
      x-summary-source: derived
      operationId: patchV2AgentsSessionsBySessionId
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/checkpoints:
    get:
      $ref: resources/agents/agents_list_session_checkpoints.yml
      tags:
      - Agents
      summary: Get agents sessions by session id checkpoints
      x-summary-source: derived
      operationId: getV2AgentsSessionsBySessionIdCheckpoints
      x-operation-id-source: derived
    post:
      $ref: resources/agents/agents_create_session_checkpoint.yml
      tags:
      - Agents
      summary: Create agents sessions by session id checkpoints
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdCheckpoints
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/checkpoints/{checkpoint_id}:
    get:
      $ref: resources/agents/agents_get_session_checkpoint.yml
      tags:
      - Agents
      summary: Get agents sessions by session id checkpoints by checkpoint id
      x-summary-source: derived
      operationId: getV2AgentsSessionsBySessionIdCheckpointsByCheckpointId
      x-operation-id-source: derived
    delete:
      $ref: resources/agents/agents_delete_session_checkpoint.yml
      tags:
      - Agents
      summary: Delete agents sessions by session id checkpoints by checkpoint id
      x-summary-source: derived
      operationId: deleteV2AgentsSessionsBySessionIdCheckpointsByCheckpointId
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/checkpoints/{checkpoint_id}/rollback:
    post:
      $ref: resources/agents/agents_revert_session_checkpoint.yml
      tags:
      - Agents
      summary: Create agents sessions by session id checkpoints by checkpoint id rollback
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdCheckpointsByCheckpointIdRollback
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/fork:
    post:
      $ref: resources/agents/agents_create_session_fork.yml
      tags:
      - Agents
      summary: Create agents sessions by session id fork
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdFork
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/hitl/{request_id}:
    post:
      $ref: resources/agents/agents_post_session_hitl.yml
      tags:
      - Agents
      summary: Create agents sessions by session id hitl by request id
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdHitlByRequestId
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/input:
    post:
      $ref: resources/agents/agents_create_session_input.yml
      tags:
      - Agents
      summary: Create agents sessions by session id input
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdInput
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/pause:
    post:
      $ref: resources/agents/agents_post_session_pause.yml
      tags:
      - Agents
      summary: Create agents sessions by session id pause
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdPause
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/resume:
    post:
      $ref: resources/agents/agents_post_session_resume.yml
      tags:
      - Agents
      summary: Create agents sessions by session id resume
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdResume
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/sandbox/exec:
    post:
      $ref: resources/agents/agents_post_session_sandbox_exec.yml
      tags:
      - Agents
      summary: Create agents sessions by session id sandbox exec
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdSandboxExec
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/workspace/download:
    get:
      $ref: resources/agents/agents_get_session_workspace_download.yml
      tags:
      - Agents
      summary: Get agents sessions by session id workspace download
      x-summary-source: derived
      operationId: getV2AgentsSessionsBySessionIdWorkspaceDownload
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/workspace/transfers:
    post:
      $ref: resources/agents/agents_create_session_workspace_transfer.yml
      tags:
      - Agents
      summary: Create agents sessions by session id workspace transfers
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdWorkspaceTransfers
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/workspace/transfers/{transfer_id}:
    get:
      $ref: resources/agents/agents_get_session_workspace_transfer.yml
      tags:
      - Agents
      summary: Get agents sessions by session id workspace transfers by transfer id
      x-summary-source: derived
      operationId: getV2AgentsSessionsBySessionIdWorkspaceTransfersByTransferId
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/workspace/transfers/{transfer_id}/cancel:
    post:
      $ref: resources/agents/agents_cancel_session_workspace_transfer.yml
      tags:
      - Agents
      summary: Create agents sessions by session id workspace transfers by transfer id cancel
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdWorkspaceTransfersByTransferIdCancel
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/workspace/transfers/{transfer_id}/commit:
    post:
      $ref: resources/agents/agents_commit_session_workspace_transfer.yml
      tags:
      - Agents
      summary: Create agents sessions by session id workspace transfers by transfer id commit
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdWorkspaceTransfersByTransferIdCommit
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/workspace/transfers/{transfer_id}/part-upload-urls:
    post:
      $ref: resources/agents/agents_create_session_workspace_part_upload_urls.yml
      tags:
      - Agents
      summary: Create agents sessions by session id workspace transfers by transfer id part…
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdWorkspaceTransfersByTransferIdPartUploadUrls
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/workspace/upload:
    post:
      $ref: resources/agents/agents_create_session_workspace_upload.yml
      tags:
      - Agents
      summary: Create agents sessions by session id workspace upload
      x-summary-source: derived
      operationId: postV2AgentsSessionsBySessionIdWorkspaceUpload
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/events:
    get:
      $ref: resources/agents/agents_stream_session_events.yml
      tags:
      - Agents
      summary: Get agents sessions by session id events
      x-summary-source: derived
      operationId: getV2AgentsSessionsBySessionIdEvents
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/port-forward/{port}:
    get:
      $ref: resources/agents/agents_port_forward_session.yml
      tags:
      - Agents
      summary: Get agents sessions by session id port forward by port
      x-summary-source: derived
      operationId: getV2AgentsSessionsBySessionIdPortForwardByPort
      x-operation-id-source: derived
  /v2/agents/sessions/{session_id}/ingress:
    get:
      $ref: resources/agents/agents_get_session_ingress.yml
      tags:
      - Agents
      summary: Get agents sessions by session id ingress
      x-summary-source: derived
      operationId: getV2AgentsSessionsBySessionIdIngress
      x-operation-id-source: derived
  /v2/agents/templates:
    get:
      $ref: resources/agents/agents_list_templates.yml
      tags:
      - Agents
      summary: Get agents templates
      x-summary-source: derived
      operationId: getV2AgentsTemplates
      x-operation-id-source: derived
    post:
      $ref: resources/agents/agents_create_template.yml
      tags:
      - Agents
      summary: Create agents templates
      x-summary-source: derived
      operationId: postV2AgentsTemplates
      x-operation-id-source: derived
  /v2/agents/templates/{template_id}:
    get:
      $ref: resources/agents/agents_get_template.yml
      tags:
      - Agents
      summary: Get agents templates by template id
      x-summary-source: derived
      operationId: getV2AgentsTemplatesByTemplateId
      x-operation-id-source: derived
    put:
      $ref: resources/agents/agents_update_template.yml
      tags:
      - Agents
      summary: Replace agents templates by template id
      x-summary-source: derived
      operationId: putV2AgentsTemplatesByTemplateId
      x-operation-id-source: derived
    delete:
      $ref: resources/agents/agents_delete_template.yml
      tags:
      - Agents
      summary: Delete agents templates by template id
      x-summary-source: derived
      operationId: deleteV2AgentsTemplatesByTemplateId
      x-operation-id-source: derived
  /v2/agents/templates/{template_id}/builds:
    get:
      $ref: resources/agents/agents_list_template_builds.yml
      tags:
      - Agents
      summary: Get agents templates by template id builds
      x-summary-source: derived
      operationId: getV2AgentsTemplatesByTemplateIdBuilds
      x-operation-id-source: derived
  /v2/agents/templates/{template_id}/builds/{build_id}:
    get:
      $ref: resources/agents/agents_get_template_build.yml
      tags:
      - Agents
      summary: Get agents templates by template id builds by build id
      x-summary-source: derived
      operationId: getV2AgentsTemplatesByTemplateIdBuildsByBuildId
      x-operation-id-source: derived
  /v2/agents/triggers:
    get:
      $ref: resources/agents/agents_list_triggers.yml
      tags:
      - Agents
      summary: Get agents triggers
      x-summary-source: derived
      operationId: getV2AgentsTriggers
      x-operation-id-source: derived
    post:
      $ref: resources/agents/agents_create_trigger.yml
      tags:
      - Agents
      summary: Create agents triggers
      x-summary-source: derived
      operationId: postV2AgentsTriggers
      x-operation-id-source: derived
  /v2/agents/triggers/by-session/{session_id}:
    get:
      $ref: resources/agents/agents_get_trigger_by_session.yml
      tags:
      - Agents
      summary: Get agents triggers by session by session id
      x-summary-source: derived
      operationId: getV2AgentsTriggersBySessionBySessionId
      x-operation-id-source: derived
  /v2/agents/triggers/reusable-sessions:
    get:
      $ref: resources/agents/agents_list_reusable_sessions.yml
      tags:
      - Agents
      summary: Get agents triggers reusable sessions
      x-summary-source: derived
      operationId: getV2AgentsTriggersReusableSessions
      x-operation-id-source: derived
  /v2/agents/triggers/{trigger_id}:
    get:
      $ref: resources/agents/agents_get_trigger.yml
      tags:
      - Agents
      summary: Get agents triggers by trigger id
      x-summary-source: derived
      operationId: getV2AgentsTriggersByTriggerId
      x-operation-id-source: derived
    patch:
      $ref: resources/agents/agents_update_trigger.yml
      tags:
      - Agents
      summary: Update agents triggers by trigger id
      x-summary-source: derived
      operationId: patchV2AgentsTriggersByTriggerId
      x-operation-id-source: derived
    delete:
      $ref: resources/agents/agents_delete_trigger.yml
      tags:
      - Agents
      summary: Delete agents triggers by trigger id
      x-summary-source: derived
      operationId: deleteV2AgentsTriggersByTriggerId
      x-operation-id-source: derived
  /v2/agents/triggers/{trigger_id}/executions:
    get:
      $ref: resources/agents/agents_list_trigger_executions.yml
      tags:
      - Agents
      summary: Get agents triggers by trigger id executions
      x-summary-source: derived
      operationId: getV2AgentsTriggersByTriggerIdExecutions
      x-operation-id-source: derived
  /v2/agents/triggers/{trigger_id}/executions/{execution_id}:
    get:
      $ref: resources/agents/agents_get_trigger_execution.yml
      tags:
      - Agents
      summary: Get agents triggers by trigger id executions by execution id
      x-summary-source: derived
      operationId: getV2AgentsTriggersByTriggerIdExecutionsByExecutionId
      x-operation-id-source: derived
  /v2/agents/triggers/{trigger_id}/executions/{execution_id}/cancel:
    post:
      $ref: resources/agents/agents_cancel_trigger_execution.yml
      tags:
      - Agents
      summary: Create agents triggers by trigger id executions by execution id cancel
      x-summary-source: derived
      operationId: postV2AgentsTriggersByTriggerIdExecutionsByExecutionIdCancel
      x-operation-id-source: derived
  /v2/agents/triggers/{trigger_id}/rotate-secret:
    post:
      $ref: resources/agents/agents_rotate_trigger_secret.yml
      tags:
      - Agents
      summary: Create agents triggers by trigger id rotate secret
      x-summary-source: derived
      operationId: postV2AgentsTriggersByTriggerIdRotateSecret
      x-operation-id-source: derived
  /v2/agents/triggers/{trigger_id}/webhook:
    post:
      $ref: resources/agents/agents_receive_trigger_webhook.yml
      tags:
      - Agents
      summary: Create agents triggers by trigger id webhook
      x-summary-source: derived
      operationId: postV2AgentsTriggersByTriggerIdWebhook
      x-operation-id-source: derived
  /v2/agents/webhook-providers:
    get:
      $ref: resources/agents/agents_list_webhook_providers.yml
      tags:
      - Agents
      summary: Get agents webhook providers
      x-summary-source: derived
      operationId: getV2AgentsWebhookProviders
      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