Skip to main content
POST
/
api
/
v2
/
external
/
files
Upload Batch File
curl --request POST \
  --url https://api.lyceum.technology/api/v2/external/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>'
{
  "id": "<string>",
  "bytes": 123,
  "created_at": 123,
  "filename": "<string>",
  "purpose": "<string>",
  "object": "file"
}

Authorizations

Authorization
string
header
required

Pass an API key (prefixed lk_) or a JWT access token as a bearer token. Generate API keys in the dashboard at https://dashboard.lyceum.technology/api-keys.

Query Parameters

purpose
string
default:batch

Body

multipart/form-data
file
string
required

Response

Successful Response

id
string
required
bytes
integer
required
created_at
integer
required
filename
string
required
purpose
string
required
object
string
default:file