Upload File
Upload a file into a space and return the canonical file resource.
Authentication
AuthorizationBearer
Use Bearer <api-key>.
Query parameters
spaceId
Request
This endpoint expects a multipart form containing a file.
file
File bytes to upload.
metadata
Optional JSON object string with caller-owned file metadata.
name
Optional display filename.
path
Optional relative destination path. Must not be absolute or contain . or .. path segments.
Response
Created
contentType
createdAt
downloadUrl
id
name
path
sizeBytes
source
spaceId
expiresAt
metadata
runId
runtimeId
type
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error

