# Galon Deploy > Deploy a website to a preview address, then promote it to production on your domain, from the console, CLI, API or MCP. Server side only: read the key from the `GALON_API_KEY` environment variable. Call `GET https://api.galon.ai/v1/tools` first: use only what it lists for this key. Send an `Idempotency-Key` with every write and reuse it on retry. On an error, act on `detail.code` and follow `detail.next_action`. ## What it does - Builds a commit of a connected repository in an isolated sandbox and serves it as a preview with its own address. - Detects the framework, the package manager and the build command; you can override them. - Promotes a verified preview to production on your domain with an automatic TLS certificate. - Rolls back to the previous release instantly, without a new build. - Deploys a static archive straight from your machine with the CLI. ## API - `POST /v1/builds`: Build a web application - `GET /v1/builds/{job_id}`: Get a build - `POST /v1/builds/{job_id}/cancel`: Cancel a build before it starts - `GET /v1/builds/{job_id}/artifacts`: List a build's artefacts - `POST /v1/deploy/archives`: Deploy files or an archive - `POST /v1/deploy/journeys`: Start a deploy - `GET /v1/deploy/journeys`: List preview deployments - `GET /v1/deploy/journeys/{journey_id}`: Read a deploy - `POST /v1/deploy/journeys/{journey_id}/resume`: Advance a deploy - `GET /v1/deploy/journeys/{journey_id}/build-logs`: Get the build log - `GET /v1/deploy/runtime/{instance_id}/logs`: Get the runtime log (server rendering) - `GET /v1/deploy/env`: Get environment variables - `GET /v1/deploy/production/plans`: List production plans - `GET /v1/deploy/production/status`: Read production - `POST /v1/deploy/production/plan`: Choose a production plan - `POST /v1/deploy/production/domains`: Attach a custom domain - `POST /v1/deploy/production/domains/{domain}/verify`: Verify a custom domain - `DELETE /v1/deploy/production/domains/{domain}`: Detach a custom domain - `POST /v1/deploy/production/promote`: Promote a preview to production - `POST /v1/deploy/production/rollback`: Roll back to the previous release - `DELETE /v1/deploy/journeys/{journey_id}/preview`: Delete a preview ## MCP tools Server: `https://api.galon.ai/v1/mcp` (Streamable HTTP). - `start_deploy`: Start deploying a commit of a connected repository to a preview. - `advance_deploy`: Run the next step of a deploy. - `get_deploy`: Read a deploy: steps, status, preview address. - `delete_preview`: Remove the preview of a deploy: its address stops answering (410). - `get_production`: Read this project's production: plan, usage, domains, release. - `list_plans`: List the production plans with what each includes and the overage prices. - `deploy_archive`: Deploy a static site to a preview from its files or a ZIP or tar archive. ## Docs - [Galon Deploy guide](/cloud/docs/services/deploy) - [OpenAPI 3.1 contract](/cloud/docs/openapi.json): the source of truth for routes and fields - [Complete LLM integration guide](/llms-full.txt)