Daytona Filesystem API

The Filesystem API from Daytona — 12 operation(s) for filesystem.

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 13

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 /files List files and directories · List files and directories #
Ask an LLM
“What files are in a directory?”
“Can I list the contents of a folder in my sandbox?”
Tell an agent
List the files and directories in {path}.
Show everything in the current directory.
DELETE /files Delete a file or directory · Delete a file or directory #
Ask an LLM
“How do I delete a file from my sandbox?”
“Can I delete a directory and everything in it at once?”
Tell an agent destructive · confirm first
Delete the file or directory at {path}.
Recursively remove {path} and its contents.
POST /files/bulk-download Download several files at once · Download multiple files #
Ask an LLM
“Can I download multiple files in one request?”
“What happens to files that fail to download in a bulk download?”
Tell an agent
Download the files {paths}.
Bulk download these file paths: {paths}.
POST /files/bulk-upload Upload several files at once · Upload multiple files #
Ask an LLM
“Can I upload many files to my sandbox in one call?”
“What do I send to bulk upload files?”
Tell an agent
Bulk upload these files with their paths.
Upload multiple files in one request.
GET /files/download Download a file · Download a file #
Ask an LLM
“How do I download a single file from my sandbox?”
“Can I fetch one file by its path?”
Tell an agent
Download the file at {path}.
Fetch {path} for me.
GET /files/find Search text across files in a directory · Find text in files #
Ask an LLM
“Can I search a pattern across all files in a folder?”
“What does a text search return when it finds matches?”
Tell an agent
Find {pattern} in the files under {path}.
Search {path} for text {pattern}.
POST /files/folder Create a folder · Create a folder #
Ask an LLM
“How do I create a new directory in my sandbox?”
“Can I set the permissions of a folder when I create it?”
Tell an agent
Create folder {path} with permissions {mode}.
Make a new directory {path} using mode {mode}.
GET /files/info Get information about a file or directory · Get file information #
Ask an LLM
“What are the size, permissions and owner of a file?”
“Can I look up metadata for a single file?”
Tell an agent
Get information about {path}.
Show the metadata for file {path}.
POST /files/move Move or rename a file or directory · Move or rename file/directory #
Ask an LLM
“How do I rename a file or directory?”
“Can I move a folder to a different location?”
Tell an agent
Move {source} to {destination}.
Rename {source} to {destination}.
POST /files/permissions Set file permissions, owner or group · Set file permissions #
Ask an LLM
“How do I change who owns a file?”
“Can I change the permissions of a file or directory?”
Tell an agent
Set the owner of {path} to {owner}.
Change the group of {path} to {group}.
POST /files/replace Replace text in several files · Replace text in files #
Ask an LLM
“Can I replace a pattern with a new value across many files?”
“What does a bulk text replacement return for files that fail?”
Tell an agent
Replace {pattern} with {newValue} in files {files}.
Bulk replace {pattern} by {newValue} in {files}.
GET /files/search Search files by pattern · Search files by pattern #
Ask an LLM
“Can I find all files matching a pattern in a directory?”
“Which files match a glob pattern like *.txt?”
Tell an agent
Search {path} for files matching {pattern}.
Find files in {path} that match {pattern}.
POST /files/upload Upload a single file · Upload a file #
Ask an LLM
“How do I upload a file to my sandbox?”
“Can I give a file a specific destination path when uploading?”
Tell an agent
Upload {file} to {path}.
Save this file as {path}.

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-filesystem-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-filesystem-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Daytona Toolbox API
  title: Daytona Sandbox Toolbox File System 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: Filesystem
paths:
  /files:
    get:
      description: List files and directories in the specified path
      tags:
      - Filesystem
      summary: List files and directories
      operationId: ListFiles
      parameters:
      - description: Directory path to list (defaults to working directory)
        name: path
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FileInfo'
    delete:
      description: Delete a file or directory at the specified path
      tags:
      - Filesystem
      summary: Delete a file or directory
      operationId: DeleteFile
      parameters:
      - description: File or directory path to delete
        name: path
        in: query
        required: true
        schema:
          type: string
      - description: Enable recursive deletion for directories
        name: recursive
        in: query
        schema:
          type: boolean
      responses:
        '204':
          description: No Content
  /files/bulk-download:
    post:
      description: Download multiple files by providing their paths. Successful files are returned as multipart parts named `file`. Per-file failures are returned as multipart parts named `error` with JSON payloads shaped like ErrorResponse.
      tags:
      - Filesystem
      summary: Download multiple files
      operationId: DownloadFiles
      responses:
        '200':
          description: Multipart response with file parts and JSON error parts
          content:
            multipart/form-data:
              schema:
                $ref: '#/components/schemas/gin.H'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FilesDownloadRequest'
        description: Paths of files to download
        required: true
  /files/bulk-upload:
    post:
      description: Upload multiple files with their destination paths
      tags:
      - Filesystem
      summary: Upload multiple files
      operationId: UploadFiles
      responses:
        '200':
          description: OK
  /files/download:
    get:
      description: Download a file by providing its path
      tags:
      - Filesystem
      summary: Download a file
      operationId: DownloadFile
      parameters:
      - description: File path to download
        name: path
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
  /files/find:
    get:
      description: Search for text pattern within files in a directory
      tags:
      - Filesystem
      summary: Find text in files
      operationId: FindInFiles
      parameters:
      - description: Directory path to search in
        name: path
        in: query
        required: true
        schema:
          type: string
      - description: Text pattern to search for
        name: pattern
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Match'
  /files/folder:
    post:
      description: Create a folder with the specified path and optional permissions
      tags:
      - Filesystem
      summary: Create a folder
      operationId: CreateFolder
      parameters:
      - description: Folder path to create
        name: path
        in: query
        required: true
        schema:
          type: string
      - description: 'Octal permission mode (default: 0755)'
        name: mode
        in: query
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Created
  /files/info:
    get:
      description: Get detailed information about a file or directory
      tags:
      - Filesystem
      summary: Get file information
      operationId: GetFileInfo
      parameters:
      - description: File or directory path
        name: path
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileInfo'
  /files/move:
    post:
      description: Move or rename a file or directory from source to destination
      tags:
      - Filesystem
      summary: Move or rename file/directory
      operationId: MoveFile
      parameters:
      - description: Source file or directory path
        name: source
        in: query
        required: true
        schema:
          type: string
      - description: Destination file or directory path
        name: destination
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
  /files/permissions:
    post:
      description: Set file permissions, ownership, and group for a file or directory
      tags:
      - Filesystem
      summary: Set file permissions
      operationId: SetFilePermissions
      parameters:
      - description: File or directory path
        name: path
        in: query
        required: true
        schema:
          type: string
      - description: Owner (username or UID)
        name: owner
        in: query
        schema:
          type: string
      - description: Group (group name or GID)
        name: group
        in: query
        schema:
          type: string
      - description: File mode in octal format (e.g., 0755)
        name: mode
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
  /files/replace:
    post:
      description: Replace text pattern with new value in multiple files
      tags:
      - Filesystem
      summary: Replace text in files
      operationId: ReplaceInFiles
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReplaceResult'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplaceRequest'
        description: Replace request
        required: true
  /files/search:
    get:
      description: Search for files matching a specific pattern in a directory
      tags:
      - Filesystem
      summary: Search files by pattern
      operationId: SearchFiles
      parameters:
      - description: Directory path to search in
        name: path
        in: query
        required: true
        schema:
          type: string
      - description: File pattern to match (e.g., *.txt, *.go)
        name: pattern
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchFilesResponse'
  /files/upload:
    post:
      description: Upload a file to the specified path
      tags:
      - Filesystem
      summary: Upload a file
      operationId: UploadFile
      parameters:
      - description: Destination path for the uploaded file
        name: path
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/gin.H'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  description: File to upload
                  format: binary
              required:
              - file
components:
  schemas:
    Match:
      type: object
      required:
      - content
      - file
      - line
      properties:
        content:
          type: string
        file:
          type: string
        line:
          type: integer
    gin.H:
      type: object
      additionalProperties: {}
    SearchFilesResponse:
      type: object
      required:
      - files
      properties:
        files:
          type: array
          items:
            type: string
    FilesDownloadRequest:
      type: object
      required:
      - paths
      properties:
        paths:
          type: array
          items:
            type: string
    ReplaceResult:
      type: object
      properties:
        error:
          type: string
        file:
          type: string
        success:
          type: boolean
    ReplaceRequest:
      type: object
      required:
      - files
      - newValue
      - pattern
      properties:
        files:
          type: array
          items:
            type: string
        newValue:
          type: string
        pattern:
          type: string
    FileInfo:
      type: object
      required:
      - group
      - isDir
      - modTime
      - mode
      - name
      - owner
      - permissions
      - size
      properties:
        group:
          type: string
        isDir:
          type: boolean
        modTime:
          type: string
        mode:
          type: string
        name:
          type: string
        owner:
          type: string
        permissions:
          type: string
        size:
          type: integer