Daytona Process API

The process API from Daytona — 14 operation(s) for process.

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 18

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

POST /process/code-run Run Python, JavaScript or TypeScript code · Execute code #
Ask an LLM
“How do I run a Python script in a sandboxed environment?”
“Can I set environment variables when executing code?”
Tell an agent
Run {code} in {language}.
Execute {code} in {language} with environment variables {envs}.
POST /process/execute Run a shell command in a sandbox · Execute a command #
Ask an LLM
“How do I run a shell command inside a sandboxed session?”
“Can I change the working directory of a command I execute?”
Tell an agent
Run the shell command {command}.
Execute {command} in directory {cwd} with environment variables {envs}.
GET /process/pty List active pseudo-terminal sessions · List all PTY sessions #
Ask an LLM
“Which pseudo-terminal sessions are currently active?”
“What PTY sessions exist on my sandbox?”
Tell an agent
List all active PTY sessions.
Show every pseudo-terminal session.
POST /process/pty Create a pseudo-terminal session · Create a new PTY session #
Ask an LLM
“How do I open a new terminal session in a sandbox?”
“Can I start a PTY session without immediately launching it?”
Tell an agent
Create a new PTY session.
Create a PTY session with {rows} rows and {cols} columns.
GET /process/pty/{sessionId} Get a pseudo-terminal session · Get PTY session information #
Ask an LLM
“What are the details of a specific PTY session?”
“Can I check the status of one terminal session?”
Tell an agent
Get PTY session {sessionId}.
Show the details of terminal session {sessionId}.
DELETE /process/pty/{sessionId} Delete a pseudo-terminal session · Delete a PTY session #
Ask an LLM
“How do I close and terminate a terminal session?”
“Can I kill a PTY session by its ID?”
Tell an agent destructive · confirm first
Delete PTY session {sessionId}.
Terminate terminal session {sessionId} and its process.
GET /process/pty/{sessionId}/connect Connect to a pseudo-terminal session over WebSocket · Connect to PTY session via WebSocket #
Ask an LLM
“How do I attach to a terminal session in real time?”
“Can I stream terminal output from a PTY session?”
Tell an agent
Connect to PTY session {sessionId} via WebSocket.
Open a WebSocket stream to terminal session {sessionId}.
POST /process/pty/{sessionId}/resize Resize a pseudo-terminal session · Resize a PTY session #
Ask an LLM
“How do I change the terminal size of a running session?”
“Can I resize a PTY session after it starts?”
Tell an agent
Resize PTY session {sessionId} to {rows} rows and {cols} columns.
Make terminal session {sessionId} {rows} by {cols}.
GET /process/session List active shell sessions · List all sessions #
Ask an LLM
“Which shell sessions are running on my sandbox?”
“What sessions exist right now?”
Tell an agent
List all active shell sessions.
Show every running session.
POST /process/session Create a shell session · Create a new session #
Ask an LLM
“How do I start a new shell session for command execution?”
“Can I name a session when I create it?”
Tell an agent
Create a shell session named {sessionId}.
Start a new session called {sessionId}.
GET /process/session/entrypoint Get entrypoint session details · Get entrypoint session details #
Ask an LLM
“What commands does my sandbox entrypoint session run?”
“Can I see the entrypoint session's configuration?”
Tell an agent
Get the entrypoint session details.
Show the commands run by the entrypoint session.
GET /process/session/entrypoint/logs Get sandbox entrypoint logs · Get entrypoint logs #
Ask an LLM
“How do I see the output of my sandbox's entrypoint session?”
“Can I follow entrypoint logs in real time?”
Tell an agent
Get the entrypoint session logs.
Follow entrypoint logs in real time with follow {follow}.
GET /process/session/{sessionId} Get a shell session's details · Get session details #
Ask an LLM
“What commands has a specific session run?”
“Can I see the details of one shell session?”
Tell an agent
Get session {sessionId}.
Show the commands in session {sessionId}.
DELETE /process/session/{sessionId} Delete a shell session · Delete a session #
Ask an LLM
“How do I close and remove a shell session?”
“Can I delete a session by its ID?”
Tell an agent destructive · confirm first
Delete session {sessionId}.
Remove shell session {sessionId} permanently.
GET /process/session/{sessionId}/command/{commandId} Get a command in a shell session · Get session command details #
Ask an LLM
“What is the status of one command inside a session?”
“Can I inspect a single command by its ID?”
Tell an agent
Get command {commandId} in session {sessionId}.
Show the status of command {commandId} in session {sessionId}.
POST /process/session/{sessionId}/command/{commandId}/input Send input to a running command in a session · Send input to command #
Ask an LLM
“How do I type into a command that is already running in a session?”
“Can I feed input to an interactive command?”
Tell an agent
Send {data} as input to command {commandId} in session {sessionId}.
Type {data} into running command {commandId} of session {sessionId}.
GET /process/session/{sessionId}/command/{commandId}/logs Get logs for a command in a session · Get session command logs #
Ask an LLM
“How do I see the output of one command in a session?”
“Can I follow a session command's logs in real time?”
Tell an agent
Get logs for command {commandId} in session {sessionId}.
Follow command {commandId} logs in session {sessionId} with follow {follow}.
POST /process/session/{sessionId}/exec Run a command in an existing shell session · Execute command in session #
Ask an LLM
“How do I run a new command inside a session that is already open?”
“Can I suppress input echo when executing a command in a session?”
Tell an agent
Run {command} in session {sessionId}.
Execute {command} in session {sessionId} with suppress input echo {suppressInputEcho}.

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-process-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-process-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Daytona Toolbox API
  title: Daytona Sandbox Toolbox Process API
  contact: {}
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: v0.0.0-dev
servers:
- url: https://proxy.app.daytona.io/toolbox
  description: Daytona Sandbox Toolbox proxy
tags:
- name: Process
paths:
  /process/code-run:
    post:
      description: Execute Python, JavaScript, or TypeScript code and return output, exit code, and artifacts
      tags:
      - Process
      summary: Execute code
      operationId: CodeRun
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeRunResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CodeRunRequest'
        description: Code execution request
        required: true
  /process/execute:
    post:
      description: Execute a shell command and return the output and exit code
      tags:
      - Process
      summary: Execute a command
      operationId: ExecuteCommand
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecuteResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExecuteRequest'
        description: Command execution request
        required: true
  /process/pty:
    get:
      description: Get a list of all active pseudo-terminal sessions
      tags:
      - Process
      summary: List all PTY sessions
      operationId: ListPtySessions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PtyListResponse'
    post:
      description: Create a new pseudo-terminal session with specified configuration
      tags:
      - Process
      summary: Create a new PTY session
      operationId: CreatePtySession
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PtyCreateResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PtyCreateRequest'
        description: PTY session creation request
        required: true
  /process/pty/{sessionId}:
    get:
      description: Get detailed information about a specific pseudo-terminal session
      tags:
      - Process
      summary: Get PTY session information
      operationId: GetPtySession
      parameters:
      - description: PTY session ID
        name: sessionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PtySessionInfo'
    delete:
      description: Delete a pseudo-terminal session and terminate its process
      tags:
      - Process
      summary: Delete a PTY session
      operationId: DeletePtySession
      parameters:
      - description: PTY session ID
        name: sessionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/gin.H'
  /process/pty/{sessionId}/connect:
    get:
      description: Establish a WebSocket connection to interact with a pseudo-terminal session
      tags:
      - Process
      summary: Connect to PTY session via WebSocket
      operationId: ConnectPtySession
      parameters:
      - description: PTY session ID
        name: sessionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '101':
          description: Switching Protocols - WebSocket connection established
  /process/pty/{sessionId}/resize:
    post:
      description: Resize the terminal dimensions of a pseudo-terminal session
      tags:
      - Process
      summary: Resize a PTY session
      operationId: ResizePtySession
      parameters:
      - description: PTY session ID
        name: sessionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PtySessionInfo'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PtyResizeRequest'
        description: Resize request with new dimensions
        required: true
  /process/session:
    get:
      description: Get a list of all active shell sessions
      tags:
      - Process
      summary: List all sessions
      operationId: ListSessions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Session'
    post:
      description: Create a new shell session for command execution
      tags:
      - Process
      summary: Create a new session
      operationId: CreateSession
      responses:
        '201':
          description: Created
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSessionRequest'
        description: Session creation request
        required: true
  /process/session/entrypoint:
    get:
      description: Get details of an entrypoint session including its commands
      tags:
      - Process
      summary: Get entrypoint session details
      operationId: GetEntrypointSession
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Session'
  /process/session/entrypoint/logs:
    get:
      description: Get logs for a sandbox entrypoint session. Returns JSON with separated stdout/stderr for SDK >= 0.161.0, plain text otherwise. Supports WebSocket streaming.
      tags:
      - Process
      summary: Get entrypoint logs
      operationId: GetEntrypointLogs
      parameters:
      - description: Follow logs in real-time (WebSocket only)
        name: follow
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Entrypoint log content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionCommandLogsResponse'
            text/plain:
              schema:
                $ref: '#/components/schemas/SessionCommandLogsResponse'
  /process/session/{sessionId}:
    get:
      description: Get details of a specific session including its commands
      tags:
      - Process
      summary: Get session details
      operationId: GetSession
      parameters:
      - description: Session ID
        name: sessionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Session'
    delete:
      description: Delete an existing shell session
      tags:
      - Process
      summary: Delete a session
      operationId: DeleteSession
      parameters:
      - description: Session ID
        name: sessionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
  /process/session/{sessionId}/command/{commandId}:
    get:
      description: Get details of a specific command within a session
      tags:
      - Process
      summary: Get session command details
      operationId: GetSessionCommand
      parameters:
      - description: Session ID
        name: sessionId
        in: path
        required: true
        schema:
          type: string
      - description: Command ID
        name: commandId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Command'
  /process/session/{sessionId}/command/{commandId}/input:
    post:
      description: Send input data to a running command in a session for interactive execution
      tags:
      - Process
      summary: Send input to command
      operationId: SendInput
      parameters:
      - description: Session ID
        name: sessionId
        in: path
        required: true
        schema:
          type: string
      - description: Command ID
        name: commandId
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionSendInputRequest'
        description: Input send request
        required: true
  /process/session/{sessionId}/command/{commandId}/logs:
    get:
      description: Get logs for a specific command within a session. Returns JSON with separated stdout/stderr for SDK >= 0.167.0, plain text otherwise. Supports WebSocket streaming.
      tags:
      - Process
      summary: Get session command logs
      operationId: GetSessionCommandLogs
      parameters:
      - description: Session ID
        name: sessionId
        in: path
        required: true
        schema:
          type: string
      - description: Command ID
        name: commandId
        in: path
        required: true
        schema:
          type: string
      - description: Follow logs in real-time (WebSocket only)
        name: follow
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Log content (JSON for new SDKs, plain text for old SDKs)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionCommandLogsResponse'
            text/plain:
              schema:
                $ref: '#/components/schemas/SessionCommandLogsResponse'
  /process/session/{sessionId}/exec:
    post:
      description: Execute a command within an existing shell session
      tags:
      - Process
      summary: Execute command in session
      operationId: SessionExecuteCommand
      parameters:
      - description: Session ID
        name: sessionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionExecuteResponse'
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionExecuteResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionExecuteRequest'
        description: Command execution request
        required: true
components:
  schemas:
    SessionCommandLogsResponse:
      type: object
      required:
      - output
      - stderr
      - stdout
      properties:
        output:
          type: string
        stderr:
          type: string
        stdout:
          type: string
    Session:
      type: object
      required:
      - commands
      - sessionId
      properties:
        commands:
          type: array
          items:
            $ref: '#/components/schemas/Command'
        sessionId:
          type: string
    ChartElement:
      type: object
      properties:
        angle:
          type: number
        first_quartile:
          type: number
        group:
          type: string
        label:
          type: string
        max:
          type: number
        median:
          type: number
        min:
          type: number
        outliers:
          type: array
          items:
            type: number
        png:
          type: string
        points:
          type: array
          items:
            type: array
            items:
              type: number
        radius:
          type: number
        third_quartile:
          type: number
        title:
          type: string
        type:
          type: string
        value:
          type: string
        x_label:
          type: string
        y_label:
          type: string
    CodeRunRequest:
      type: object
      required:
      - code
      - language
      properties:
        argv:
          type: array
          items:
            type: string
        code:
          type: string
        envs:
          type: object
          additionalProperties:
            type: string
        language:
          description: python, javascript, typescript
          type: string
        timeout:
          type: integer
    ExecuteResponse:
      type: object
      required:
      - result
      properties:
        exitCode:
          type: integer
        result:
          type: string
    PtySessionInfo:
      type: object
      required:
      - active
      - cols
      - createdAt
      - cwd
      - envs
      - id
      - lazyStart
      - rows
      properties:
        active:
          type: boolean
        cols:
          type: integer
        createdAt:
          type: string
        cwd:
          type: string
        envs:
          type: object
          additionalProperties:
            type: string
        id:
          type: string
        lazyStart:
          description: Whether this session uses lazy start
          type: boolean
        rows:
          type: integer
    SessionExecuteRequest:
      type: object
      required:
      - command
      properties:
        async:
          type: boolean
        command:
          type: string
        runAsync:
          type: boolean
        suppressInputEcho:
          type: boolean
    PtyListResponse:
      type: object
      required:
      - sessions
      properties:
        sessions:
          type: array
          items:
            $ref: '#/components/schemas/PtySessionInfo'
    SessionExecuteResponse:
      type: object
      required:
      - cmdId
      properties:
        cmdId:
          type: string
        exitCode:
          type: integer
        output:
          type: string
        stderr:
          type: string
        stdout:
          type: string
    CodeRunResponse:
      type: object
      properties:
        artifacts:
          $ref: '#/components/schemas/CodeRunArtifacts'
        exitCode:
          type: integer
        result:
          type: string
    Chart:
      type: object
      properties:
        elements:
          type: array
          items:
            $ref: '#/components/schemas/ChartElement'
        png:
          type: string
        title:
          type: string
        type:
          type: string
        x_label:
          type: string
        x_scale:
          type: string
        x_tick_labels:
          type: array
          items:
            type: string
        x_ticks:
          type: array
          items:
            type: number
        y_label:
          type: string
        y_scale:
          type: string
        y_tick_labels:
          type: array
          items:
            type: string
        y_ticks:
          type: array
          items:
            type: number
    CreateSessionRequest:
      type: object
      required:
      - sessionId
      properties:
        sessionId:
          type: string
    Command:
      type: object
      required:
      - command
      - id
      properties:
        command:
          type: string
        exitCode:
          type: integer
        id:
          type: string
    gin.H:
      type: object
      additionalProperties: {}
    ExecuteRequest:
      type: object
      required:
      - command
      properties:
        command:
          type: string
        cwd:
          description: Current working directory
          type: string
        envs:
          description: Environment variables to set for the command
          type: object
          additionalProperties:
            type: string
        timeout:
          description: Timeout in seconds, defaults to 10 seconds
          type: integer
    CodeRunArtifacts:
      type: object
      properties:
        charts:
          type: array
          items:
            $ref: '#/components/schemas/Chart'
    PtyCreateRequest:
      type: object
      properties:
        cols:
          type: integer
        cwd:
          type: string
        envs:
          type: object
          additionalProperties:
            type: string
        id:
          type: string
        lazyStart:
          description: Don't start PTY until first client connects
          type: boolean
        rows:
          type: integer
    PtyResizeRequest:
      type: object
      required:
      - cols
      - rows
      properties:
        cols:
          type: integer
          maximum: 1000
          minimum: 1
        rows:
          type: integer
          maximum: 1000
          minimum: 1
    SessionSendInputRequest:
      type: object
      required:
      - data
      properties:
        data:
          type: string
    PtyCreateResponse:
      type: object
      required:
      - sessionId
      properties:
        sessionId:
          type: string