Overview
This article explains how to create, view, modify, and revoke application programming interface (API) keys on the API Keys page in the panel. An API key lets scripts, apps, and AI agents that support API connections manage parts of your DreamHost account without using the panel. The key works like a password: it identifies your account and controls what each tool is allowed to do.
You must be the account owner. Only the account owner can create API keys at this time.
For technical details such as endpoints, commands, request examples, and error codes, see developers.dreamhost.com.
Creating an API key
Open the API Keys page
In the panel, click the profile icon in the top right, then click API Keys. You can also go directly to the API Keys page.
Click Create API Key.
Name the key
Enter a name for the key. The name is required. Choose a name that describes the script, app, or AI agent that will use the key.
Choose an access level for each scope
For each scope, choose one of the following access levels:
No Access — The key cannot use this scope.
Read-Only — The key can retrieve information from this scope, but can't make changes.
Full Access — The key can retrieve information and make changes in this scope, including adding and deleting items.
To apply one access level to every scope at once, use Set all to, then adjust individual scopes as needed.
A key must have at least Read-Only access to one scope. Otherwise, the key can't be created.
Give each key only the access it needs.
Create and save the key
Click Create Key.
Copy the key.
Save the key in a secure location.
The panel shows the key only once. Copy it and save it securely. If the key is lost, it can't be recovered, and you must create a new key.
Viewing your API keys
The API Keys page lists the keys you've created. To find a specific key, use the filters and sort options:
Access — Filter keys by Read-Only, Full Access, or Custom.
Scope — Filter keys by DNS, Servers, Websites, Website Traffic, Website Performance, Website Logs, or Server Users.
Sort by — Sort the list of keys. Newest is the default.
Modifying an API key
You can change a key's name and permissions at any time. Changing the name doesn't affect apps that use the key. Permission changes apply immediately.
On the API Keys page, open the menu for the key.
Click Modify Key.
Change the name, the access levels, or both.
Save your changes.
The panel confirms the key was updated.
Removing permissions can break apps or scripts that rely on them.
Checking a key's permissions
To see the access level a key has for each scope, open Modify Key without making changes.
On the API Keys page, open the menu for the key.
Click Modify Key.
Review the access level for each scope.
Click Cancel to leave without making changes.
Revoking an API key
You can revoke a key at any time.
On the API Keys page, open the menu for the key.
Click Revoke Key.
Confirm when the panel asks.
The panel confirms that apps using the key can no longer connect.
Revoking a key is immediate and permanent, and it can't be undone. Any app or script that uses the key stops working.
Replacing an API key
To replace a key, for example if the key was exposed, create a new key and then revoke the old one. The panel doesn't have an option to regenerate a key.
Create a new key, as described in the section on creating an API key.
Update the app or script to use the new key.
Revoke the old key.
Working with legacy keys
The previous DreamHost API is no longer available, so keys created with it don't work. To see which keys you need to recreate, click View Legacy Keys on the API Keys page. The legacy page lists your previous keys for reference only.
To replace a legacy key, create a new key on the API Keys page and update your app or script to use the new API. For details, see developers.dreamhost.com.
FAQs
Can I view an API key again after I create it?
No. The panel shows the key only once, and a lost key can't be recovered. If you lose a key, create a new one and update the app or script that used the old one.
Can I rename a key without breaking my app?
Yes. Changing a key's name doesn't affect apps that use the key.
Can I regenerate an API key?
No. To replace a key, create a new key, update the app or script, and then revoke the old key.
Do my legacy keys still work?
No. The previous DreamHost API is no longer available, so legacy keys don't work. Create a new key on the API Keys page.