---
title: "Get file details"
method: GET
path: "/v1/orgs/{slug}/volumes/{id}/files/stat"
tags: ["volumes"]
---

# Get file details

`GET /v1/orgs/{slug}/volumes/{id}/files/stat`

## Request

- Base URL: `https://api.microsandbox.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.microsandbox.dev/v1/orgs/{slug}/volumes/{id}/files/stat`
- Auth: HTTP bearer

## Path parameters

- `slug` string, required
- `id` string, uuid, required

## Headers

- `x-msb-file-path` string, required

## Response `200`

Get file details

- VolumeFileStatResponse: Metadata for the requested path.
  - `metadata` VolumeFileInfo, required: Metadata for a file or directory within a volume.
    - `accessed_at` string, date-time, nullable
    - `created_at` string, date-time, nullable
    - `gid` integer, required
    - `kind` 'file' | 'directory', required: Type of a volume entry.
    - `mode` integer, required: Unix file mode bits.
    - `modified_at` string, date-time, nullable
    - `path` string, required: Volume-relative path.
    - `readonly` boolean, required
    - `size` integer, required: Size in bytes.
    - `uid` integer, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Volume or path not found
- `502`: Volume filesystem unavailable

## Changes

- **2026-10-30** `1cdd89b0fe30`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/microsandbox/apis/microsandbox-api/changes/v1/orgs/:slug/volumes/:id/files/stat/get.md)

---

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