附件上傳
附件上傳串接
Last updated
Was this helpful?
附件上傳串接
Last updated
Was this helpful?
此 API 整合了原本分散的檔案上傳流程,將取得 Presigned URL、上傳檔案至雲端儲存以及上傳至 Attachment 的功能整合為單一端點。
URL: https://api.maiagent.ai/api/attachments-upload/
方法: POST
內容類型: multipart/form-data
file
string(binary)
是
要上傳的檔案
Accept: application/json Authorization: Api-Key {您的API金鑰}
使用 curl 發送請求:
id
string
檔案的唯一識別碼
type
string
檔案類型,例如 "other"
filename
string
原始檔案名稱
file
string
檔案的存取 URL
準備要上傳的檔案
使用 multipart/form-data 格式發送 POST 請求
請求中必須包含有效的 API 金鑰
成功上傳後,系統會返回檔案的 ID 和存取 URL
請確保您有適當的權限來使用此 API
檔案大小可能有限制,請參考帳號所屬組織購買的方案
支援的檔案類型如下