API Keys
Daytona API keys are used to authenticate requests to the Daytona API. You can view, create, or delete your API Keys on the API Keys page.
Creating an API key
You can obtain an API key from the Daytona platform:
- Navigate to API Keys, on the Daytona Dashboard.
- Click the
Create Key
button. - In the open modal, create and copy a new key to your clipboard.
To use an API key in your application, set the DAYTONA_API_KEY
environment variable as described on the Configuration page.
Permissions & Scopes
When creating a new API Key, you can select the specific permissions (scopes) it should have. Scopes control what actions the key can perform. Grant only the scopes you need for each key.
Below is a list of available scopes and their descriptions:
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 |