POST
/
files
curl --request POST \
  --url https://api.vaeroapi.com/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form purpose=fine-tune
{
  "id": "file-abc123",
  "object": "file",
  "bytes": 120000,
  "created_at": 1677610602,
  "filename": "mydata.txt",
  "purpose": "fine-tune"
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Response

200 - application/json

Successful file upload. Returns the uploaded file object.

The response is of type object.