Skip to main content
POST
/
api
/
v1
/
files
Upload file
curl --request POST \
  --url https://studio.eigenpal.com/api/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "id": "<string>",
  "filename": "<string>",
  "contentType": "<string>",
  "size": 0,
  "createdAt": "<string>",
  "purpose": "<string>"
}

Authorizations

Authorization
string
header
required

API key issued from Settings → API Keys. Pass as Authorization: Bearer <key>.

Body

multipart/form-data
file
file
required

Binary file field

Response

Uploaded file

id
string
required
filename
string
required
contentType
string | null
required
size
integer | null
required
Required range: -9007199254740991 <= x <= 9007199254740991
createdAt
required
purpose
string | null