Skip to Content
S.EE Docs
API Reference

Upload File

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

POST
/api/v1/file/upload

Header Parameters

Authorization*string

API key

Request Body

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

multipart/form-data
  1. body
custom_slug?string

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

domain?string

The domain to be used for the short link.

file*file

The file to be uploaded (alias 'smfile')

Formatbinary
is_private?integer

Whether this file should be private (0 = public, 1 = private).

Default0
Value in01

Response Body

OK

application/json
  1. response
code?integer

Response status code (200 indicates success)

data?

File upload response

message?string

Human-readable status message

Example Request
curl -X POST 'https://s.ee/api/v1/file/upload' \  -H 'Authorization: string' \  -F 'file=string'
Example Response200
{  "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"}
⌂