Retrieve File

Returns information about a specific file.

GEThttps://api.portkey.ai/v1/files/{file_id}
Path parameters
file_id*string

The ID of the file to use for this request.

Response

OK

Body
id*string

The file identifier, which can be referenced in the API endpoints.

bytes*integer

The size of the file, in bytes.

created_at*integer

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

filename*string

The name of the file.

object*enum

The object type, which is always file.

file
purpose*enum

The intended purpose of the file. Supported values are assistants, assistants_output, batch, batch_output, fine-tune, fine-tune-results and vision.

assistantsassistants_outputbatchbatch_outputfine-tunefine-tune-resultsvision
Response
{
  "id": "text",
  "filename": "text",
  "object": "file",
  "purpose": "assistants"
}

Last updated