Upload File
This API allows you to upload a file and create a short link for it.
Header Parameters
API key
Request Body
multipart/form-data
Upload a file using multipart/form-data. The file field is required, domain, custom_slug, and is_private are optional.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
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,
"page": "string",
"path": "string",
"size": 0,
"storename": "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.
Get File Upload History GET
Returns a paginated list of uploaded files for the authenticated user. This API is compatible with sm.ms upload_history endpoint and returns 30 files per page sorted by creation time in descending order.