API Keys
Daytona API keys are used to authenticate requests to the Daytona API. Daytona provides an option to generate an API key for managing your API requests, list all generated API keys, and revoke an API key.
Generate an API Key
Daytona provides an option to generate API keys.
- Run the following command to generate an API key:
Upon running this command, Daytona will prompt you to enter a name for the API key.
Upon successful generation of the API key, Daytona will display the following confirmation message:
Daytona provides an option to connect to the Daytona Server instantly from a client machine by running the following command:
List API Keys
Daytona provides an option to list all generated API keys.
- Run the following command to list all generated API keys:
Upon running this command, Daytona will display the list of all generated API keys.
Revoke an API Key
Daytona provides an option to revoke API keys.
- Run the following command to revoke an API key:
Upon running this command, Daytona will prompt you to enter the name of the API key that you want to revoke.
-
Press
Enter
on the selected API key to revoke it. -
Confirm the revocation by selecting
Yes
orNo
.