Get Upload Url

Get upload specification for uploading a file to a folder

Parameters

ParameterTypeRequiredDescription
folder_idstringRequiredID of the folder to upload to
file_namestringRequiredName of the file being uploaded
file_sizenumberOptionalSize of the file in bytes (optional but recommended)
batch_idstringOptionalBatch ID for multi-file uploads
batch_lastbooleanOptionalIs this the last file in the batch?
can_resumebooleanOptionalEnable resumable uploads (default true)
start_overbooleanOptionalIf true, start a new upload even if resumable upload exists
overwritebooleanOptionalIf true, overwrite existing file with same name
titlestringOptionalDisplay title for the file (defaults to file_name)
detailsstringOptionalDescription/details for the file
notifybooleanOptionalSend notification emails on upload completion

Examples

MCP Tool Call

{
  "name": "sharefile_getUploadUrl",
  "arguments": {
    "folder_id": "example",
    "file_name": "example",
    "file_size": 12345,
    "batch_id": "example",
    "batch_last": true,
    "can_resume": true,
    "start_over": true,
    "overwrite": true,
    "title": "example",
    "details": "example",
    "notify": true
  }
}

REST API

curl -X POST https://api.syncello.io/v1/tools/sharefile/getUploadUrl \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "folder_id": "example",
  "file_name": "example",
  "file_size": 12345,
  "batch_id": "example",
  "batch_last": true,
  "can_resume": true,
  "start_over": true,
  "overwrite": true,
  "title": "example",
  "details": "example",
  "notify": true
}'