Skip to content

API Keys

View as Markdown

Daytona API keys are used to authenticate requests to the Daytona API.

Create an API key

  1. Navigate to Daytona Dashboard ↗
  2. Click the Create Key button
  3. Enter the name of the API key, set the expiration date, and select permissions
  4. Click the Create button to create the API key
  5. Copy the API key to your clipboard

To use the API key in your application, set the DAYTONA_API_KEY environment variable.

Daytona supports multiple options to configure your environment: in code, environment variables, .env file, and default values.

Permissions & Scopes

ResourceScopeDescription
Sandboxeswrite:sandboxesCreate/modify sandboxes
delete:sandboxesDelete sandboxes
Snapshotswrite:snapshotsCreate/modify snapshots
delete:snapshotsDelete snapshots
Registrieswrite:registriesCreate/modify registries
delete:registriesDelete registries
Volumesread:volumesView volumes
write:volumesCreate/modify volumes
delete:volumesDelete volumes
Auditread:audit_logsView audit logs