Skip to main content
POST
Request file upload URL

Authorizations

x-teamai-api-key
string
header
required

Secret API key created in Workspace Settings → API Keys (workspace keys) or Organization Admin → API Keys (organization keys).

Path Parameters

projectId
string
required

Project ID.

Body

application/json
filename
string
required
Maximum string length: 255
contentType
string
required

MIME type of the file. Common document, image, text, code, and archive types are allowed.

sizeBytes
integer

File size, used to enforce storage quotas.

folder
string

Optional subfolder path.

Response

Signed upload target.

data
object