# Get an application operation (https://developer.godaddy.com/en/docs/references/rest/hosting/get-app-operation)

---
title: Get an application operation
description: >-
  Returns the current state of an application operation: a creation started by
  `POST /apps`, or a publish-state change started by `PUT
  /apps/{appId}/publish-state`.
full: true
pageId: a69b98fb-e057-4382-9164-e12dca9f1db5
---

Full description

> Returns the current state of an application operation: a creation started by `POST /apps`, or a publish-state change started by `PUT /apps/&#123;appId&#125;/publish-state`. Use this as the poll target until `status` reaches `COMPLETED` or `FAILED`. On a `COMPLETED` creation, `app` carries the created application with `status: ACTIVE`. A publish-state operation carries no `app`; read `GET /apps/&#123;appId&#125;/publish-state` for the result.

## GET /app-operations/{operationId}

Get an application operation

Returns the current state of an application operation: a creation started by `POST /apps`, or a publish-state change started by `PUT /apps/{appId}/publish-state`. Use this as the poll target until `status` reaches `COMPLETED` or `FAILED`. On a `COMPLETED` creation, `app` carries the created application with `status: ACTIVE`. A publish-state operation carries no `app`; read `GET /apps/{appId}/publish-state` for the result.


### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `operationId` | string | yes | The operation identifier returned by `POST /apps` or by `PUT /apps/{appId}/publish-state`. |

### Header parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `traceparent` | string | no | W3C Trace Context identifier for this request. Clients should send a `traceparent` on every request so the trace can be correlated across services. See https://www.w3.org/TR/trace-context/ for the format. |

### Responses

**200** — Operation details.

Content-Type: `application/json`

Schema:

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

**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`

**404** — The requested resource does not exist.

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`.
