# Create an application (https://developer.godaddy.com/en/docs/references/rest/hosting/create-app)

---
title: Create an application
description: Creates a new hosted application.
full: true
pageId: 74de519f-f709-4e8f-bf03-51abc17ef4f8
---

Full description

> Creates a new hosted application. Because no `appId` exists until provisioning has assigned one, this endpoint returns `202 Accepted` with an `AppOperation` resource carrying an `operationId`. Poll `GET /app-operations/&#123;operationId&#125;` until `status` is `COMPLETED` or `FAILED`. On `COMPLETED` the operation result includes the created `Application` with `status: ACTIVE`; use its `id` for any further calls.   Currently only `NODEJS` and `MHWP` applications can be created through this endpoint. The request body is product-specific; the fields below apply to Node.js and MHWP. Support for additional product types will be documented when those paths are available.   A `NODEJS` create takes an optional `hostingProduct` query parameter. `WEB_HOSTING` asks for an application on a Web Hosting plan. `AIRO` asks for an Airo App Builder application, which publishes against an Airo plan. A plan is bought outside this API. When `hostingProduct` is omitted, the service chooses. Customers with an existing Web Hosting plan keep getting `WEB_HOSTING`. Everyone else gets `AIRO` where it is offered. Set `hostingProduct` explicitly to get a particular product. A request for either value that cannot be served returns `422` with a `details[].issue`, and nothing is created. `AIRO_NOT_AVAILABLE` is the code for `AIRO`. `WEB_HOSTING` is not guaranteed to stay available to customers without a Web Hosting plan, so clients should handle the `422` for it.   For `MHWP` applications, a refused create names its reason in `details[].issue`. A `403` carries `WORDPRESS_NOT_ENABLED` when WordPress is not enabled for this account, or `SUBSCRIPTION_INACTIVE` when the Airo App Builder subscription is not active. A `409` carries `MULTIPLE_SYSTEMS_AMBIGUOUS` when the account's Airo App Builder subscription has more than one hosting system, so the target is ambiguous; `CREATE_IN_PROGRESS` when another create is in progress, so retry shortly; or `IDEMPOTENCY_IN_PROGRESS` while a request with the same `Idempotency-Key` is still in flight. A `422` carries `SUBSCRIPTION_REQUIRED` when the account has no Airo App Builder subscription; `SYSTEM_INCONSISTENT` when the account is not ready to add an app; `APP_LIMIT_EXCEEDED` when the account already has the maximum number of applications allowed for this product; or `IDEMPOTENCY_KEY_MISMATCH` when an `Idempotency-Key` is reused with a different body. A creation that fails after it is accepted ends the operation `FAILED` with `error.details[].issue` `CAPACITY_UNAVAILABLE` when no capacity is available to create the app, so retry later, or `APP_CREATION_FAILED` for any other failure.

## POST /apps

Create an application

Creates a new hosted application. Because no `appId` exists until provisioning has assigned one, this endpoint returns `202 Accepted` with an `AppOperation` resource carrying an `operationId`. Poll `GET /app-operations/{operationId}` until `status` is `COMPLETED` or `FAILED`. On `COMPLETED` the operation result includes the created `Application` with `status: ACTIVE`; use its `id` for any further calls.

Currently only `NODEJS` and `MHWP` applications can be created through this endpoint. The request body is product-specific; the fields below apply to Node.js and MHWP. Support for additional product types will be documented when those paths are available.

A `NODEJS` create takes an optional `hostingProduct` query parameter. `WEB_HOSTING` asks for an application on a Web Hosting plan. `AIRO` asks for an Airo App Builder application, which publishes against an Airo plan. A plan is bought outside this API. When `hostingProduct` is omitted, the service chooses. Customers with an existing Web Hosting plan keep getting `WEB_HOSTING`. Everyone else gets `AIRO` where it is offered. Set `hostingProduct` explicitly to get a particular product. A request for either value that cannot be served returns `422` with a `details[].issue`, and nothing is created. `AIRO_NOT_AVAILABLE` is the code for `AIRO`. `WEB_HOSTING` is not guaranteed to stay available to customers without a Web Hosting plan, so clients should handle the `422` for it.

For `MHWP` applications, a refused create names its reason in `details[].issue`. A `403` carries `WORDPRESS_NOT_ENABLED` when WordPress is not enabled for this account, or `SUBSCRIPTION_INACTIVE` when the Airo App Builder subscription is not active. A `409` carries `MULTIPLE_SYSTEMS_AMBIGUOUS` when the account's Airo App Builder subscription has more than one hosting system, so the target is ambiguous; `CREATE_IN_PROGRESS` when another create is in progress, so retry shortly; or `IDEMPOTENCY_IN_PROGRESS` while a request with the same `Idempotency-Key` is still in flight. A `422` carries `SUBSCRIPTION_REQUIRED` when the account has no Airo App Builder subscription; `SYSTEM_INCONSISTENT` when the account is not ready to add an app; `APP_LIMIT_EXCEEDED` when the account already has the maximum number of applications allowed for this product; or `IDEMPOTENCY_KEY_MISMATCH` when an `Idempotency-Key` is reused with a different body. A creation that fails after it is accepted ends the operation `FAILED` with `error.details[].issue` `CAPACITY_UNAVAILABLE` when no capacity is available to create the app, so retry later, or `APP_CREATION_FAILED` for any other failure.


### Query parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `appType` | unknown | yes | Product type to scope the operation to. |
| `hostingProduct` | unknown | no | The product that hosts the new application. `appType=NODEJS` only, and `appType=MHWP` rejects it with `400`. A value the customer can't use is refused with `422` and a `details[].issue`, and nothing is created. Not the same as the `hostingProduct` filter on `GET /subscriptions`, which takes `WEB_HOSTING` and `MANAGED_WORDPRESS`. |

### Header parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Idempotency-Key` | string <uuid> | no | Client-generated UUID that makes a request safe to retry. Supplying the same key on a retry with an identical request body returns the original response without triggering a second operation. Retrying with the same key while the first request is still in flight returns `409 Conflict` with `details[].issue` `IDEMPOTENCY_IN_PROGRESS`. Reusing a key with a different request body returns `422 Unprocessable Entity` with `details[].issue` `IDEMPOTENCY_KEY_MISMATCH`. Keys are retained for 24 hours after the operation completes, after which the key may be reused. |

### Request body (required)

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/CreateAppRequest`

### Responses

**202** — Application creation accepted. Poll `links[rel=self]` until `status` is `COMPLETED` or `FAILED`.

Content-Type: `application/json`

Schema:

- schema reference: `#/x-ext/0bebd09`

**400** — The request body or parameters did not pass schema validation.

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/Error`

**401** — Authentication credentials are missing or invalid. The response body may be empty and may not include `details[].issue`, so clients should not rely on the body to handle this status.

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/Error`

**403** — The caller is authenticated, but the request is not permitted: the access token does not carry the scope this operation requires, the operation is disabled for this account, or the account is not entitled to it. An entitlement `403` names the reason in `details[].issue`: for example `PUT /apps/{appId}/publish-state` answers `SUBSCRIPTION_INACTIVE` when the subscription that owns the application is not active, and `POST /apps?appType=MHWP` answers `WORDPRESS_NOT_ENABLED` when WordPress is not enabled for this account. When the access token does not carry the required scope, the response body may be empty and may not include `details[].issue`, so clients should not rely on the body to handle that case.

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/Error`

**409** — The request conflicts with the current state of the resource.

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/Error`

**422** — The request was well-formed but could not be processed due to a business rule violation.

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/Error`

**429** — Rate limit exceeded. A `429` response may come in one of two shapes: an empty body with `RateLimit-Limit`, `RateLimit-Remaining`, and `RateLimit-Reset` headers; or a JSON `Error` body with `Retry-After` and `RateLimit-*` headers. Clients should honour whichever headers are present and should not assume a JSON body is available on every `429`.

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/Error`

**503** — The service is temporarily unable to handle the request. Retry after a short delay. May include a `Retry-After` header hinting at when to retry. When a dependency the request needs could not be read, such as the plan limit behind `PUT /apps/{appId}/publish-state` or the plan check behind `POST /apps/{appId}/deployments`, `details[].issue` is `UPSTREAM_UNAVAILABLE`. For `MHWP` applications, `PATCH /apps/{appId}`, `DELETE /apps/{appId}` and `PUT /apps/{appId}/publish-state` also answer `503` with `details[].issue` `UPSTREAM_UNAVAILABLE` and `Retry-After: 5` while another write holds the application's lock.

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/Error`

**Security:** requires `bearerAuth`.
