Daytona Preview API

The preview API from Daytona — 4 operation(s) for preview.

Operations 6

GET /preview/{sandboxId}/public Check if sandbox is public #
GET /preview/{sandboxId}/preview-warning Check if the preview warning page is enabled for the sandbox #
GET /preview/{sandboxId}/validate/{authToken} Check if sandbox auth token is valid #
GET /preview/{sandboxId}/signing-key Get the signing key for a sandbox #
GET /preview/{sandboxId}/access Check if user has access to the sandbox #
GET /preview/{signedPreviewToken}/{port}/sandbox-id Get sandbox ID from signed preview URL token #

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

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

OpenAPI Specification

daytona-io-preview-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 Preview API
  version: '1.0'
servers:
- url: http://localhost:3000
tags:
- name: Preview
paths:
  /preview/{sandboxId}/public:
    get:
      operationId: isSandboxPublic
      parameters:
      - description: ID of the sandbox
        explode: false
        in: path
        name: sandboxId
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                type: boolean
          description: Public status of the sandbox
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Check if sandbox is public
      tags:
      - Preview
  /preview/{sandboxId}/preview-warning:
    get:
      operationId: isPreviewWarningEnabled
      parameters:
      - description: ID of the sandbox, or a signed preview URL token (requires the port query param)
        explode: false
        in: path
        name: sandboxId
        required: true
        schema:
          type: string
        style: simple
      - description: Port the signed preview URL token was issued for. Required when sandboxId is a signed token.
        explode: true
        in: query
        name: port
        required: false
        schema:
          type: number
        style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreviewWarning'
          description: Whether the preview warning page is enabled for the sandbox
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Check if the preview warning page is enabled for the sandbox
      tags:
      - Preview
  /preview/{sandboxId}/validate/{authToken}:
    get:
      operationId: isValidAuthToken
      parameters:
      - description: ID of the sandbox
        explode: false
        in: path
        name: sandboxId
        required: true
        schema:
          type: string
        style: simple
      - description: Auth token of the sandbox
        explode: false
        in: path
        name: authToken
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                type: boolean
          description: Sandbox auth token validation status
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Check if sandbox auth token is valid
      tags:
      - Preview
  /preview/{sandboxId}/signing-key:
    get:
      operationId: getSigningKey
      parameters:
      - description: ID of the sandbox
        explode: false
        in: path
        name: sandboxId
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                type: string
          description: Signing key of the sandbox
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Get the signing key for a sandbox
      tags:
      - Preview
  /preview/{sandboxId}/access:
    get:
      operationId: hasSandboxAccess
      parameters:
      - explode: false
        in: path
        name: sandboxId
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                type: boolean
          description: User access status to the sandbox
        '404':
          description: Sandbox not found. For members of the owning organization whose sandbox was deleted, the body carries code "SANDBOX_DESTROYED".
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Check if user has access to the sandbox
      tags:
      - Preview
  /preview/{signedPreviewToken}/{port}/sandbox-id:
    get:
      operationId: getSandboxIdFromSignedPreviewUrlToken
      parameters:
      - description: Signed preview URL token
        explode: false
        in: path
        name: signedPreviewToken
        required: true
        schema:
          type: string
        style: simple
      - description: Port number to get sandbox ID from signed preview URL token
        explode: false
        in: path
        name: port
        required: true
        schema:
          type: number
        style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                type: string
          description: Sandbox ID from signed preview URL token
      security:
      - bearer: []
      - oauth2:
        - openid
        - profile
        - email
      summary: Get sandbox ID from signed preview URL token
      tags:
      - Preview
components:
  schemas:
    PreviewWarning:
      example:
        enabled: true
      properties:
        enabled:
          description: Whether the preview warning page is enabled for the sandbox
          type: boolean
      required:
      - enabled
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: API Key access
      scheme: bearer
      type: http
    oauth2:
      openIdConnectUrl: http://localhost:3000/.well-known/openid-configuration
      type: openIdConnect
x-provenance:
  method: harvested
  publisher: Daytona
  source: https://www.daytona.io/docs/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)