GET
/
files
List Files
curl --request GET \
  --url https://{controlPlaneURL}/api/llm/files \
  --header 'Authorization: Bearer <token>' \
  --header 'x-tfy-provider-name: <x-tfy-provider-name>'
{
  "object": "<string>",
  "data": [
    {
      "object": "<string>",
      "id": "<string>",
      "purpose": "<string>",
      "filename": "<string>",
      "bytes": 123,
      "created_at": 123,
      "expires_at": 123,
      "status": "<string>",
      "status_details": "<string>"
    }
  ],
  "has_more": true,
  "first_id": "<string>",
  "last_id": "<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

Response

200 - application/json

All files retrieved successfully

object
string
required

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

data
object[]
required

Array of file objects.

has_more
boolean
required

Whether there are more files to retrieve.

first_id
string | null
required

The ID of the first file in the list.

last_id
string | null
required

The ID of the last file in the list.