---
title: "Get the staging clone status for a live site"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Hosted EZ REST API

`GET /v1/sites/{siteId}/staging`

## Authentication

- `sessionCookie`, apiKey, in cookie

## Path parameters

- `getSiteStaging.path.siteId` (string, required) — Site slug (sit_...) or UUID.

## Code samples

### cURL

```curl
curl --request GET \
  --url https://api.hostedez.com/v1/sites/string/staging \
  --header '__Secure-better-auth.session_token: <value>'
```

### TypeScript

```typescript
const url = 'https://api.hostedez.com/v1/sites/string/staging';
const options = {method: 'GET', headers: {'__Secure-better-auth.session_token': '<value>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.hostedez.com/v1/sites/string/staging"

headers = {"__Secure-better-auth.session_token": "<value>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Staging site status

#### Example

```json
{
  "exists": true,
  "lastSyncedAt": "2019-08-24T14:15:22Z",
  "stagingSite": {
    "app": "wordpress",
    "assistedMoveRequested": true,
    "createdAt": "2019-08-24T14:15:22Z",
    "currentHost": "string",
    "domain": "string",
    "failReason": "signin",
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "includesEmail": true,
    "isStaging": true,
    "kind": "new",
    "lastSyncedAt": "2019-08-24T14:15:22Z",
    "mailboxesCount": 0,
    "maintenanceEnabled": true,
    "name": "string",
    "parentSiteId": "186e495c-10c6-4f33-a5ef-3f9806a2ea6b",
    "phpVersion": "",
    "slug": "string",
    "status": "creating",
    "statusSince": 0,
    "storageBytes": 0,
    "tempAddress": "string",
    "updatedAt": "2019-08-24T14:15:22Z",
    "userId": "string"
  }
}
```

- `getSiteStaging.response.200.exists` (boolean, required)
- `getSiteStaging.response.200.lastSyncedAt` (string | null, required)
  - format `date-time`
- `getSiteStaging.response.200.stagingSite` (any of, required)
  - any of: [Site](/api/schemas/Site/), `null`

### 401

Unauthenticated

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `getSiteStaging.response.401.error` (object, required)
  - `getSiteStaging.response.401.error.code` (string, required)
  - `getSiteStaging.response.401.error.message` (string, required)
  - `getSiteStaging.response.401.error.issues` (array<object>, optional)
    - `getSiteStaging.response.401.error.issues.message` (string, required)
    - `getSiteStaging.response.401.error.issues.path` (string, required)

### 404

Site not found

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string"
  }
}
```

- `getSiteStaging.response.404.error` (object, required)
  - `getSiteStaging.response.404.error.code` (string, required)
  - `getSiteStaging.response.404.error.message` (string, required)
  - `getSiteStaging.response.404.error.issues` (array<object>, optional)
    - `getSiteStaging.response.404.error.issues.message` (string, required)
    - `getSiteStaging.response.404.error.issues.path` (string, required)


Source: https://docs.hostedez.com/api/getSiteStaging/index.md
