Skip to main content
POST
Upload a bundled file

Authorizations

Authorization
string
header
required

JWT token from Clerk authentication.

Must be from a user with org:admin role.

Body

application/json
skillId
integer
required

The skill to attach the file to

fileName
string
required

File name, may include subdirectory (e.g., scripts/setup.py)

Example:

"scripts/generate_report.py"

contentType
string
required

MIME type of the file

Example:

"text/x-python"

fileSize
integer | null

File size in bytes (optional)

Response

File record created with presigned upload URL

success
boolean
file
object
uploadUrl
string<uri>

Presigned URL for direct file upload (PUT). Expires in 10 minutes.