
# Get the live deploy

Read the deploy the site is currently serving. To take it offline, use [DELETE /sites/{siteId}/deployments/live](/api/deployments/delete-deployments-live).

```sh
GET https://sitepaste.com/api/v1/public/sites/{siteId}/deployments/live
```

Requires the `deploy` scope.

`live` is not the same as [latest](/api/deployments/get-deployments-latest): the most recent deploy may be queued, running, or failed, while the live one is the last that succeeded and has not been taken down.

Preview builds do not count. A [promotion](/api/previews/post-previews-promote) does count, because it puts a preview live. A deploy that was queued before an [undeploy](/api/deployments/delete-deployments-live) but finished after it puts the site back online, and this read reports it as live.

## Usage

```bash
curl "https://sitepaste.com/api/v1/public/sites/default/deployments/live" \
  -H "Authorization: Bearer $TOKEN"
```


## Response

200 OK with the deploy record.

404 when the site is not deployed, meaning it never has been or its last deploy was taken down.