---
title: "Retrieve information about a file"
method: GET
path: "/v1/files/{file_id}"
tags: ["Files"]
---

# Retrieve information about a file

`GET /v1/files/{file_id}`

## Request

- Base URL: `https://api.capacity.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.capacity.com/v1/files/{file_id}`
- Auth: one of:
  - API key in header `x-capacity-id`
  - HTTP bearer

Retrieve information about a file

## Path parameters

- `file_id` string, required

## Query parameters

- `include_base64` boolean

## Response `200`

The requested file

- object
  - `body` object: Json body data in the request
  - `parameters` object: Query parameters in the request
  - `result` FileSchema
    - `created_at` string: Datetime when the file was created
    - `id` string: ID of the file
    - `folder_id` string: ID of the folder that the file is in. Null indicates the file is in the root folder of its knowledge base.
    - `is_public` boolean: Whether the file is public
    - `md5sum` string: MD5 checksum for the file
    - `name` string: Name of the file
    - `tag_ids` string[]: IDs of global tags applied to file
    - `tag_names` string[]: Names of global tags applied to file

## Other responses

- `404`: The requested resource could not be found

---

[API](https://skmtc.dev/capacity/apis/capacity-api-docs.md) - [All operations](https://skmtc.dev/capacity/apis/capacity-api-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/capacity/apis/capacity-api-docs/revisions/74c85bb61004?raw)
