---
title: "Get file info"
method: GET
path: "/beta/file/{file_id}"
tags: ["File"]
---

# Get file info

`GET /beta/file/{file_id}`

## Request

- Base URL: `https://api.friendli.ai`
- URL: `https://api.friendli.ai/beta/file/{file_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/friendli/apis/friendli-suite-api-reference/docs/beta/file/:file_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Get file info.

## Path parameters

- `file_id` string, required: File ID

## Headers

- `X-Friendli-Team` string, nullable: ID of team to run requests as (optional parameter).

## Response `200`

OK

- FileInfo: File information.
  - `id` string, required: ID of the file.
  - `name` string, required: Name of the file.
  - `size` integer, required: Size of the file in bytes.
  - `digest` string, required: SHA256 hash of the file.
  - `projectId` string, required: ID of the project the file belongs to.
  - `creatorId` string, required: ID of the creator of the file.
  - `createdAt` string, date-time, required: Unix timestamp (in seconds) of when the file was created.
  - `expiresAt` string, date-time, nullable, required: Unix timestamp (in seconds) of when the file will expire.
  - `status` 'UPLOADING' | 'UPLOADED' | 'FAILED' | 'DELETED', required: AccountFile status.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/friendli/apis/friendli-suite-api-reference.md) - [All operations](https://skmtc.dev/friendli/apis/friendli-suite-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/friendli/apis/friendli-suite-api-reference/revisions/38fb43993a11?raw)
