Skip to main content

About Daytona

Daytona is a cloud development environment platform that enables teams to create, manage, and scale isolated sandbox environments. The Daytona API enables programmatic management of sandboxes, snapshots, volumes, and organization resources.

What the Daytona integration enables

CapabilityDescription
Sandbox ManagementCreate, start, stop, resize, and delete cloud development environments
Snapshot ManagementCreate and manage environment snapshots for reproducible setups
Volume ManagementManage persistent storage volumes attached to sandboxes
Organization ManagementManage users, roles, and organization settings

Setting up Daytona API Access

This guide will walk you through setting up API key authentication for Daytona, which is required for integrating with Serval.

Step 1: Generate a Daytona API Key

  1. Log in to the Daytona Dashboard
  2. Click Create Key
  3. Enter a descriptive name for the key (e.g., “Serval Integration”)
  4. Set an appropriate expiration date
  5. Select the permissions your workflows will need (see recommended scopes below)
  6. Click Create and copy the generated API key
Store your API key securely. It will only be shown once during creation.

Available Scopes

ScopeDescription
write:sandboxesCreate and modify sandboxes
delete:sandboxesDelete sandboxes
write:snapshotsCreate and modify snapshots
delete:snapshotsDelete snapshots
read:volumesView volumes
write:volumesCreate and modify volumes
delete:volumesDelete volumes
read:audit_logsView audit logs
write:regionsCreate and modify regions
delete:regionsDelete regions
Only provide Serval with the scopes that you intend to utilize. You can always update your API key’s scopes later as your workflow needs change.

Step 2: Add the key to Serval

  1. In Serval, navigate to Applications → Connect new → Daytona → Connect
  2. Enter the following information:
    FieldDescription
    Instance NameA friendly name for this integration (e.g., “Daytona Production”)
    Server URLYour Daytona server URL including the /api path (e.g., https://app.daytona.io/api for Daytona Cloud, or your self-hosted instance URL)
    API KeyThe API key you copied from Daytona
  3. Click Submit to complete the integration
Your Daytona integration is now connected! You can start creating workflows to automate sandbox and environment management.

Troubleshooting

  • Verify your API key is properly copied and pasted with no extra characters
  • Ensure your Server URL includes the /api path (e.g., https://app.daytona.io/api)
  • Confirm the API key has not expired
  • Ensure your server URL includes the /api path suffix (e.g., https://daytona.yourcompany.com/api)
  • Verify the Daytona server is reachable from the internet
  • Check that your API key was created on the correct Daytona instance

Additional Resources

Daytona Documentation

Official Daytona platform documentation

Daytona API Reference

Complete API reference for all Daytona endpoints

Need help? Contact support@serval.com for assistance with your Daytona integration.