Skip to main content
GET
/
files
/
{id}
Get File
curl --request GET \
  --url https://{controlPlaneURL}/api/llm/files/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-tfy-provider-name: <x-tfy-provider-name>'
{
  "id": "<string>",
  "object": "<string>",
  "created_at": 123,
  "purpose": "<string>",
  "bytes": 123,
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-tfy-provider-name
string
required

Name of the provider

x-tfy-metadata
string

Optional metadata for the request

Path Parameters

id
string
required

The ID of the file to retrieve

Response

Files retrieved successfully

id
string
required

Id of the uploaded file.

object
string
required

Type of the object, e.g., 'file'.

created_at
number
required

Timestamp of when the file was created.

purpose
string
required

The purpose of the file, e.g., 'batch'.

bytes
number
required

The size of the file in bytes.

status
string
required

The status of the file, e.g., 'processed'.

I