S.EE Docs
API Reference

Upload File

This API allows you to upload a file and create a short link for it.

Header Parameters

Authorization*string

API key

Request Body

multipart/form-data

Upload a file using multipart/form-data. The file field is required, domain and custom_slug are optional.

file*file

The file to be uploaded (alias 'smfile')

Formatbinary
domain?string

The domain to be used for the short link

custom_slug?string

Your preferred custom slug (e.g., 'my-link'). If not provided, a random slug will be generated.

Response Body

application/json

curl -X POST "https://s.ee/api/v1/file/upload" \  -H "Authorization: string" \  -F file="string"
{
  "code": 0,
  "data": {
    "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"
}