> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/global-indexer/apis-related-to-indexer/download-file-by-id.md).

# Download file by id

<mark style="color:green;">`GET`</mark> `/artifacts/files/{fileId}`

Download file by id

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| fileId | string | File ID     |

**Response**

{% tabs %}
{% tab title="200" %}

```json5
description: Raw file contents (streamed)
```

{% endtab %}

{% tab title="500" %}

```json5
description: Internal server error
```

{% endtab %}
{% endtabs %}
