DigitalOcean

List and create droplets on DigitalOcean.

Developer toolsAPI key11 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (11)
  4. create_droplet
  5. list_droplets
  6. create_domain
  7. custom_api_call
  8. delete_domain
  9. delete_droplet
  10. get_domain
  11. get_droplet
  12. list_database_clusters
  13. list_database_events
  14. list_domains
  15. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("digital-ocean", action, input) resolves with the provider's answer and rejects when DigitalOcean isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "digital-ocean"} says whether yours can call it.

Workflow
// workflows/notify.ts: call DigitalOcean when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellDigitalocean = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when DigitalOcean isn't connected.
  const output = await step.run("DigitalOcean", () =>
    step.ctx.integrations.invoke("digital-ocean", "create_droplet", {
      "creation_mode": "single",
      "name": "<droplet name>",
      "names": [],
      "size": "<size>",
      "image": "<image>"
    }),
  );
  step.ctx.log("DigitalOcean answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "digital-ocean",
    "piece_action": "create_droplet",
    "input": {
      "creation_mode": "single",
      "name": "<droplet name>",
      "names": [],
      "size": "<size>",
      "image": "<image>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/digital-ocean/create_droplet" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"creation_mode":"single","name":"<droplet name>","names":[],"size":"<size>","image":"<image>"}}'

Actions

create_droplet

Create Droplet. Create a new Droplet or multiple Droplets.

InputTypeDescription
creation_moderequiredone of "single" | "multiple"Create a single Droplet or multiple Droplets at once.
namerequiredtextName for the Droplet (e.g., example.com).
namesrequiredarrayNames for multiple Droplets (up to 10).
regionoptionalid (picked from your account)Region to deploy the Droplet.
sizerequiredid (picked from your account)Droplet size (CPU, RAM, disk).
imagerequiredid (picked from your account)Base image for the Droplet.
ssh_keysoptionalids (picked from your account)SSH keys to embed in the Droplet.
vpc_uuidoptionalid (picked from your account)VPC network for the Droplet.
backupsoptionalbooleanEnable automated backups.
ipv6optionalbooleanEnable IPv6 networking.
monitoringoptionalbooleanInstall the DigitalOcean monitoring agent.
tagsoptionalarrayTags to apply to the Droplet.
user_dataoptionallong textCloud-init script or user data (max 64 KiB).
with_droplet_agentoptionalbooleanInstall agent for web console access.

list_droplets

List All Droplets. Retrieve a list of all Droplets in your account.

InputTypeDescription
per_pageoptionalnumberNumber of Droplets to return per page (1-200).
pageoptionalnumberWhich page of results to return.
tag_nameoptionaltextFilter Droplets by a specific tag. Cannot be combined with Name or Type.
nameoptionaltextFilter by exact Droplet name (case-insensitive). Cannot be combined with Tag Name.
typeoptionalone of "droplets" | "gpus"Filter by Droplet type. Cannot be combined with Tag Name.

create_domain

Create Domain. Add a new domain to your DigitalOcean account.

InputTypeDescription
namerequiredtextThe domain name (e.g., example.com).
ip_addressoptionaltextOptional IP address to create an A record pointing to the apex domain.

custom_api_call

Custom API Call. Make a custom API call to a specific endpoint

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

delete_domain

Delete Domain. Remove a domain from your DigitalOcean account.

InputTypeDescription
domain_namerequiredtextThe domain name to delete (e.g., example.com).

delete_droplet

Delete Droplet. Delete an existing Droplet.

InputTypeDescription
droplet_idrequiredid (picked from your account)Select the Droplet to delete.

get_domain

Get Domain. Retrieve details about a specific domain.

InputTypeDescription
domain_namerequiredtextThe domain name to retrieve (e.g., example.com).

get_droplet

Get Droplet. Retrieve details about a specific Droplet.

InputTypeDescription
droplet_idrequiredid (picked from your account)Select the Droplet to retrieve.

list_database_clusters

List Database Clusters. Retrieve a list of all database clusters in your account.

InputTypeDescription
tag_nameoptionaltextFilter database clusters by a specific tag.

list_database_events

List Database Events. Retrieve all event logs for a database cluster.

InputTypeDescription
database_cluster_uuidrequiredid (picked from your account)Select the database cluster.

list_domains

List All Domains. Retrieve a list of all domains in your account.

InputTypeDescription
per_pageoptionalnumberNumber of domains to return per page (1-200).
pageoptionalnumberWhich page of results to return.

Details

Id
digital-ocean
Category
Developer tools
Tags
cloud, infrastructure, hosting, droplets, vps
Package
@activepieces/piece-digital-ocean@0.0.5
Runs
Through the integration runner