**Version: 202201**

# Get File Details

**GET** `/openapi/2022-01/file/:file_uri`

Retrieve detailed metadata and access information about a specific file using its unique file_uri. This endpoint is commonly used to fetch file properties, such as the name, size, type, and access URL.

## Request

**Path Parameters**

- `file_uri` string (required)

  The unique identifier of the file. This must be a valid alphanumeric string representing the file’s URI.

## Responses

**200 | 400 | 404**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `upload_link` string

  **Example:** `https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png`
- `file_uri` string

  **Example:** `7ebb4faa8d92e1d627edf9ca61a98993.png`
- `folder` string

  **Example:** `upload`
- `size` integer

  **Default value:** `0`

  **Example:** `6842`
- `type` string

  **Example:** `image/png`
- `origin_link` string

  **Example:**
- `desc` string

  **Example:**
- `aspect_ratio` string

  **Example:** `1.2500000`
- `width` integer

  **Default value:** `0`

  **Example:** `250`
- `height` integer

  **Default value:** `0`

  **Example:** `200`
- `created_at` string

  **Example:** `2024-04-23T09:32:57.090041356+08:00`
- `updated_at` string

  **Example:** `2024-04-23T09:32:57.090041356+08:00`

```json
{
  "upload_link": "https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png",
  "file_uri": "7ebb4faa8d92e1d627edf9ca61a98993.png",
  "folder": "upload",
  "size": 6842,
  "type": "image/png",
  "origin_link": "",
  "desc": "",
  "aspect_ratio": "1.2500000",
  "width": 250,
  "height": 200,
  "created_at": "2024-04-23T09:32:57.090041356+08:00",
  "updated_at": "2024-04-23T09:32:57.090041356+08:00"
}
```

```json
{
    "upload_link": "https://cdn.shoplazza.com/7ebb4faa8d92e1d627edf9ca61a98993.png",
    "file_uri": "7ebb4faa8d92e1d627edf9ca61a98993.png",
    "folder": "upload",
    "size": 6842,
    "type": "image/png",
    "origin_link": "",
    "desc": "",
    "aspect_ratio": "1.2500000",
    "width": 250,
    "height": 200,
    "created_at": "2024-04-23T09:32:57.090041356+08:00",
    "updated_at": "2024-04-23T09:32:57.090041356+08:00"
}
```

400

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string

  **Example:** `request status not ok`

```json
{
  "errors": "request status not ok"
}
```

```json
{ "errors": "request status not ok" }
```

404

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "data is null"
  ]
}
```

```json
{
  "errors": [
    "data is null"
  ]
}
```
