---
title: "Get a file metadata"
method: GET
path: "/library/files/{fileId}"
tags: ["Library"]
---

# Get a file metadata

`GET /library/files/{fileId}`

## Path parameters

- `fileId` string, required

## Response `200`

Success

- FileDto
  - `fileId` string, nullable
  - `fileName` string, nullable
  - `lastModified` string, date-time
  - `fileType` string, nullable
  - `fileStatus` string, nullable
  - `fileSize` integer
  - `estimatedFileSize` integer
  - `sources` FileSourceDto[], nullable
    - `id` string, nullable
    - `name` string, nullable
    - `category` string, nullable
  - `accountId` string, nullable
  - `uri` string, nullable
  - `lastUse` string, date-time, nullable
  - `uses` integer, nullable
  - `faviconUrl` string, nullable

---

[API](https://skmtc.dev/closebot/apis/closebot-api.md) · [All operations](https://skmtc.dev/closebot/apis/closebot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/closebot/closebot-api/revisions/da5f5fb58534/schema)
