---
name: "fetchDeviceFileDetail"
mode: "kit"
versionRequirements:
  - { name: "@tuya-miniapp/cloud-api", version: "1.0.5" }
---

## fetchDeviceFileDetail

> [VERSION] @tuya-miniapp/cloud-api >= 1.0.5

### 描述

获取云存文件详情

### 参数

`Params`

| 参数 | 类型 | 必填 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `fileNo` | `string` | 是 | - | 云存文件 id |
| `devId` | `string` | 是 | - | 设备 id |

### 示例代码

#### 请求示例

```typescript
import { fetchDeviceFileDetail } from '@tuya-miniapp/cloud-api';

fetchDeviceFileDetail('cloud-file-id', 'vdevo167504******003')
  .then((detail) => {
    console.log(detail);
  })
  .catch();
```

#### 返回示例

```json
{
  "fileNo": "cloud-file-id",
  "fileName": "clip.wav",
  "publicUrl": "https://example.com/storage/clip.wav"
}
```
