What your code and your assistant can do.

Each Ask is a prompt for your AI coding tool. It reads the DreamHost API spec and makes the call for you.

  • Websites

    List every site with its type, hosting plan, and PHP version, or read one site in full.

    Ask: Which of my sites are still on PHP 8.1?

  • DNS

    List, add, update, and delete records, up to 38 in one request. Records DreamHost manages stay protected.

    Ask: Add an A record for staging.example.com.

  • Logs

    Read the last 7 days of access and error logs per site. Filter by status class or severity.

    Ask: Why did example.com throw 500s overnight?

  • Traffic

    See visitors, bots, browsers, devices, pages, and locations per site for the last day or week. Totals go back a month.

    Ask: Which client sites lost traffic this week?

  • Performance

    Run a Lighthouse performance scan on any hosted site and read the scores and reports, desktop and mobile.

    Ask: Scan example.com and tell me what to fix first.

  • Servers

    List servers and read CPU, memory, and disk for up to 14 days. Restart Managed VPS, VPS, and Dedicated, or power cycle Dedicated.

    Ask: Restart my server and show me the last day of memory.

  • Server users

    See every SFTP and shell user on your managed servers, with their type, shell, home directory, and connection details.

    Ask: Which users on my servers still have shell access?

  • Announcement lists

    List your announcement lists and subscribers, invite or remove subscribers, and send an announcement.

    Ask: Invite the three new clients to the newsletter list.

  • Coming Soon

    Domains

    Register and transfer domains, and manage the ones you own.

  • Coming Soon

    Email

    Manage mailboxes and email settings, and change MX records.

  • Coming Soon

    Billing

    See your services and charges, and make purchases.

Three setups the DreamHost API fits.

  • A deploy pipeline

    For a developer with CI and a few sites.

    • Create the DNS record for the preview environment.
    • Pull the error log after the smoke test.
    • Run a performance scan on the deploy and keep the score with the build.

    Permissions

    • DNSFull Access
    • Website LogsRead-Only
    • Website PerformanceFull Access
  • An agency fleet

    For an agency running dozens of client sites.

    • List every site with its PHP version and flag the ones still on 8.1.
    • Pull visitor and bot traffic per site into the monthly report.
    • Read each site’s latest performance score for the client review.

    Permissions

    • WebsitesRead-Only
    • Website TrafficRead-Only
    • Website PerformanceRead-Only
  • A server you watch

    For a Dedicated customer with monitoring.

    • Restart the server when health checks fail.
    • Pull the last day of CPU and memory into your monitor.
    • Reload the web server after a config change.

    Permissions

    • ServersFull Access

One key per tool, with only the access that tool needs.

At many hosts, one token inherits everything your login can do. Here you set each DreamHost API key to Full Access, Read-Only, or No Access per scope, so the agent that reads logs cannot touch DNS.

Create a key for each tool. Scope it to the job.

  1. Create a key in the panel.

    Name it for the tool that will use it: one for the deploy pipeline, one for the monitor, one for your assistant.

  2. Choose what it can do.

    Scope by scope: Full Access, Read-Only, or No Access. A key can read logs and never touch DNS.

  3. Your tool sends requests.

    Scripts call api.dreamhost.com directly. AI coding tools read the spec and work out the calls. Slow actions return a task you can check on until it finishes.

Create API Key page in the DreamHost panel: name the key, then choose No Access, Read-Only, or Full Access for each scope, starting with DNS and Servers
  • Scoped

    You set each key to Full Access, Read-Only, or No Access for every scope, from DNS to server users. Ask for anything outside that and you get a 403 that names the missing permission.

  • Yours to manage

    You create, rename, and revoke keys in the panel, one per tool, and name each one for the job it does. A missing or invalid key gets a 401.

  • Traceable

    Every response carries a correlation ID. Quote it to support and they can find the exact request. Start with a read-only key and widen it once you trust the tool.

  • JSON over HTTPS

    One address, api.dreamhost.com. Plain JSON in and out.

  • Bearer key

    Your API key goes in the Authorization header, like every other API.

  • Safe retries

    Send an idempotency key with a write and a retry never runs twice.

  • Tasks for slow actions

    A restart or a DNS change returns a task ID you can poll.

  • Pagination with totals

    Lists come in pages and tell you how many items exist.

  • Versioned at /v1

    The version is in the URL, so today’s scripts keep working.

  • Rate limits per endpoint

    A 429 comes with a Retry-After header that says how long to wait.

FAQ

Your API questions, answered.

Have another question? Chat may start with an AI assistant, and you can ask for a person at any time.

Nothing. It comes with any DreamHost product. Once you have a plan or a domain with us, you can create keys in your panel.

On the API Keys page in the panel. Name it, choose what it can do area by area, and copy it into your tool. Account owners create keys. Keys for other users on the account come later.

The DreamHost API ships as a REST API with an OpenAPI spec, with no official CLI, SDK, or Terraform provider. The spec lets you generate a typed client in most languages.

Yes. Limits vary by endpoint and operation. Past one you get a 429 and a Retry-After header that says how long to wait.

All of them. Web Hosting, DreamPress, Managed VPS, and Dedicated get the full set. On VPS, root access is in your hands to manage sites, users, logs, and traffic; the API handles DNS, server details, metrics, and restarts. If you only have a domain or email with us, you get DNS.

Any tool that can read an OpenAPI description and run commands can use the DreamHost API. A direct connector for chat assistants comes next.

An MCP server is coming soon, built on this API.