Daytona git API

The git API from Daytona — 9 operation(s) for git.

Operations 11

POST /git/add Add files to Git staging #
GET /git/branches List branches #
POST /git/branches Create a new branch #
DELETE /git/branches Delete a branch #
POST /git/checkout Checkout branch or commit #
POST /git/clone Clone a Git repository #
POST /git/commit Commit changes #
GET /git/history Get commit history #
POST /git/pull Pull changes from remote #
POST /git/push Push changes to remote #
GET /git/status Get Git status #

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-git-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

daytona-io-git-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Daytona Toolbox API
  title: Daytona Sandbox Toolbox Git 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: git
paths:
  /git/add:
    post:
      description: Add files to the Git staging area
      tags:
      - git
      summary: Add files to Git staging
      operationId: AddFiles
      responses:
        '200':
          description: OK
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitAddRequest'
        description: Add files request
        required: true
  /git/branches:
    get:
      description: Get a list of all branches in the Git repository
      tags:
      - git
      summary: List branches
      operationId: ListBranches
      parameters:
      - description: Repository path
        name: path
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListBranchResponse'
    post:
      description: Create a new branch in the Git repository
      tags:
      - git
      summary: Create a new branch
      operationId: CreateBranch
      responses:
        '201':
          description: Created
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitBranchRequest'
        description: Create branch request
        required: true
    delete:
      description: Delete a branch from the Git repository
      tags:
      - git
      summary: Delete a branch
      operationId: DeleteBranch
      responses:
        '204':
          description: No Content
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitDeleteBranchRequest'
        description: Delete branch request
        required: true
  /git/checkout:
    post:
      description: Switch to a different branch or commit in the Git repository
      tags:
      - git
      summary: Checkout branch or commit
      operationId: CheckoutBranch
      responses:
        '200':
          description: OK
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitCheckoutRequest'
        description: Checkout request
        required: true
  /git/clone:
    post:
      description: Clone a Git repository to the specified path
      tags:
      - git
      summary: Clone a Git repository
      operationId: CloneRepository
      responses:
        '200':
          description: OK
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitCloneRequest'
        description: Clone repository request
        required: true
  /git/commit:
    post:
      description: Commit staged changes to the Git repository
      tags:
      - git
      summary: Commit changes
      operationId: CommitChanges
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GitCommitResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitCommitRequest'
        description: Commit request
        required: true
  /git/history:
    get:
      description: Get the commit history of the Git repository
      tags:
      - git
      summary: Get commit history
      operationId: GetCommitHistory
      parameters:
      - description: Repository path
        name: path
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GitCommitInfo'
  /git/pull:
    post:
      description: Pull changes from the remote Git repository
      tags:
      - git
      summary: Pull changes from remote
      operationId: PullChanges
      responses:
        '200':
          description: OK
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitRepoRequest'
        description: Pull request
        required: true
  /git/push:
    post:
      description: Push local changes to the remote Git repository
      tags:
      - git
      summary: Push changes to remote
      operationId: PushChanges
      responses:
        '200':
          description: OK
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitRepoRequest'
        description: Push request
        required: true
  /git/status:
    get:
      description: Get the Git status of the repository at the specified path
      tags:
      - git
      summary: Get Git status
      operationId: GetStatus
      parameters:
      - description: Repository path
        name: path
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GitStatus'
components:
  schemas:
    ListBranchResponse:
      type: object
      required:
      - branches
      properties:
        branches:
          type: array
          items:
            type: string
    GitCommitRequest:
      type: object
      required:
      - author
      - email
      - message
      - path
      properties:
        allow_empty:
          type: boolean
        author:
          type: string
        email:
          type: string
        message:
          type: string
        path:
          type: string
    GitCommitResponse:
      type: object
      required:
      - hash
      properties:
        hash:
          type: string
    GitCloneRequest:
      type: object
      required:
      - path
      - url
      properties:
        branch:
          type: string
        commit_id:
          type: string
        password:
          type: string
        path:
          type: string
        url:
          type: string
        username:
          type: string
    GitStatus:
      type: object
      required:
      - currentBranch
      - fileStatus
      properties:
        ahead:
          type: integer
        behind:
          type: integer
        branchPublished:
          type: boolean
        currentBranch:
          type: string
        fileStatus:
          type: array
          items:
            $ref: '#/components/schemas/FileStatus'
    GitBranchRequest:
      type: object
      required:
      - name
      - path
      properties:
        name:
          type: string
        path:
          type: string
    FileStatus:
      type: object
      required:
      - extra
      - name
      - staging
      - worktree
      properties:
        extra:
          type: string
        name:
          type: string
        staging:
          $ref: '#/components/schemas/Status'
        worktree:
          $ref: '#/components/schemas/Status'
    GitCheckoutRequest:
      type: object
      required:
      - branch
      - path
      properties:
        branch:
          type: string
        path:
          type: string
    GitDeleteBranchRequest:
      type: object
      required:
      - name
      - path
      properties:
        name:
          type: string
        path:
          type: string
    GitCommitInfo:
      type: object
      required:
      - author
      - email
      - hash
      - message
      - timestamp
      properties:
        author:
          type: string
        email:
          type: string
        hash:
          type: string
        message:
          type: string
        timestamp:
          type: string
    Status:
      type: string
      enum:
      - Unmodified
      - Untracked
      - Modified
      - Added
      - Deleted
      - Renamed
      - Copied
      - Updated but unmerged
      x-enum-varnames:
      - Unmodified
      - Untracked
      - Modified
      - Added
      - Deleted
      - Renamed
      - Copied
      - UpdatedButUnmerged
    GitAddRequest:
      type: object
      required:
      - files
      - path
      properties:
        files:
          description: files to add (use . for all files)
          type: array
          items:
            type: string
        path:
          type: string
    GitRepoRequest:
      type: object
      required:
      - path
      properties:
        password:
          type: string
        path:
          type: string
        username:
          type: string