SDK API

Create Server File Upload

Changed on

Upload file bytes through the backend and store them in R2/S3.

post/v1/files/server-uploads

Request

  • Base URL
    https://api.toolhouse.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.toolhouse.ai/v1/files/server-uploads
  • Auth
    HTTP bearer

Request body

filenamestring nullable
mime_typestring nullable
data_base64string required
run_idstring uuid nullable
tagsstring[]
metadataobject nullable
conflict_strategy'error' | 'overwrite' | 'rename'

Response

Successful Response

Changes