> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/guardian/workspace/schemas/available-schema-types/table-data-input-field/apis-related/download-file-by-id.md).

# Download file by id

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

Returns file from GridFS

**Headers**

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

**Body**

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

**Response**

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

```json5
description: Unauthorized.
```

{% endtab %}

{% tab title="403" %}

```json5
{
  description: Forbidden.
}
```

{% endtab %}
{% endtabs %}
