Reference for the Hosting API, a REST API for deploying and operating GoDaddy hosted applications. Async-first: long-running writes return immediately with a job or deployment record you poll to completion.

Machine-readable spec

The complete OpenAPI spec for this namespace is available as JSON. This is useful for code generation, SDK tooling, and LLM context: hosting.json.

Overview

The Hosting API lets you build, deploy, and operate apps on GoDaddy's hosting platform without touching a dashboard. Each Node.js app has two variants (preview and publish) so you can iterate safely and promote when you're ready.

Long-running operations (create app, upload source, publish) return immediately with a job or deployment record. All three respond with 202 Accepted. Poll until each operation reaches a terminal state. Go to Hosting concepts for the full pattern.

Auth

Every endpoint authenticates with a Personal Access Token (PAT). Create one at Personal Access Tokens, send it as Authorization: Bearer <token>, and select only the scopes each operation requires. Go to Hosting core concepts for the full scope list.

Endpoint groups

Typical flow

POST /apps?appType=NODEJS               → 202, AppOperation
GET  /app-operations/{operationId}      → poll until app is ready

POST /apps/{appId}/imports              → 202, SourceImport operation (multipart/form-data)
GET  /apps/{appId}/imports/{importId}   → poll until upload is processed

PUT  /apps/{appId}/subscription         → 200, attach to hosting plan (required for Node.js)

POST /apps/{appId}/deployments          → 202, Deployment operation
GET  /apps/{appId}/deployments/{id}     → poll until deployment is complete
GET  /apps/{appId}/status               → runtime status per environment

WordPress sites

WordPress sites (appType=MHWP) use a shorter lifecycle. There's no source upload, no hosting plan attachment, and no deployment. A WordPress site goes live through its publish state instead:

POST /apps?appType=MHWP                 → 202, AppOperation (type CREATE_APP)
GET  /app-operations/{operationId}      → poll until the site is ready

PUT  /apps/{appId}/publish-state        → 202, AppOperation (type SET_PUBLISH_STATE)
GET  /app-operations/{operationId}      → poll until the site is live

Deployments, restarts, source imports, secrets, logs, domains, and subscriptions return 501 NOT_APPLICABLE for WordPress sites. Go to How to create and publish a WordPress site for the full walkthrough.

The conventions in the following table describe Node.js apps. For WordPress sites, the differences are:

  • Environments: a WordPress site has only the PUBLISH variant. There's no preview.
  • Async operations: create and publish-state changes return 202 Accepted with an operation. Poll GET /app-operations/{operationId}.
  • Idempotency: POST /apps?appType=MHWP accepts an Idempotency-Key UUID. PUT /apps/{appId}/publish-state is idempotent by nature.

Conventions

ConventionDetail
Base URLhttps://api.godaddy.com/v1/hosting (production)
Async operationsCreate app, import source, and deploy operations return 202 Accepted with an operation. Poll the returned URL until status reaches COMPLETED or FAILED.
EnvironmentsEvery app has PREVIEW and PUBLISH environments. Filter per endpoint: /logs?target=…, /secrets (body variant). /status returns both.
AuthPersonal Access Token (PAT) — Authorization: Bearer <token>. Go to Hosting core concepts for the scope list.
Secret valuesNever returned by any endpoint. Only names and metadata are readable.
Rate limitsEnforced by the API gateway. 429 Too Many Requests response includes RateLimit-* headers.

Agent & Automation Notes

Scopeshosting.application:read, hosting.application:create, hosting.application:update, hosting.application:delete, hosting.source:write, hosting.deployment:execute, hosting.secret:write, hosting.log:read
Rate limit10–120 req/min per client IP depending on operation
On failureCreate app returns 202 with a job. Poll GET /app-operations/{operationId} until app is ready. Upload source and deployments return 202 with an operation ID. Poll the matching status endpoint until complete. DELETE /apps/{appId} returns 204; removal can continue in the background, after which GET returns 404. GET operations are safe to retry. Do not resubmit writes without checking current state.

Last updated on

How is this guide?

On this page