# Read an integration.

> https://koi.dog/docs/api/crews/get-integration/

`GET /api/v1/integrations/{id}` · Scope: `read`

## Path parameters.

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

## Response.

200 OK · JSON object

## Request.

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

```js
const res = await fetch(`https://api.koi.dog/api/v1/integrations/${process.env.ID}`, {
  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/integrations/{os.environ['ID']}",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "id": "string",
  "crewId": "string",
  "projectId": "string",
  "state": "merging",
  "stateReason": "string",
  "branch": "string",
  "baseSha": "string",
  "tipSha": "string",
  "branches": [],
  "checks": {
    "declared": false,
    "passed": false,
    "checkedSha": "string",
    "taskId": "string",
    "runId": "string",
    "results": []
  },
  "options": {
    "resolveConflicts": false,
    "openPr": false
  },
  "pullRequest": {
  },
  "by": {
  },
  "createdAt": "string",
  …
}
```
