---
title: "Stat a file in a volume"
method: GET
path: "/files/stat"
tags: ["pv"]
---

# Stat a file in a volume

`GET /files/stat`

## Request

- The document declares no server URL.
- Auth: none declared

Return metadata of base_path/rel_path; returns 200 with exists=false if not found

## Query parameters

- `base_path` string, required
- `rel_path` string, required

## Response `200`

OK

- PkgServerVolumefsStatResponse
  - `exists` boolean
  - `mime` string
  - `modified_at` string
  - `path` string
  - `size` integer

## Changes

- **2026-07-23** `a12b0f392336`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tencentblueking/apis/daemon-api/changes/files/stat/get.md)

---

[API](https://skmtc.dev/tencentblueking/apis/daemon-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/daemon-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/daemon-api/revisions/b7207bf13d2c?raw)
