
# Get a deploy

Read one deploy by id. Ids come from [the list](/api/deployments/get-deployments), from [latest](/api/deployments/get-deployments-latest), or from [live](/api/deployments/get-deployments-live).

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

Requires the `deploy` scope.

## Usage

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


## Response

200 OK with the deploy record: its status, when it started and finished, and what triggered it.

400 when `{deploymentId}` is malformed. 404 when it is well formed but no deploy on the site has that id. A deploy belonging to another workspace answers 404 too, never 403.