POST
/
files
Upload File
curl --request POST \
  --url https://{controlPlaneURL}/api/llm/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-tfy-provider-name: <x-tfy-provider-name>' \
  --form 'file=<any>'
{
  "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

Body

multipart/form-data

File to upload and associated metadata

file
any

The file data to upload (not the file name)

Response

File uploaded 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'.