---
title: "Stat file"
method: GET
path: "/v2/file-systems/{file_system_key}/files/stat"
tags: ["File Systems"]
---

# Stat file

`GET /v2/file-systems/{file_system_key}/files/stat`

## Request

- Base URL: `https://my.orq.ai`
- URL: `https://my.orq.ai/v2/file-systems/{file_system_key}/files/stat`
- Auth: HTTP bearer

Retrieves the metadata of one file or folder without transferring its content.

## Path parameters

- `file_system_key` string, required

## Query parameters

- `path` string

## Response `200`

Successfully retrieved the file metadata.

- StatFileSystemFileResponse
  - `path` string, required
  - `type` 'file' | 'dir' | 'symlink' | 'other', required
  - `size_bytes` string, required
  - `mode` string, required: Permission bits in octal, for example 0644
  - `modified` string, required

## Other responses

- `400`: The request is invalid. See https://docs.orq.ai/reference/errors for the error codes.
- `404`: File system or path not found.

## Changes

> 554 revisions in range; 71 not diffed.

- **2026-10-23** `0b4e519a544f`: 1 info
  - added the non-success response with the status `400`
- **2026-10-23** `732aed62833a`: 1 info
  - removed the non-success response with the status `400`
- **2026-10-22** `4f826b2c3a0e`: 1 info
  - added the non-success response with the status `400`
- **2026-10-22** `8f0dc569f247`: 1 info
  - removed the non-success response with the status `400`
- **2026-10-21** `08b800d640e6`: 1 info
  - added the non-success response with the status `400`

[Operation history](https://skmtc.dev/orq-ai/apis/orq-ai-api/changes/v2/file-systems/:file_system_key/files/stat/get.md)

---

[API](https://skmtc.dev/orq-ai/apis/orq-ai-api.md) - [All operations](https://skmtc.dev/orq-ai/apis/orq-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/orq-ai/apis/orq-ai-api/revisions/928a71e92252?raw)
