# The combined branch as one patch.

> Plain text, `git diff --binary` from the base (or from nothing) to the tip; apply with `git apply`.
> https://koi.dog/docs/api/crews/get-integration-patch/

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

At most 20 MB.

## Path parameters.

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

## Response.

200 OK · Plain text

## Request.

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

```js
const res = await fetch(`https://api.koi.dog/api/v1/integrations/${process.env.ID}/patch`, {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.text());
```

```python
import os

import requests

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