Daytona · Capability

Daytona Sandbox Preview

Daytona Sandbox Preview. 4 operations. Lead operation: Check if sandbox is public. Self-contained Naftiko capability covering one Daytona business surface.

Daytona Sandbox Preview is a Naftiko capability published by Daytona, one of 16 capabilities the APIs.io network indexes for this provider. It bundles 4 operations across the GET method rooted at /v1/preview.

The capability includes 4 read-only operations. Lead operation: Check if sandbox is public. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Daytona and Preview.

Run with Naftiko DaytonaPreview

What You Can Do

GET
Issandboxpublic — Check if sandbox is public
/v1/preview/{sandboxId}/public
GET
Isvalidauthtoken — Check if sandbox auth token is valid
/v1/preview/{sandboxId}/validate/{authToken}
GET
Hassandboxaccess — Check if user has access to the sandbox
/v1/preview/{sandboxId}/access
GET
Getsandboxidfromsignedpreviewurltoken — Get sandbox ID from signed preview URL token
/v1/preview/{signedPreviewToken}/{port}/sandbox-id

MCP Tools

daytona-check-if-sandbox-is-public

Check if sandbox is public

read-only idempotent
daytona-check-if-sandbox-auth-token-is-valid

Check if sandbox auth token is valid

read-only idempotent
daytona-check-if-user-has-access-to-the-sandbox

Check if user has access to the sandbox

read-only idempotent
daytona-get-sandbox-id-from-signed-preview-url-token

Get sandbox ID from signed preview URL token

read-only idempotent

Capability Spec

preview.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Daytona Sandbox Preview
  description: 'Daytona Sandbox Preview. 4 operations. Lead operation: Check if sandbox is public. Self-contained Naftiko
    capability covering one Daytona business surface.'
  tags:
  - Daytona
  - Preview
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    DAYTONA_API_KEY: DAYTONA_API_KEY
capability:
  consumes:
  - type: http
    namespace: preview
    baseUri: https://app.daytona.io/api
    description: Daytona Sandbox Preview business capability. Self-contained, no shared references.
    resources:
    - name: preview-sandboxid-public
      path: /preview/{sandboxId}/public
      operations:
      - name: issandboxpublic
        method: GET
        description: Check if sandbox is public
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: preview-sandboxid-validate-authtoken
      path: /preview/{sandboxId}/validate/{authToken}
      operations:
      - name: isvalidauthtoken
        method: GET
        description: Check if sandbox auth token is valid
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: preview-sandboxid-access
      path: /preview/{sandboxId}/access
      operations:
      - name: hassandboxaccess
        method: GET
        description: Check if user has access to the sandbox
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: preview-signedpreviewtoken-port-sandbox-id
      path: /preview/{signedPreviewToken}/{port}/sandbox-id
      operations:
      - name: getsandboxidfromsignedpreviewurltoken
        method: GET
        description: Get sandbox ID from signed preview URL token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      value: '{{env.DAYTONA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: preview-rest
    port: 8080
    description: REST adapter for Daytona Sandbox Preview. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/preview/{sandboxId}/public
      name: preview-sandboxid-public
      description: REST surface for preview-sandboxid-public.
      operations:
      - method: GET
        name: issandboxpublic
        description: Check if sandbox is public
        call: preview.issandboxpublic
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/preview/{sandboxId}/validate/{authToken}
      name: preview-sandboxid-validate-authtoken
      description: REST surface for preview-sandboxid-validate-authtoken.
      operations:
      - method: GET
        name: isvalidauthtoken
        description: Check if sandbox auth token is valid
        call: preview.isvalidauthtoken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/preview/{sandboxId}/access
      name: preview-sandboxid-access
      description: REST surface for preview-sandboxid-access.
      operations:
      - method: GET
        name: hassandboxaccess
        description: Check if user has access to the sandbox
        call: preview.hassandboxaccess
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/preview/{signedPreviewToken}/{port}/sandbox-id
      name: preview-signedpreviewtoken-port-sandbox-id
      description: REST surface for preview-signedpreviewtoken-port-sandbox-id.
      operations:
      - method: GET
        name: getsandboxidfromsignedpreviewurltoken
        description: Get sandbox ID from signed preview URL token
        call: preview.getsandboxidfromsignedpreviewurltoken
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: preview-mcp
    port: 9090
    transport: http
    description: MCP adapter for Daytona Sandbox Preview. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: daytona-check-if-sandbox-is-public
      description: Check if sandbox is public
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: preview.issandboxpublic
      outputParameters:
      - type: object
        mapping: $.
    - name: daytona-check-if-sandbox-auth-token-is-valid
      description: Check if sandbox auth token is valid
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: preview.isvalidauthtoken
      outputParameters:
      - type: object
        mapping: $.
    - name: daytona-check-if-user-has-access-to-the-sandbox
      description: Check if user has access to the sandbox
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: preview.hassandboxaccess
      outputParameters:
      - type: object
        mapping: $.
    - name: daytona-get-sandbox-id-from-signed-preview-url-token
      description: Get sandbox ID from signed preview URL token
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: preview.getsandboxidfromsignedpreviewurltoken
      outputParameters:
      - type: object
        mapping: $.