Create Large File Upload Session
Creates a TUS upload session for files up to 5 GB. Returns an upload_id and TUS endpoint URL. If a file_hash is provided and the file already exists, an instant upload result is returned without needing to transfer any data.
Upload session parameters
application/json- body
alias?stringCustom slug for the short link (optional, alphanumeric only)
length <= 255description?stringDescription (optional)
length <= 1024domain?stringDomain for short link (optional, use /api/v1/file/domains to list)
length <= 255expire_at?integerUnix timestamp for link expiry (optional)
file_hash?stringSHA256 hash for instant upload deduplication (optional)
length <= 255file_name*stringOriginal filename (required)
length <= 255file_size*integerFile size in bytes (required)
is_private?integerPrivacy: 0=public (default), 1=private
01mime_type?stringMIME type hint (optional, server will detect from file bytes)
length <= 255password?stringAccess password (3–32 chars, optional)
3 <= length <= 32replace_file_id?integerID of an existing file whose content should be replaced by this upload (optional). The short link and the file URL stay unchanged; title, domain, alias, password and is_private are ignored.
title?stringTitle for the file (optional)
length <= 255OK
application/json- response
code?integerdata?message?stringcurl -X POST 'https://s.ee/api/v1/file/large-file/create' \ -H 'Authorization: string' \ -H 'Content-Type: application/json' \ -d '{ "file_name": "string", "file_size": 0}'{ "code": 0, "data": { "existing_file": { "created_at": 0, "delete": "string", "file_id": 0, "filename": "string", "hash": "string", "height": 0, "mime_type": "string", "page": "string", "path": "string", "size": 0, "storename": "string", "thumb_url": "string", "upload_status": 0, "url": "string", "width": 0 }, "expires_at": 0, "fast_upload": true, "file_size": 0, "id": 0, "upload_id": "string", "upload_url": "string" }, "message": "string"}Get Available Domains for File Sharing GET
Returns a list of all domains available for creating file sharing URLs with your account. Use these domain values when calling the File Upload endpoint.
TUS Upload Chunk PATCH
Uploads a chunk of a large file using the TUS 1.0 protocol. Use a TUS client library rather than calling this directly. The upload_id comes from the Create Large File Upload Session endpoint.