Upload File
This API allows you to upload a file and create a short link for it.
Upload a file using multipart/form-data. The file field is required, domain, custom_slug, and is_private are optional.
multipart/form-data- body
custom_slug?stringYour preferred custom slug (e.g., 'my-link'). If not provided, a random slug will be generated.
domain?stringThe domain to be used for the short link.
file*fileThe file to be uploaded (alias 'smfile')
binaryis_private?integerWhether this file should be private (0 = public, 1 = private).
001OK
application/json- response
code?integerResponse status code (200 indicates success)
data?File upload response
message?stringHuman-readable status message
curl -X POST 'https://s.ee/api/v1/file/upload' \ -H 'Authorization: string' \ -F 'file=string'{ "code": 0, "data": { "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 }, "message": "string"}Get Available Domains for Text Sharing GET
Returns a list of all domains available for creating text sharing URLs with your account. Use these domain values when calling the Create Text Sharing endpoint.
Replace File POST
This API replaces the content of an existing file with a new file. The short link and the file URL stay unchanged. It counts towards your upload quota. CDN caches are purged after the replacement, but browsers may keep serving a locally cached copy for a while. For files larger than 100MB, use the large file upload API with replace_file_id.