---
title: "REST API & Automation Overview"
description: "Understand authentication for the Hosted EZ HTTP API (`api.hostedez.com`) vs the Hosted EZ MCP Server (`mcp.hostedez.com`) for programmatic and AI agent workflows."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

# REST API & Automation Overview

Hosted EZ exposes two programmatic interfaces depending on how you interact with your account:

- **Hosted EZ MCP Server (`https://mcp.hostedez.com/mcp`)** — Recommended for **AI agents and programmatic automation**. Authenticates via OAuth 2.1 + PKCE (`sites:read`, `sites:write`, `account:read`) and exposes 88 tools covering sites, deployments, rollbacks, custom domains, DNS, databases, staging, backups, and email.
- **Hosted EZ REST API (`https://api.hostedez.com`)** — The HTTP API backing the Hosted EZ dashboard (`app.hostedez.com`). Customer `/v1/*` endpoints currently authenticate via **dashboard session cookies (`sessionCookie`)**; standalone customer REST API keys are not yet offered.

- [Interactive REST API Reference](/api/) — Explore all 120 customer endpoints, request/response schemas, and examples synced from api.hostedez.com/openapi.json.
- [Machine-Readable API Index](https://docs.hostedez.com/api/llms.txt) — Fetch /api/llms.txt for the full OpenAPI endpoint index formatted for LLMs and agents.

> **CI/CD File Deployments**
>
> For headless deployments from GitHub Actions or other CI runners, use **SFTP** (`sftp.hostedez.com:22`) with SSH public keys instead of REST API tokens.

Source: https://docs.hostedez.com/api-reference/index.mdx
