API Keys
Daytona API keys are used to authenticate requests to the Daytona API.
Create an API key
- Navigate to Daytona Dashboard ↗
- Click the Create Key button
- Enter the name of the API key, set the expiration date, and select permissions
- Click the Create button to create the API key
- 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
| Resource | Scope | Description |
|---|---|---|
| Sandboxes | write:sandboxes | Create/modify sandboxes |
delete:sandboxes | Delete sandboxes | |
| Snapshots | write:snapshots | Create/modify snapshots |
delete:snapshots | Delete snapshots | |
| Registries | write:registries | Create/modify registries |
delete:registries | Delete registries | |
| Volumes | read:volumes | View volumes |
write:volumes | Create/modify volumes | |
delete:volumes | Delete volumes | |
| Audit | read:audit_logs | View audit logs |