v1

latestOpenAPI 3.0.32026-07-172892106.1 KB
files

Retrieve File

Returns information about a specific file.

get/files/{fileId}

Path parameters

fileIdstring required

Response

OK

filenamestring required

The name of the uploaded file.

deletedboolean required
purpose'fine-tune' | 'batch' required
bytesinteger required

The size of the file, in bytes.

created_atinteger required

The UNIX timestamp (in seconds) of the event.

idstring uuid required

The unique identifier of the file.

source'upload' | 'repository' | 'mistral' required
sample_type'pretrain' | 'instruct' | 'batch_request' | 'batch_result' | 'batch_error' required
num_linesinteger nullable
objectstring required

The object type, which is always "file".

Example response

{
  "filename": "[\"files_upload.jsonl\"]",
  "object": "[\"file\"]"
}