Daytona Sandbox API

The sandbox API from Daytona — 37 operation(s) for sandbox.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 46

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 /sandbox List sandboxes · List sandboxes #
Ask an LLM
“Which sandboxes exist in my organization?”
“Can I list only the sandboxes that are in a particular state?”
Tell an agent
List all sandboxes.
List sandboxes in state {states}.
POST /sandbox Create a sandbox · Create a new sandbox #
Ask an LLM
“How do I spin up a new sandbox from a snapshot?”
“Can I set CPU, memory and disk when creating a sandbox?”
Tell an agent
Create a sandbox named {name} from snapshot {snapshot}.
Create a sandbox with {cpu} CPU, {memory} GB memory and {disk} GB disk.
GET /sandbox/for-runner List sandboxes on the runner · Get sandboxes for the authenticated runner #
Ask an LLM
“Which sandboxes is the runner currently managing?”
“Can I skip sandboxes that differ between desired and actual state?”
Tell an agent
List the sandboxes on this runner.
List runner sandboxes in states {states} and skip reconciling.
DELETE /sandbox/{sandboxIdOrName} Delete a sandbox · Delete sandbox #
Ask an LLM
“How do I permanently delete a sandbox?”
“Can I remove a sandbox by name?”
Tell an agent destructive · confirm first
Delete sandbox {sandboxIdOrName}.
Permanently remove the sandbox {sandboxIdOrName}.
GET /sandbox/{sandboxIdOrName} Get a sandbox's details · Get sandbox details #
Ask an LLM
“What are the current state and resources of a sandbox?”
“Can I see verbose details for a single sandbox?”
Tell an agent
Show sandbox {sandboxIdOrName}.
Get verbose details for sandbox {sandboxIdOrName}.
POST /sandbox/{sandboxIdOrName}/recover Recover a sandbox from error · Recover sandbox from error state #
Ask an LLM
“How do I bring a sandbox back from an error state?”
“Can I recover a sandbox without starting it right away?”
Tell an agent
Recover sandbox {sandboxIdOrName}.
Recover {sandboxIdOrName} and skip starting it ({skipStart}).
POST /sandbox/{sandboxIdOrName}/start Start or resume a sandbox · Start or resume sandbox #
Ask an LLM
“How do I start a stopped sandbox?”
“Can I resume a paused sandbox?”
Tell an agent
Start sandbox {sandboxIdOrName}.
Resume the paused sandbox {sandboxIdOrName}.
POST /sandbox/{sandboxIdOrName}/stop Stop a sandbox · Stop sandbox #
Ask an LLM
“How do I stop a running sandbox?”
“Can I force a sandbox to stop with SIGKILL?”
Tell an agent
Stop sandbox {sandboxIdOrName}.
Force stop sandbox {sandboxIdOrName} with SIGKILL.
POST /sandbox/{sandboxIdOrName}/pause Pause a sandbox · Pause sandbox #
Ask an LLM
“How do I pause a running sandbox?”
“Can I pause a sandbox to save resources?”
Tell an agent
Pause sandbox {sandboxIdOrName}.
Put sandbox {sandboxIdOrName} into a paused state.
POST /sandbox/{sandboxIdOrName}/resize Resize a sandbox's resources · Resize sandbox resources #
Ask an LLM
“Can I increase the CPU or memory of a running sandbox?”
“Is it possible to grow a sandbox's disk space?”
Tell an agent
Resize sandbox {sandboxIdOrName} to {cpu} CPU and {memory} GB memory.
Increase the disk of sandbox {sandboxIdOrName} to {disk} GB.
PUT /sandbox/{sandboxIdOrName}/labels Replace a sandbox's labels · Replace sandbox labels #
Ask an LLM
“How do I overwrite all labels on a sandbox?”
“Can I set a sandbox's labels to a specific key-value map?”
Tell an agent
Replace the labels on sandbox {sandboxIdOrName} with {labels}.
Set sandbox {sandboxIdOrName} labels to {labels}.
PUT /sandbox/{sandboxId}/state Update a sandbox's state · Update sandbox state #
Ask an LLM
“How do I report a sandbox as errored?”
“Can I mark a sandbox as recoverable?”
Tell an agent
Set sandbox {sandboxId} to state {state}.
Mark sandbox {sandboxId} as {state} with error reason {errorReason}.
POST /sandbox/{sandboxIdOrName}/backup Create a sandbox backup (deprecated) · Create sandbox backup #
Ask an LLM
“Is there still a way to manually create a backup of a sandbox?”
“Does the create-backup endpoint still work?”
Tell an agent
Create a backup of sandbox {sandboxIdOrName} (deprecated).
Manually back up sandbox {sandboxIdOrName} using the deprecated endpoint.
POST /sandbox/{sandboxIdOrName}/snapshot Save a sandbox as a named snapshot · Create a snapshot from a sandbox #
Ask an LLM
“How do I save a sandbox's current state as a reusable named snapshot?”
“Can I capture a running VM sandbox's memory in a snapshot?”
Tell an agent
Save sandbox {sandboxIdOrName} as a new snapshot called {name}.
Snapshot the running VM sandbox {sandboxIdOrName} as {name} with memory included set to {includeMemory}.
POST /sandbox/{sandboxIdOrName}/fork Fork a sandbox · Fork a sandbox #
Ask an LLM
“How do I create a copy of a sandbox?”
“Can I give a forked sandbox its own name?”
Tell an agent
Fork sandbox {sandboxIdOrName}.
Fork sandbox {sandboxIdOrName} as {name}.
GET /sandbox/{sandboxIdOrName}/forks List a sandbox's forks · Get sandbox fork children #
Ask an LLM
“Which sandboxes were forked from a given sandbox?”
“Can I include destroyed forks in the list?”
Tell an agent
List the forks of sandbox {sandboxIdOrName}.
List forks of sandbox {sandboxIdOrName}, including destroyed ones ({includeDestroyed}).
GET /sandbox/{sandboxIdOrName}/parent Get a sandbox's parent · Get sandbox fork parent #
Ask an LLM
“Which sandbox was this fork originally created from?”
“Can I find the parent of a forked sandbox?”
Tell an agent
Get the parent of sandbox {sandboxIdOrName}.
Show the original sandbox that {sandboxIdOrName} was forked from.
GET /sandbox/{sandboxIdOrName}/ancestors Get a sandbox's fork ancestor chain · Get sandbox fork ancestor chain #
Ask an LLM
“What is the full lineage of a forked sandbox?”
“Can I see every ancestor a sandbox was forked from?”
Tell an agent
Show the ancestor chain of sandbox {sandboxIdOrName}.
Trace the fork lineage back to the original sandbox for {sandboxIdOrName}.
POST /sandbox/{sandboxIdOrName}/public/{isPublic} Make a sandbox public or private · Update public status #
Ask an LLM
“How do I make a sandbox's preview public?”
“Can I turn off public access to a sandbox?”
Tell an agent
Set sandbox {sandboxIdOrName} public to {isPublic}.
Make the preview of sandbox {sandboxIdOrName} {isPublic}.
GET /sandbox/{sandboxId}/signing-key Get a sandbox's signing key · Get the signing key for a sandbox #
Ask an LLM
“Where do I get the signing key for a sandbox?”
“What does a sandbox use to sign its requests?”
Tell an agent
Get the signing key for sandbox {sandboxId}.
Show the signing key of sandbox {sandboxId}.
POST /sandbox/{sandboxId}/signing-key/rotate Rotate a sandbox's signing key · Rotate the signing key, invalidating all previously signed URLs #
Ask an LLM
“How do I invalidate all URLs signed with a sandbox's old signing key?”
“Can I rotate the signing key on a running sandbox?”
Tell an agent destructive · confirm first
Rotate the signing key on sandbox {sandboxId}.
Invalidate every previously signed URL by rotating sandbox {sandboxId}'s signing key.
POST /sandbox/{sandboxId}/last-activity Record a sandbox's last activity · Update sandbox last activity #
Ask an LLM
“How do I reset a sandbox's inactivity timer?”
“Can I mark a sandbox as recently active with a specific activity type?”
Tell an agent
Update the last activity on sandbox {sandboxId}.
Mark sandbox {sandboxId} as recently active with activity type {activityType}.
POST /sandbox/{sandboxIdOrName}/autostop/{interval} Set a sandbox's auto-stop interval · Set sandbox auto-stop interval #
Ask an LLM
“How do I make a sandbox stop automatically after a set time?”
“Can I turn off auto-stop on a sandbox by setting the interval to zero?”
Tell an agent
Set sandbox {sandboxIdOrName} to auto-stop after {interval} minutes.
Disable auto-stop on sandbox {sandboxIdOrName} by setting its interval to {interval}.
POST /sandbox/{sandboxIdOrName}/autopause/{interval} Set a sandbox's auto-pause interval · Set sandbox auto-pause interval #
Ask an LLM
“How do I pause a sandbox automatically after a period of inactivity?”
“Can I pause a sandbox after a set number of minutes?”
Tell an agent
Set sandbox {sandboxIdOrName} to auto-pause after {interval} minutes.
Pause sandbox {sandboxIdOrName} automatically after {interval} minutes of inactivity.
POST /sandbox/{sandboxIdOrName}/ttl/{ttlMinutes} Set a sandbox's time-to-live · Set sandbox TTL #
Ask an LLM
“How do I make a sandbox destroy itself after a set time?”
“Can I keep a sandbox alive until a certain time-to-live runs out?”
Tell an agent destructive · confirm first
Set sandbox {sandboxIdOrName} to destroy itself after {ttlMinutes} minutes.
Make sandbox {sandboxIdOrName} self-destruct after {ttlMinutes} minutes.
POST /sandbox/{sandboxIdOrName}/autoarchive/{interval} Set a sandbox's auto-archive interval · Set sandbox auto-archive interval #
Ask an LLM
“How do I archive a sandbox automatically after a set time?”
“Can I archive a sandbox after a certain number of minutes?”
Tell an agent
Set sandbox {sandboxIdOrName} to auto-archive after {interval} minutes.
Archive sandbox {sandboxIdOrName} automatically after {interval} minutes.
POST /sandbox/{sandboxIdOrName}/autodelete/{interval} Set a sandbox's auto-delete interval · Set sandbox auto-delete interval #
Ask an LLM
“How do I delete a sandbox automatically after a set time?”
“Can I delete a sandbox immediately when it stops by setting the interval to zero?”
Tell an agent destructive · confirm first
Set sandbox {sandboxIdOrName} to auto-delete after {interval} minutes.
Delete sandbox {sandboxIdOrName} automatically after {interval} minutes.
POST /sandbox/{sandboxIdOrName}/network-settings Change a sandbox's network policy · Update sandbox network settings #
Ask an LLM
“How do I block all outbound traffic on a running sandbox?”
“Can I allow only certain domains or CIDR ranges on a sandbox?”
Tell an agent
Block all network access on sandbox {sandboxIdOrName}.
Allow only domains {domainAllowList} and CIDR {networkAllowList} on sandbox {sandboxIdOrName}.
PUT /sandbox/{sandboxIdOrName}/secrets Replace a sandbox's mounted secrets · Update sandbox secrets #
Ask an LLM
“How do I replace the vault secrets mounted in a sandbox?”
“Do newly attached secrets take effect immediately or after a restart?”
Tell an agent
Replace the secrets mounted in sandbox {sandboxIdOrName} with {secrets}.
Detach all secrets from sandbox {sandboxIdOrName} by passing an empty secrets list.
POST /sandbox/{sandboxIdOrName}/archive Archive a sandbox · Archive sandbox #
Ask an LLM
“How do I archive a sandbox so it can be restored later?”
“Can I archive a sandbox by its name as well as its ID?”
Tell an agent destructive · confirm first
Archive sandbox {sandboxIdOrName}.
Mark sandbox {sandboxIdOrName} as archived.
GET /sandbox/{sandboxIdOrName}/ports/{port}/preview-url Get a preview URL for a sandbox port · Get preview URL for a sandbox port #
Ask an LLM
“How do I get a preview URL for a port on a sandbox?”
“Can I preview a sandbox's port without exposing it publicly?”
Tell an agent
Get the preview URL for port {port} on sandbox {sandboxIdOrName}.
Preview sandbox {sandboxIdOrName}'s port {port}.
GET /sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url Get a signed preview URL for a sandbox port · Get signed preview URL for a sandbox port #
Ask an LLM
“How do I get a time-limited signed preview URL for a sandbox port?”
“Can I make a sandbox port preview URL expire automatically?”
Tell an agent
Get a signed preview URL for port {port} on sandbox {sandboxIdOrName}.
Generate a signed preview URL for sandbox {sandboxIdOrName} port {port} that expires in {expiresInSeconds} seconds.
POST /sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url/{token}/expire Expire a signed sandbox port preview URL · Expire signed preview URL for a sandbox port #
Ask an LLM
“How do I revoke a signed preview URL for a sandbox port?”
“Can I expire a single signed preview URL token?”
Tell an agent destructive · confirm first
Expire signed preview URL {token} for port {port} on sandbox {sandboxIdOrName}.
Revoke the preview link {token} on sandbox {sandboxIdOrName} port {port}.
GET /sandbox/{sandboxIdOrName}/build-logs Get a sandbox's build logs (deprecated) · Get build logs #
Ask an LLM
“How do I read the build logs of a sandbox?”
“Is the build logs endpoint still supported?”
Tell an agent
Get the build logs for sandbox {sandboxIdOrName}.
Follow the build logs of sandbox {sandboxIdOrName} with follow set to {follow}.
GET /sandbox/{sandboxIdOrName}/build-logs-url Get a URL for a sandbox's build logs · Get build logs URL #
Ask an LLM
“How do I get a link to a sandbox's build logs?”
“Can I fetch a sandbox's build logs from a URL?”
Tell an agent
Get a URL for the build logs of sandbox {sandboxIdOrName}.
Fetch the build logs of sandbox {sandboxIdOrName} from the logs URL.
DELETE /sandbox/{sandboxIdOrName}/ssh-access Revoke SSH access to a sandbox · Revoke SSH access for sandbox #
Ask an LLM
“How do I revoke SSH access to a sandbox?”
“Can I revoke only one SSH token on a sandbox?”
Tell an agent destructive · confirm first
Revoke SSH access to sandbox {sandboxIdOrName}.
Revoke SSH token {token} on sandbox {sandboxIdOrName}.
POST /sandbox/{sandboxIdOrName}/ssh-access Create SSH access to a sandbox · Create SSH access for sandbox #
Ask an LLM
“How do I get SSH access to a sandbox?”
“Can I set how long SSH access to a sandbox stays valid?”
Tell an agent
Create SSH access to sandbox {sandboxIdOrName}.
Create SSH access to sandbox {sandboxIdOrName} that expires in {expiresInMinutes} minutes.
GET /sandbox/ssh-access/validate Validate SSH access to a sandbox · Validate SSH access for sandbox #
Ask an LLM
“How do I check whether an SSH access token is valid?”
“Can I validate a sandbox SSH token before using it?”
Tell an agent
Validate SSH access token {token}.
Check that SSH token {token} is still valid.
GET /sandbox/{sandboxId}/toolbox-proxy-url Get the toolbox proxy URL for a sandbox · Get toolbox proxy URL for a sandbox #
Ask an LLM
“How do I get the toolbox proxy URL for a sandbox?”
“Where can I proxy requests through a sandbox's toolbox?”
Tell an agent
Get the toolbox proxy URL for sandbox {sandboxId}.
Proxy requests through sandbox {sandboxId}'s toolbox.
GET /sandbox/{sandboxId}/organization Get the organization a sandbox belongs to · Get organization by sandbox ID #
Ask an LLM
“Which organization does a given sandbox belong to?”
“Can I look up a sandbox's organization by its ID?”
Tell an agent
Get the organization that sandbox {sandboxId} belongs to.
Look up the organization of sandbox {sandboxId}.
GET /sandbox/{sandboxId}/region-quota Get a sandbox's region quota · Get region quota by sandbox ID #
Ask an LLM
“How many resources is a particular sandbox allowed in each region?”
“What quota does one sandbox have per region?”
Tell an agent
Get the region quota for sandbox {sandboxId}.
Show how many resources sandbox {sandboxId} is allowed per region.
GET /sandbox/{sandboxId}/secrets Resolve a sandbox's secrets · Resolve sandbox secrets #
Ask an LLM
“How do I fetch the resolved secrets for a sandbox?”
“Can I read the secret values a sandbox has access to?”
Tell an agent
Resolve the secrets for sandbox {sandboxId}.
Fetch the resolved secret values of sandbox {sandboxId}.
GET /sandbox/{sandboxId}/telemetry/logs Get a sandbox's logs over a time range · Get sandbox logs #
Ask an LLM
“How do I read a sandbox's logs between two timestamps?”
“Can I filter a sandbox's logs by severity or search text?”
Tell an agent
Get logs for sandbox {sandboxId} from {from} to {to}.
Show {severities} logs in sandbox {sandboxId} between {from} and {to} matching {search}.
GET /sandbox/{sandboxId}/telemetry/traces Get a sandbox's traces over a time range · Get sandbox traces #
Ask an LLM
“How do I retrieve distributed traces for a sandbox within a time window?”
“Can I page through a sandbox's traces?”
Tell an agent
Get traces for sandbox {sandboxId} from {from} to {to}.
Show {limit} traces of sandbox {sandboxId} between {from} and {to}.
GET /sandbox/{sandboxId}/telemetry/traces/{traceId} Get the spans of one sandbox trace · Get trace spans #
Ask an LLM
“How do I see every span that made up a single trace in a sandbox?”
“What does one trace in a sandbox consist of?”
Tell an agent
Get all spans for trace {traceId} in sandbox {sandboxId}.
Show the span-by-span breakdown of trace {traceId} on sandbox {sandboxId}.
GET /sandbox/{sandboxId}/telemetry/metrics Get a sandbox's metrics over a time range · Get sandbox metrics #
Ask an LLM
“How do I pull metric time series for a sandbox?”
“Can I limit sandbox metrics to certain metric names?”
Tell an agent
Get metrics for sandbox {sandboxId} from {from} to {to}.
Show metrics {metricNames} of sandbox {sandboxId} between {from} and {to}.

Documentation

Specifications

Schemas & Data

Other Resources

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/daytona-io:daytona-io-sandbox-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

daytona-io-sandbox-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@daytona.com
    name: Daytona Platforms Inc.
    url: https://www.daytona.io
  description: Daytona AI platform API Docs
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  title: Daytona Sandbox API
  version: '1.0'
servers:
- url: http://localhost:3000
tags:


# --- truncated at 32 KB (117 KB total) ---
# Full source: https://artifacts.apis.io/daytona-io/openapi/daytona-io-sandbox-api-openapi.yml