# The text of a log artifact.

> Plain text, at most 2 MB; `X-Koidog-Truncated` carries the full size when it was cut.
> https://koi.dog/docs/api/artifacts/get-artifact-content/

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

Only log artifacts have content. No query parameters.

## Path parameters.

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

## Response.

200 OK, plain text.

## Request.

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

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

```python
import os

import requests

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