Overview
View as MarkdownReference 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
Apps
Create, read, update, and delete apps. Create is async — poll the returned job until the app is ready.
Source imports
Upload application source as a zip file. Returns an import operation you poll until the upload is processed.
Deployments
Publish the latest uploaded source, list past deployments, and read variant runtime status.
Secrets
Manage environment secrets per variant. Values are never returned — only names, metadata, and update operations.
Logs
Read application and build logs for the preview or publish variant.
Domains
Attach and detach custom domains from an application. Attach is async — poll the returned domain record until verification completes.
Subscriptions
List hosting plan subscriptions and attach an application to enable deployments.
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 environmentWordPress 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 liveDeployments, 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
PUBLISHvariant. There's no preview. - Async operations: create and publish-state changes return
202 Acceptedwith an operation. PollGET /app-operations/{operationId}. - Idempotency:
POST /apps?appType=MHWPaccepts anIdempotency-KeyUUID.PUT /apps/{appId}/publish-stateis idempotent by nature.
Conventions
| Convention | Detail |
|---|---|
| Base URL | https://api.godaddy.com/v1/hosting (production) |
| Async operations | Create app, import source, and deploy operations return 202 Accepted with an operation. Poll the returned URL until status reaches COMPLETED or FAILED. |
| Environments | Every app has PREVIEW and PUBLISH environments. Filter per endpoint: /logs?target=…, /secrets (body variant). /status returns both. |
| Auth | Personal Access Token (PAT) — Authorization: Bearer <token>. Go to Hosting core concepts for the scope list. |
| Secret values | Never returned by any endpoint. Only names and metadata are readable. |
| Rate limits | Enforced by the API gateway. 429 Too Many Requests response includes RateLimit-* headers. |
Agent & Automation Notes
hosting.application:read, hosting.application:create, hosting.application:update, hosting.application:delete, hosting.source:write, hosting.deployment:execute, hosting.secret:write, hosting.log:readRelated
Last updated on
How is this guide?