# About the Hosting API (https://developer.godaddy.com/en/docs/api-users/hosting)

---
title: About the Hosting API
description: >-
  Deploy and operate apps on GoDaddy's hosting platform through a REST API.
  Preview and publish with no dashboard required.
keywords: >-
  PREVIEW PUBLISH environment, POST /v1/hosting/apps, POST
  /v1/hosting/apps/{appId}/imports, POST /v1/hosting/apps/{appId}/deployments,
  operation polling, hosting scopes, zip bundle upload, deployment, app
  lifecycle, attach hosting plan
full: true
related:
  tutorials:
    - title: Deploy your Node.js app
      href: /docs/api-users/hosting/workflows/deploy-nodejs-app
  guides:
    - title: Manage apps
      href: /docs/api-users/hosting/manage-apps
    - title: Manage secrets
      href: /docs/api-users/hosting/manage-secrets
    - title: Read logs
      href: /docs/api-users/hosting/read-logs
    - title: Attach to a hosting plan
      href: /docs/api-users/hosting/attach-hosting-plan
    - title: Attach domain
      href: /docs/api-users/hosting/attach-domain
    - title: Troubleshoot Hosting
      href: /docs/api-users/troubleshoot/hosting
  concepts:
    - title: Hosting core concepts
      href: /docs/api-users/hosting/concepts
  apis:
    - title: Hosting API reference
      href: /docs/references/rest/hosting
pageId: 967af794-90ae-44ae-83ad-5534d96e9c09
---

## Overview

The Hosting API is a REST API for deploying and operating apps on GoDaddy's hosted platform. It covers the full app lifecycle: create an app, attach to a hosting plan, upload source as a zip, publish to production, manage secrets per variant, and read logs. The API is async-first. Most write operations return immediately with a job or deployment record, and you poll a status endpoint until the operation completes.

The Hosting API supports Node.js apps.

It also supports WordPress sites. The `appType` query parameter picks the product:

* Node.js apps (`NODEJS`): you upload source, attach a hosting plan, and publish through deployments
* WordPress sites (`MHWP`): you create a managed WordPress site inside an Airo App Builder subscription and take it live by setting its publish state

The following table lists which operations each product supports:

| Operation                                                                        | Node.js (`NODEJS`)                           | WordPress (`MHWP`)                |
| -------------------------------------------------------------------------------- | -------------------------------------------- | --------------------------------- |
| Create, list, and read apps; poll an operation; read status                      | Yes                                          | Yes                               |
| Publish state (`GET`/`PUT /v1/hosting/apps/{appId}/publish-state`)               | No: Node.js apps go live through deployments | Yes                               |
| Update (`PATCH`), delete, and read runtime                                       | Yes                                          | Yes. Update changes `/name` only. |
| Deployments, restarts, source imports, secrets, logs, domains, and subscriptions | Yes                                          | No                                |

Go to [About WordPress sites](https://developer.godaddy.com/docs/api-users/hosting/about-wordpress-sites) for how the two products differ.

Go to [Deploy your Node.js app](https://developer.godaddy.com/docs/api-users/hosting/workflows/deploy-nodejs-app) for the initial deploy walkthrough. Go to [Hosting concepts](https://developer.godaddy.com/docs/api-users/hosting/concepts) for the variant and deployment model.

## What you can do

The following table lists each guide and what it covers:

| Guide                                                                          | Description                                                                                                   |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| [Deploy your Node.js app](https://developer.godaddy.com/docs/api-users/hosting/workflows/deploy-nodejs-app) | Deploy your app end to end. Create, attach to a hosting plan, upload, publish, and verify in one walkthrough. |
| [Manage apps](https://developer.godaddy.com/docs/api-users/hosting/manage-apps)                             | List, update, and delete apps after the initial deploy.                                                       |
| [Manage secrets](https://developer.godaddy.com/docs/api-users/hosting/manage-secrets)                       | Add, update, and delete per-variant environment secrets. Values are write-only.                               |
| [Read logs](https://developer.godaddy.com/docs/api-users/hosting/read-logs)                                 | Fetch application logs by environment, source stream, and time range.                                         |
| [Attach to a hosting plan](https://developer.godaddy.com/docs/api-users/hosting/attach-hosting-plan)        | Attach a Node.js app to a web hosting subscription (required before going live).                              |
| [Attach domain](https://developer.godaddy.com/docs/api-users/hosting/attach-domain)                         | Attach a custom domain to your app (optional).                                                                |

The following table lists the guides for WordPress sites:

| Guide                                                                                | Description                                                                     |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------- |
| [About WordPress sites](https://developer.godaddy.com/docs/api-users/hosting/about-wordpress-sites)               | What a WordPress site is, how it differs from a Node.js app, and what it needs. |
| [Create and publish a WordPress site](https://developer.godaddy.com/docs/api-users/hosting/create-wordpress-site) | Create a WordPress site, wait for it to be ready, and take it live.             |
| [Manage WordPress sites](https://developer.godaddy.com/docs/api-users/hosting/manage-wordpress-sites)             | Rename, unpublish, read versions of, and delete WordPress sites.                |

Connecting a GitHub repository through the Hosting API is in development for Node.js apps. You can connect a repository in the web UI and deploy from it, or upload source as a zip.

## Two variants per app

Every Node.js app has a preview variant for iteration and a publish variant for production. Uploads and secret changes land on `preview` first; publish promotes the current preview to the production variant.

Go to [Hosting concepts](https://developer.godaddy.com/docs/api-users/hosting/concepts) for the full model.

## Async by default

Long-running operations return immediately with a job or deployment record. Poll the matching status endpoint until the operation reaches a terminal state:

* `POST /v1/hosting/apps` → poll `GET /v1/hosting/app-operations/{operationId}`
* `POST /v1/hosting/apps/{appId}/imports` → poll `GET /v1/hosting/apps/{appId}/imports/{importId}`
* `POST /v1/hosting/apps/{appId}/deployments` → poll `GET /v1/hosting/apps/{appId}/deployments/{deploymentId}` and `GET /v1/hosting/apps/{appId}/status`

WordPress sites add one more async write:

* `PUT /v1/hosting/apps/{appId}/publish-state` → poll `GET /v1/hosting/app-operations/{operationId}`
