# The check commands Koidog last proposed for a project.

> As stored by the last `POST /projects/{id}/detect-commands` or the read when the project was created.
> https://koi.dog/docs/api/projects/get-project-command-suggestions/

`GET /api/v1/projects/{id}/command-suggestions` · Scope: `read`

`404` until Koidog has read the repository once.

## Path parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The project's id. |

## Response.

200 OK · JSON object

## Request.

```sh
curl "https://api.koi.dog/api/v1/projects/$ID/command-suggestions" \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch(`https://api.koi.dog/api/v1/projects/${process.env.ID}/command-suggestions`, {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    f"https://api.koi.dog/api/v1/projects/{os.environ['ID']}/command-suggestions",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "projectId": "string",
  "state": "proposed",
  "reason": "string",
  "branch": "string",
  "sha": "string",
  "detectedAt": "string",
  "proposals": [],
  "notes": [],
  "appliedAt": "string",
  "appliedBy": {
  },
  "appliedFields": [],
  …
}
```
