POST
/
files
curl --request POST \
  --url https://{controlPlaneURL}/api/llm/api/inference/openai/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

The body is of type object.

Response

200
application/json

File uploaded successfully

The response is of type object.