Digital Ocean Action Gateway API

Action Gateway gives AI agents governed access to tools over the Model Context Protocol (MCP). The `/v2/action-gateway` endpoints manage the tool catalog and the resources that control how agents use it: - **Tools** browse and search the catalog, its providers, and global provider and tool health. - **Toolbelts** are versioned, team-owned sets of tools that sessions and policies reference as `toolbelt:@`. - **Output views** reshape a tool's output before it reaches the agent. - **MCP servers** register your own remote MCP servers and choose which of their tools to enable. - **Connections** authorize one of your end users to use a provider's tools, for example through OAuth. - **Sessions** bind a tool selection and permission policy to an MCP URL that an agent connects to. - **Users** and **end user limits** show and limit activity per end user, identified by a session's `actorId`. To find and call tools in a session, use the [Action Gateway Data Plane](#tag/Action-Gateway-Data-Plane) endpoints or connect an MCP client to the session's `mcpUrl`.

GitHub OpenAPI

Operations 43

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/action-gateway/actors/{actor_id}/limits Get an actor's action gateway limits · Get action gateway actors by actor id limits #
Ask an LLM
“What limits are set on an action gateway actor?”
“Can I see the usage limits for a specific actor?”
Tell an agent
Show the limits for action gateway actor {actor_id}.
Get the usage limits of actor {actor_id}.
POST /v2/action-gateway/actors/{actor_id}/limits:clear Clear an actor's action gateway limits · Create action gateway actors by actor id limits:clear #
Ask an LLM
“How do I reset an actor's action gateway limits to zero?”
“Can I clear all limits on an actor?”
Tell an agent destructive · confirm first
Clear the limits for action gateway actor {actor_id}.
Reset every limit on actor {actor_id} to zero.
POST /v2/action-gateway/actors/{actor_id}/limits:set Set an actor's action gateway limits · Create action gateway actors by actor id limits:set #
Ask an LLM
“Can I cap how much an action gateway actor can use?”
“How do I set new limits on an actor?”
Tell an agent
Set limits on action gateway actor {actor_id}.
Cap the usage of actor {actor_id}.
POST /v2/action-gateway/connections Create an action gateway connection · Create action gateway connections #
Ask an LLM
“How do I add a new connection to the action gateway?”
“Can I create a connection for an MCP server?”
Tell an agent
Create an action gateway connection.
Add a new connection to the action gateway.
GET /v2/action-gateway/connections List action gateway connections · Get action gateway connections #
Ask an LLM
“Which action gateway connections are configured?”
“What connections are set up for the action gateway?”
Tell an agent
List all action gateway connections.
Show every action gateway connection.
GET /v2/action-gateway/connections/{id} Get an action gateway connection · Get action gateway connections by id #
Ask an LLM
“What are the details of one action gateway connection?”
“Can I look up a single action gateway connection by ID?”
Tell an agent
Get action gateway connection {id}.
Show the details of connection {id}.
DELETE /v2/action-gateway/connections/{id} Delete an action gateway connection · Delete action gateway connections by id #
Ask an LLM
“How do I remove a connection from the action gateway?”
“Can I delete an action gateway connection?”
Tell an agent destructive · confirm first
Delete action gateway connection {id}.
Remove connection {id} from the action gateway.
POST /v2/action-gateway/mcp-servers Register an MCP server with the action gateway · Create action gateway mcp servers #
Ask an LLM
“How do I register a remote MCP server with the action gateway?”
“Can I add a new MCP server reference?”
Tell an agent
Register a new MCP server with the action gateway.
Add a remote MCP server to the action gateway.
GET /v2/action-gateway/mcp-servers List action gateway MCP servers · Get action gateway mcp servers #
Ask an LLM
“Which MCP servers are registered with the action gateway?”
“What remote MCP servers are enabled?”
Tell an agent
List all action gateway MCP servers.
Show every registered MCP server.
GET /v2/action-gateway/mcp-servers/{server_ref} Get an MCP server's details · Get action gateway mcp servers by server ref #
Ask an LLM
“What is the status of one MCP server?”
“Can I look up an MCP server by its reference?”
Tell an agent
Get MCP server {server_ref}.
Show the details of MCP server {server_ref}.
PATCH /v2/action-gateway/mcp-servers/{server_ref} Update an MCP server · Update action gateway mcp servers by server ref #
Ask an LLM
“Can I change the settings of an MCP server?”
“How do I edit an existing MCP server reference?”
Tell an agent
Update MCP server {server_ref}.
Edit the configuration of MCP server {server_ref}.
DELETE /v2/action-gateway/mcp-servers/{server_ref} Unregister an MCP server · Delete action gateway mcp servers by server ref #
Ask an LLM
“How do I remove an MCP server from the action gateway?”
“Can I unregister a remote MCP server?”
Tell an agent destructive · confirm first
Unregister MCP server {server_ref}.
Remove MCP server {server_ref} from the action gateway.
POST /v2/action-gateway/mcp-servers/{server_ref}/resync Resync an MCP server's tools · Create action gateway mcp servers by server ref resync #
Ask an LLM
“How do I refresh the tool list from an MCP server?”
“Can I force an MCP server to resync its tools?”
Tell an agent
Resync the tools of MCP server {server_ref}.
Force MCP server {server_ref} to refresh its tool list.
GET /v2/action-gateway/mcp-servers/{server_ref}/tools List an MCP server's tools · Get action gateway mcp servers by server ref tools #
Ask an LLM
“Which tools does an MCP server expose?”
“Can I see the tool list for one MCP server?”
Tell an agent
List the tools of MCP server {server_ref}.
Show which tools server {server_ref} provides.
PUT /v2/action-gateway/mcp-servers/{server_ref}/tools Replace an MCP server's tools · Replace action gateway mcp servers by server ref tools #
Ask an LLM
“Can I overwrite the tool list an MCP server exposes?”
“How do I set exactly which tools a server provides?”
Tell an agent
Replace the tools of MCP server {server_ref}.
Set the tool list for server {server_ref} to this exact list.
POST /v2/action-gateway/output-views Create an output view · Create action gateway output views #
Ask an LLM
“How do I define a new output view for the action gateway?”
“Can I create an output view to reshape tool output?”
Tell an agent
Create an output view.
Add a new output view to the action gateway.
GET /v2/action-gateway/output-views List action gateway output views · Get action gateway output views #
Ask an LLM
“What output views are defined for the action gateway?”
“Which output views exist?”
Tell an agent
List all action gateway output views.
Show every output view.
POST /v2/action-gateway/output-views/preview Preview an output view · Create action gateway output views preview #
Ask an LLM
“Can I test how an output view reshapes tool output before saving it?”
“What would an output view look like on a sample result?”
Tell an agent
Preview this output view.
Show what the output view would return for a sample result.
GET /v2/action-gateway/output-views/{view_id} Get an output view · Get action gateway output views by view id #
Ask an LLM
“What does one output view define?”
“Can I look up an output view by ID?”
Tell an agent
Get output view {view_id}.
Show the definition of output view {view_id}.
DELETE /v2/action-gateway/output-views/{view_id} Delete an output view · Delete action gateway output views by view id #
Ask an LLM
“How do I remove an output view?”
“Can I delete an output view I no longer need?”
Tell an agent destructive · confirm first
Delete output view {view_id}.
Remove output view {view_id} from the action gateway.
POST /v2/action-gateway/sessions Create an action gateway session · Create action gateway sessions #
Ask an LLM
“How do I open a new session for an agent to run actions?”
“Can I create a fresh action gateway session for a team member?”
Tell an agent
Create a new action gateway session.
Open a session so an agent can run actions.
GET /v2/action-gateway/sessions List action gateway sessions · Get action gateway sessions #
Ask an LLM
“Which agent sessions are currently open in my action gateway?”
“Can I see all the sessions my team is running?”
Tell an agent
List my action gateway sessions.
Show every session in the action gateway.
GET /v2/action-gateway/sessions/search Search action gateway sessions · Get action gateway sessions search #
Ask an LLM
“Can I search my action gateway sessions by name?”
“What sessions match a search query in the action gateway?”
Tell an agent
Search my action gateway sessions.
Find sessions in the action gateway matching a query.
DELETE /v2/action-gateway/sessions/{session_urn} Delete an action gateway session · Delete action gateway sessions by session urn #
Ask an LLM
“How do I close and delete an action gateway session?”
“Can I remove a session by its URN?”
Tell an agent destructive · confirm first
Delete action gateway session {session_urn}.
Close the session {session_urn} in the action gateway.
POST /v2/action-gateway/toolbelts Create an action gateway toolbelt · Create action gateway toolbelts #
Ask an LLM
“How do I create a new toolbelt for my team?”
“Can I add a toolbelt to the action gateway?”
Tell an agent
Create a new action gateway toolbelt.
Add a toolbelt so sessions can reference it.
GET /v2/action-gateway/toolbelts List action gateway toolbelts · Get action gateway toolbelts #
Ask an LLM
“What toolbelts are available in my action gateway?”
“Can I see every toolbelt my team owns?”
Tell an agent
List my action gateway toolbelts.
Show all toolbelts in the action gateway.
GET /v2/action-gateway/toolbelts/search Search action gateway toolbelts · Get action gateway toolbelts search #
Ask an LLM
“Can I search toolbelts in the action gateway?”
“Which toolbelts match a search term?”
Tell an agent
Search my action gateway toolbelts.
Find toolbelts in the action gateway by name.
GET /v2/action-gateway/toolbelts/{name} Get an action gateway toolbelt · Get action gateway toolbelts by name #
Ask an LLM
“How do I view one toolbelt's details?”
“Can I look up a toolbelt by name?”
Tell an agent
Get action gateway toolbelt {name}.
Show the toolbelt {name} in the action gateway.
DELETE /v2/action-gateway/toolbelts/{name} Delete an action gateway toolbelt · Delete action gateway toolbelts by name #
Ask an LLM
“How do I delete a toolbelt I no longer need?”
“Can I remove a toolbelt by name?”
Tell an agent destructive · confirm first
Delete action gateway toolbelt {name}.
Remove the toolbelt {name} from the action gateway.
GET /v2/action-gateway/toolbelts/{name}/providers List providers in a toolbelt · Get action gateway toolbelts by name providers #
Ask an LLM
“Which providers are included in a toolbelt?”
“Can I see every provider in a toolbelt?”
Tell an agent
List the providers in toolbelt {name}.
Show which providers {name} contains.
GET /v2/action-gateway/toolbelts/{name}/providers/{provider}/tools List tools from one provider in a toolbelt · Get action gateway toolbelts by name providers by provider tools #
Ask an LLM
“What tools does a single provider offer in a toolbelt?”
“Can I list only one provider's tools in a toolbelt?”
Tell an agent
List the tools from provider {provider} in toolbelt {name}.
Show only {provider} tools in toolbelt {name}.
POST /v2/action-gateway/toolbelts/{name}/tools/add Add tools to a toolbelt · Create action gateway toolbelts by name tools add #
Ask an LLM
“How do I add tools to an existing toolbelt?”
“Can I grow a toolbelt by including more tools?”
Tell an agent
Add tools to toolbelt {name}.
Grow the toolbelt {name} with more tools.
POST /v2/action-gateway/toolbelts/{name}/tools/remove Remove tools from a toolbelt · Create action gateway toolbelts by name tools remove #
Ask an LLM
“How do I take tools out of a toolbelt?”
“Can I shrink a toolbelt by removing tools?”
Tell an agent
Remove tools from toolbelt {name}.
Shrink the toolbelt {name} by removing tools.
GET /v2/action-gateway/tools List action gateway tools · Get action gateway tools #
Ask an LLM
“What tools are available in the action gateway?”
“Can I see every tool the gateway knows about?”
Tell an agent
List all action gateway tools.
Show every tool the gateway can call.
GET /v2/action-gateway/tools/health Check action gateway tool health · Get action gateway tools health #
Ask an LLM
“Are the tools in my action gateway healthy?”
“Can I check the overall health of every gateway tool?”
Tell an agent
Check the health of all action gateway tools.
Report whether every gateway tool is healthy.
GET /v2/action-gateway/tools/health/providers Check action gateway tool health per provider · Get action gateway tools health providers #
Ask an LLM
“Which providers have tools that are down?”
“Can I see tool health grouped by provider?”
Tell an agent
Check action gateway tool health per provider.
Show health for each provider's tools.
GET /v2/action-gateway/tools/health/tools/{tool_slug} Check one tool's health · Get action gateway tools health tools by tool slug #
Ask an LLM
“Is a specific tool in the action gateway working?”
“Can I check the health of one tool by its slug?”
Tell an agent
Check the health of tool {tool_slug}.
Tell me whether {tool_slug} is healthy.
GET /v2/action-gateway/tools/providers List action gateway tool providers · Get action gateway tools providers #
Ask an LLM
“Which tool providers are registered in the action gateway?”
“Can I see all the providers that offer tools?”
Tell an agent
List action gateway tool providers.
Show every provider that offers tools.
GET /v2/action-gateway/tools/providers/search Search action gateway tool providers · Get action gateway tools providers search #
Ask an LLM
“Can I search the tool providers in the action gateway?”
“Which provider offers a particular tool?”
Tell an agent
Search action gateway tool providers.
Find a provider in the action gateway by name.
GET /v2/action-gateway/tools/search Search action gateway tools · Get action gateway tools search #
Ask an LLM
“Can I search the tools available in the action gateway?”
“What tools match a keyword in the gateway?”
Tell an agent
Search action gateway tools.
Find tools in the action gateway by keyword.
GET /v2/action-gateway/tools/toolkits List the action gateway toolkits · Get action gateway tools toolkits #
Ask an LLM
“Which toolkits are available to my agent sessions?”
“Can I browse the action gateway's tool catalog?”
Tell an agent
List the action gateway toolkits.
Show the available toolkits for my sessions.
GET /v2/action-gateway/users List action gateway users · Get action gateway users #
Ask an LLM
“Who has access to the action gateway?”
“Can I see every user in the action gateway?”
Tell an agent
List all action gateway users.
Show every user with action gateway access.
GET /v2/action-gateway/users/{user_id} Get an action gateway user · Get action gateway users by user id #
Ask an LLM
“Can I look up one action gateway user by ID?”
“What details are stored for a single action gateway user?”
Tell an agent
Get action gateway user {user_id}.
Show the record for action gateway user {user_id}.

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-action-gateway-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-action-gateway-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigitalOcean Action Gateway API
  version: '2.0'
  description: 'Action Gateway gives AI agents governed access to tools over the Model

    Context Protocol (MCP). The `/v2/action-gateway` endpoints manage the

    tool catalog and the resources that control how agents use it:


    - **Tools** browse and search the catalog, its providers, and global

    provider and tool health.

    - **Toolbelts** are versioned, team-owned sets of tools that sessions

    and policies reference as `toolbelt:@`.

    - **Output views** reshape a tool''s output before it reaches the agent.

    - **MCP servers** register your own remote MCP servers and choose which

    of their tools to enable.

    - **Connections** authorize one of your end users to use a provider''s

    tools, for example through OAuth.

    - **Sessions** bind a tool selection and permission policy to an MCP URL

    that an agent connects to.

    - **Users** and **end user limits** show and limit activity per end

    user, identified by a session''s `actorId`.


    To find and call tools in a session, use the

    Action Gateway Data Plane endpoints or

    connect an MCP client to the session''s `mcpUrl`.'
  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: Action Gateway
  description: 'Action Gateway gives AI agents governed access to tools over the Model

    Context Protocol (MCP). The `/v2/action-gateway` endpoints manage the

    tool catalog and the resources that control how agents use it:


    - **Tools** browse and search the catalog, its providers, and global

    provider and tool health.

    - **Toolbelts** are versioned, team-owned sets of tools that sessions

    and policies reference as `toolbelt:@`.

    - **Output views** reshape a tool''s output before it reaches the agent.

    - **MCP servers** register your own remote MCP servers and choose which

    of their tools to enable.

    - **Connections** authorize one of your end users to use a provider''s

    tools, for example through OAuth.

    - **Sessions** bind a tool selection and permission policy to an MCP URL

    that an agent connects to.

    - **Users** and **end user limits** show and limit activity per end

    user, identified by a session''s `actorId`.


    To find and call tools in a session, use the

    Action Gateway Data Plane endpoints or

    connect an MCP client to the session''s `mcpUrl`.'
paths:
  /v2/action-gateway/actors/{actor_id}/limits:
    get:
      $ref: resources/action_gateway/actorLimits_get.yml
      tags:
      - Action Gateway
      summary: Get action gateway actors by actor id limits
      x-summary-source: derived
      operationId: getV2ActionGatewayActorsByActorIdLimits
      x-operation-id-source: derived
  /v2/action-gateway/actors/{actor_id}/limits:clear:
    post:
      $ref: resources/action_gateway/actorLimits_delete.yml
      tags:
      - Action Gateway
      summary: Create action gateway actors by actor id limits:clear
      x-summary-source: derived
      operationId: postV2ActionGatewayActorsByActorIdLimits:clear
      x-operation-id-source: derived
  /v2/action-gateway/actors/{actor_id}/limits:set:
    post:
      $ref: resources/action_gateway/actorLimits_update.yml
      tags:
      - Action Gateway
      summary: Create action gateway actors by actor id limits:set
      x-summary-source: derived
      operationId: postV2ActionGatewayActorsByActorIdLimits:set
      x-operation-id-source: derived
  /v2/action-gateway/connections:
    post:
      $ref: resources/action_gateway/connections_create.yml
      tags:
      - Action Gateway
      summary: Create action gateway connections
      x-summary-source: derived
      operationId: postV2ActionGatewayConnections
      x-operation-id-source: derived
    get:
      $ref: resources/action_gateway/connections_list.yml
      tags:
      - Action Gateway
      summary: Get action gateway connections
      x-summary-source: derived
      operationId: getV2ActionGatewayConnections
      x-operation-id-source: derived
  /v2/action-gateway/connections/{id}:
    get:
      $ref: resources/action_gateway/connections_get.yml
      tags:
      - Action Gateway
      summary: Get action gateway connections by id
      x-summary-source: derived
      operationId: getV2ActionGatewayConnectionsById
      x-operation-id-source: derived
    delete:
      $ref: resources/action_gateway/connections_delete.yml
      tags:
      - Action Gateway
      summary: Delete action gateway connections by id
      x-summary-source: derived
      operationId: deleteV2ActionGatewayConnectionsById
      x-operation-id-source: derived
  /v2/action-gateway/mcp-servers:
    post:
      $ref: resources/action_gateway/mcpServers_create.yml
      tags:
      - Action Gateway
      summary: Create action gateway mcp servers
      x-summary-source: derived
      operationId: postV2ActionGatewayMcpServers
      x-operation-id-source: derived
    get:
      $ref: resources/action_gateway/mcpServers_list.yml
      tags:
      - Action Gateway
      summary: Get action gateway mcp servers
      x-summary-source: derived
      operationId: getV2ActionGatewayMcpServers
      x-operation-id-source: derived
  /v2/action-gateway/mcp-servers/{server_ref}:
    get:
      $ref: resources/action_gateway/mcpServers_get.yml
      tags:
      - Action Gateway
      summary: Get action gateway mcp servers by server ref
      x-summary-source: derived
      operationId: getV2ActionGatewayMcpServersByServerRef
      x-operation-id-source: derived
    patch:
      $ref: resources/action_gateway/mcpServers_patch.yml
      tags:
      - Action Gateway
      summary: Update action gateway mcp servers by server ref
      x-summary-source: derived
      operationId: patchV2ActionGatewayMcpServersByServerRef
      x-operation-id-source: derived
    delete:
      $ref: resources/action_gateway/mcpServers_delete.yml
      tags:
      - Action Gateway
      summary: Delete action gateway mcp servers by server ref
      x-summary-source: derived
      operationId: deleteV2ActionGatewayMcpServersByServerRef
      x-operation-id-source: derived
  /v2/action-gateway/mcp-servers/{server_ref}/resync:
    post:
      $ref: resources/action_gateway/mcpServers_run_resync.yml
      tags:
      - Action Gateway
      summary: Create action gateway mcp servers by server ref resync
      x-summary-source: derived
      operationId: postV2ActionGatewayMcpServersByServerRefResync
      x-operation-id-source: derived
  /v2/action-gateway/mcp-servers/{server_ref}/tools:
    get:
      $ref: resources/action_gateway/mcpServers_list_tools.yml
      tags:
      - Action Gateway
      summary: Get action gateway mcp servers by server ref tools
      x-summary-source: derived
      operationId: getV2ActionGatewayMcpServersByServerRefTools
      x-operation-id-source: derived
    put:
      $ref: resources/action_gateway/mcpServers_update_tools.yml
      tags:
      - Action Gateway
      summary: Replace action gateway mcp servers by server ref tools
      x-summary-source: derived
      operationId: putV2ActionGatewayMcpServersByServerRefTools
      x-operation-id-source: derived
  /v2/action-gateway/output-views:
    post:
      $ref: resources/action_gateway/outputViews_create.yml
      tags:
      - Action Gateway
      summary: Create action gateway output views
      x-summary-source: derived
      operationId: postV2ActionGatewayOutputViews
      x-operation-id-source: derived
    get:
      $ref: resources/action_gateway/outputViews_list.yml
      tags:
      - Action Gateway
      summary: Get action gateway output views
      x-summary-source: derived
      operationId: getV2ActionGatewayOutputViews
      x-operation-id-source: derived
  /v2/action-gateway/output-views/preview:
    post:
      $ref: resources/action_gateway/outputViews_validate.yml
      tags:
      - Action Gateway
      summary: Create action gateway output views preview
      x-summary-source: derived
      operationId: postV2ActionGatewayOutputViewsPreview
      x-operation-id-source: derived
  /v2/action-gateway/output-views/{view_id}:
    get:
      $ref: resources/action_gateway/outputViews_get.yml
      tags:
      - Action Gateway
      summary: Get action gateway output views by view id
      x-summary-source: derived
      operationId: getV2ActionGatewayOutputViewsByViewId
      x-operation-id-source: derived
    delete:
      $ref: resources/action_gateway/outputViews_delete.yml
      tags:
      - Action Gateway
      summary: Delete action gateway output views by view id
      x-summary-source: derived
      operationId: deleteV2ActionGatewayOutputViewsByViewId
      x-operation-id-source: derived
  /v2/action-gateway/sessions:
    post:
      $ref: resources/action_gateway/sessions_create.yml
      tags:
      - Action Gateway
      summary: Create action gateway sessions
      x-summary-source: derived
      operationId: postV2ActionGatewaySessions
      x-operation-id-source: derived
    get:
      $ref: resources/action_gateway/sessions_list.yml
      tags:
      - Action Gateway
      summary: Get action gateway sessions
      x-summary-source: derived
      operationId: getV2ActionGatewaySessions
      x-operation-id-source: derived
  /v2/action-gateway/sessions/search:
    get:
      $ref: resources/action_gateway/sessions_list_search.yml
      tags:
      - Action Gateway
      summary: Get action gateway sessions search
      x-summary-source: derived
      operationId: getV2ActionGatewaySessionsSearch
      x-operation-id-source: derived
  /v2/action-gateway/sessions/{session_urn}:
    delete:
      $ref: resources/action_gateway/sessions_delete.yml
      tags:
      - Action Gateway
      summary: Delete action gateway sessions by session urn
      x-summary-source: derived
      operationId: deleteV2ActionGatewaySessionsBySessionUrn
      x-operation-id-source: derived
  /v2/action-gateway/toolbelts:
    post:
      $ref: resources/action_gateway/toolbelts_create.yml
      tags:
      - Action Gateway
      summary: Create action gateway toolbelts
      x-summary-source: derived
      operationId: postV2ActionGatewayToolbelts
      x-operation-id-source: derived
    get:
      $ref: resources/action_gateway/toolbelts_list.yml
      tags:
      - Action Gateway
      summary: Get action gateway toolbelts
      x-summary-source: derived
      operationId: getV2ActionGatewayToolbelts
      x-operation-id-source: derived
  /v2/action-gateway/toolbelts/search:
    get:
      $ref: resources/action_gateway/toolbelts_list_search.yml
      tags:
      - Action Gateway
      summary: Get action gateway toolbelts search
      x-summary-source: derived
      operationId: getV2ActionGatewayToolbeltsSearch
      x-operation-id-source: derived
  /v2/action-gateway/toolbelts/{name}:
    get:
      $ref: resources/action_gateway/toolbelts_get.yml
      tags:
      - Action Gateway
      summary: Get action gateway toolbelts by name
      x-summary-source: derived
      operationId: getV2ActionGatewayToolbeltsByName
      x-operation-id-source: derived
    delete:
      $ref: resources/action_gateway/toolbelts_delete.yml
      tags:
      - Action Gateway
      summary: Delete action gateway toolbelts by name
      x-summary-source: derived
      operationId: deleteV2ActionGatewayToolbeltsByName
      x-operation-id-source: derived
  /v2/action-gateway/toolbelts/{name}/providers:
    get:
      $ref: resources/action_gateway/toolbelts_list_providers.yml
      tags:
      - Action Gateway
      summary: Get action gateway toolbelts by name providers
      x-summary-source: derived
      operationId: getV2ActionGatewayToolbeltsByNameProviders
      x-operation-id-source: derived
  /v2/action-gateway/toolbelts/{name}/providers/{provider}/tools:
    get:
      $ref: resources/action_gateway/toolbelts_list_provider_tools.yml
      tags:
      - Action Gateway
      summary: Get action gateway toolbelts by name providers by provider tools
      x-summary-source: derived
      operationId: getV2ActionGatewayToolbeltsByNameProvidersByProviderTools
      x-operation-id-source: derived
  /v2/action-gateway/toolbelts/{name}/tools/add:
    post:
      $ref: resources/action_gateway/toolbelts_add_tools.yml
      tags:
      - Action Gateway
      summary: Create action gateway toolbelts by name tools add
      x-summary-source: derived
      operationId: postV2ActionGatewayToolbeltsByNameToolsAdd
      x-operation-id-source: derived
  /v2/action-gateway/toolbelts/{name}/tools/remove:
    post:
      $ref: resources/action_gateway/toolbelts_remove_tools.yml
      tags:
      - Action Gateway
      summary: Create action gateway toolbelts by name tools remove
      x-summary-source: derived
      operationId: postV2ActionGatewayToolbeltsByNameToolsRemove
      x-operation-id-source: derived
  /v2/action-gateway/tools:
    get:
      $ref: resources/action_gateway/tools_list.yml
      tags:
      - Action Gateway
      summary: Get action gateway tools
      x-summary-source: derived
      operationId: getV2ActionGatewayTools
      x-operation-id-source: derived
  /v2/action-gateway/tools/health:
    get:
      $ref: resources/action_gateway/tools_list_health.yml
      tags:
      - Action Gateway
      summary: Get action gateway tools health
      x-summary-source: derived
      operationId: getV2ActionGatewayToolsHealth
      x-operation-id-source: derived
  /v2/action-gateway/tools/health/providers:
    get:
      $ref: resources/action_gateway/tools_list_health_providers.yml
      tags:
      - Action Gateway
      summary: Get action gateway tools health providers
      x-summary-source: derived
      operationId: getV2ActionGatewayToolsHealthProviders
      x-operation-id-source: derived
  /v2/action-gateway/tools/health/tools/{tool_slug}:
    get:
      $ref: resources/action_gateway/tools_get_health.yml
      tags:
      - Action Gateway
      summary: Get action gateway tools health tools by tool slug
      x-summary-source: derived
      operationId: getV2ActionGatewayToolsHealthToolsByToolSlug
      x-operation-id-source: derived
  /v2/action-gateway/tools/providers:
    get:
      $ref: resources/action_gateway/tools_list_providers.yml
      tags:
      - Action Gateway
      summary: Get action gateway tools providers
      x-summary-source: derived
      operationId: getV2ActionGatewayToolsProviders
      x-operation-id-source: derived
  /v2/action-gateway/tools/providers/search:
    get:
      $ref: resources/action_gateway/tools_list_search_providers.yml
      tags:
      - Action Gateway
      summary: Get action gateway tools providers search
      x-summary-source: derived
      operationId: getV2ActionGatewayToolsProvidersSearch
      x-operation-id-source: derived
  /v2/action-gateway/tools/search:
    get:
      $ref: resources/action_gateway/tools_list_search.yml
      tags:
      - Action Gateway
      summary: Get action gateway tools search
      x-summary-source: derived
      operationId: getV2ActionGatewayToolsSearch
      x-operation-id-source: derived
  /v2/action-gateway/tools/toolkits:
    get:
      $ref: resources/action_gateway/tools_list_toolkits.yml
      tags:
      - Action Gateway
      summary: Get action gateway tools toolkits
      x-summary-source: derived
      operationId: getV2ActionGatewayToolsToolkits
      x-operation-id-source: derived
  /v2/action-gateway/users:
    get:
      $ref: resources/action_gateway/users_list.yml
      tags:
      - Action Gateway
      summary: Get action gateway users
      x-summary-source: derived
      operationId: getV2ActionGatewayUsers
      x-operation-id-source: derived
  /v2/action-gateway/users/{user_id}:
    get:
      $ref: resources/action_gateway/users_get.yml
      tags:
      - Action Gateway
      summary: Get action gateway users by user id
      x-summary-source: derived
      operationId: getV2ActionGatewayUsersByUserId
      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