Backoffice

Create Backoffice Attachment Upload

Changed on

Create a direct-to-R2 attachment upload without proxying file bytes.

post/backoffice/files/attachments/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/backoffice/files/attachments/uploads
  • Auth
    HTTP bearer

Request body

user_idstring required
filenamestring required
mime_typestring required
size_bytesinteger required
agent_idstring uuid nullable
run_idstring uuid nullable
metadataobject nullable

Response

Successful Response

upload_urlstring required
headersobject required
expires_in_secondsinteger required

Changes