Skip to main content
GET
/
v1
/
files
/
{file_id}
Get File
curl --request GET \
  --url https://api.example.com/v1/files/{file_id}
{
  "id": "<string>",
  "object": "<string>",
  "bytes": 123,
  "created_at": 123,
  "expires_at": 123,
  "filename": "<string>",
  "purpose": "assistants"
}

Documentation Index

Fetch the complete documentation index at: https://docs.getimpala.ai/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

file_id
string
required

Response

Successful Response

id
string
required

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

object
string
required

The object type, which is always file.

Allowed value: "file"
bytes
integer
required

The size of the file, in bytes.

created_at
integer
required

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

expires_at
integer | null
required

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

filename
string
required

The name of the file.

purpose
enum<string>
required

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

Available options:
assistants,
assistants_output,
batch,
batch_output,
fine-tune,
fine-tune-results,
vision,
user_data