Create Share

Create a new share to send files or request files

Parameters

ParameterTypeRequiredDescriptionOptions
share_typestringRequiredType of share: "Send" to share files, "Request" to request uploads
SendRequest
itemsarrayOptionalArray of item IDs to share (required for Send shares)
parent_idstringOptionalParent folder ID for Request shares (where uploads will go)
titlestringOptionalTitle/subject for the share
expiration_daysnumberOptionalNumber of days until share expires (default varies by account)
max_downloadsnumberOptionalMaximum number of downloads allowed (-1 for unlimited)
require_loginbooleanOptionalRequire recipients to log in to access
require_user_infobooleanOptionalRequire recipients to provide name/email/company
is_view_onlybooleanOptionalView only mode (no download) for Send shares
notify_on_downloadbooleanOptionalSend notification when files are downloaded
notify_on_uploadbooleanOptionalSend notification when files are uploaded (Request shares)
recipientsarrayOptionalArray of recipient email addresses
personal_messagestringOptionalPersonal message to include in notification emails
cc_senderbooleanOptionalCC the sender on notification emails

Examples

MCP Tool Call

{
  "name": "sharefile_createShare",
  "arguments": {
    "share_type": "example",
    "items": "example",
    "parent_id": "example",
    "title": "example",
    "expiration_days": 12345,
    "max_downloads": 12345,
    "require_login": true,
    "require_user_info": true,
    "is_view_only": true,
    "notify_on_download": true,
    "notify_on_upload": true,
    "recipients": "example",
    "personal_message": "example",
    "cc_sender": true
  }
}

REST API

curl -X POST https://api.syncello.io/v1/tools/sharefile/createShare \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "share_type": "example",
  "items": "example",
  "parent_id": "example",
  "title": "example",
  "expiration_days": 12345,
  "max_downloads": 12345,
  "require_login": true,
  "require_user_info": true,
  "is_view_only": true,
  "notify_on_download": true,
  "notify_on_upload": true,
  "recipients": "example",
  "personal_message": "example",
  "cc_sender": true
}'