# Get the download status for a pre-receive environment

From **GitHub v3 REST API**.

`GET /admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest`

In addition to seeing the download status at the "[Get a pre-receive environment](#get-a-pre-receive-environment)" endpoint, there is also this separate endpoint for just the download status.

## Parameters

### `pre_receive_environment_id`

- Location: path
- Required: true
- Type: `integer`

## Responses

### `200`

Response

### `application/json`

- Type: `object`

```json
{
  "downloaded_at": "2016-05-26T07:42:53-05:00",
  "message": null,
  "state": "success",
  "url": "https://github.example.com/api/v3/admin/pre-receive-environments/3/downloads/latest"
}
```

```json
{"properties":{"downloaded_at":{"nullable":true,"type":"string"},"message":{"nullable":true,"type":"string"},"state":{"type":"string"},"url":{"type":"string"}},"type":"object"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest
```
