# File/Image Retrieval

> File, image retrieval

## Image Retrieval API

<mark class="gb-c-blue">`GET`</mark> {domain}/file/image/:pictureID?size=large

**Description**

This endpoint retrieves an **image file** that was sent by a user. The image is identified by its unique `pictureID`.

**Header**

| Key           | Value          | Descriptiom  |
| ------------- | -------------- | ------------ |
| Authorization | Bearer {token} | Access token |

**Path Parameters**

| **Parameter** | **Type** | **Description**                                     |
| ------------- | -------- | --------------------------------------------------- |
| `pictureID`   | String   | The unique identifier of the image to be retrieved. |

**Query Parameters**

| **Parameter** | **Type** | **Required** | **Description**                                                                                                          |
| ------------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `size`        | String   | Optional     | Specifies the size of the returned image. Supported values include: `small`, `medium`, and `large`. Default is `medium`. |

## File Retrieval API

<mark class="gb-c-blue">`GET`</mark> {domain}/file/file/:fileID

**Description**

This endpoint retrieves an **file file** that was sent by a user. The file is identified by its unique file`ID`.

**Header**

| Key           | Value          | Descriptiom  |
| ------------- | -------------- | ------------ |
| Authorization | Bearer {token} | Access token |

**Path Parameters**

| **Parameter** | **Type** | **Description**                                    |
| ------------- | -------- | -------------------------------------------------- |
| `fileID`      | String   | The unique identifier of the file to be retrieved. |
