Skip to main content
GET
/
beta
/
file
/
{file_id}
Get file info
curl --request GET \
  --url https://api.friendli.ai/beta/file/{file_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "file-id",
  "name": "file-name",
  "size": 1024,
  "digest": "file-digest",
  "project_id": "project-id",
  "creator_id": "creator-id",
  "created_at": 1705244400,
  "expires_at": 1765724399,
  "status": "UPLOADED"
}
Get file info. To request successfully, it is required to enter a Friendli Token (e.g. flp_XXX) in the Bearer Token field. Refer to the authentication section on our introduction page to learn more and visit here to generate your token.
This API is currently in Beta. While we strive to provide a stable and reliable experience, this feature is still under active development. As a result, you may encounter unexpected behavior or limitations. We encourage you to provide feedback to help us improve the feature before its official release.

Authorizations

Authorization
string
header
required

When using Friendli Suite API for inference requests, you need to provide a Friendli Token for authentication and authorization purposes.

For more detailed information, please refer here.

Headers

X-Friendli-Team
string | null

ID of team to run requests as (optional parameter).

Path Parameters

file_id
string
required

File ID

Response

OK

File information.

createdAt
string<date-time>
required

Unix timestamp (in seconds) of when the file was created.

creatorId
string
required

ID of the creator of the file.

digest
string
required

SHA256 hash of the file.

expiresAt
string<date-time> | null
required

Unix timestamp (in seconds) of when the file will expire.

id
string
required

ID of the file.

name
string
required

Name of the file.

projectId
string
required

ID of the project the file belongs to.

size
integer
required

Size of the file in bytes.

status
enum<string>
required

Status of the file upload.

Available options:
UPLOADING,
UPLOADED,
FAILED,
DELETED
I