API

File Upload

API URL
Request Method
Content Type

Parameters

Example(curl)

curl -X POST https://api.urusai.cc/v1/upload \
-F "file=@example.png" \
-F "R18=0" \
-F "token="

Example Response (JSON)

{
"status": "success",
"message": "uploaded",
"data": {
"id": "shine",
"r18": "0",
"filename": "urusai.png",
"url_preview": "https://i.urusai.cc/shine",
"url_direct": "https://i.urusai.cc/shine.png",
"url_delete": "https://urusai.cc/del/abcd1234",
"mime": "image/png"}
}

Create Album

API URL
Request Method
Content Type

Parameters

Example(curl)

curl -X POST https://api.urusai.cc/v1/album \
-F "fileid=shine" \
-F "fileid=YABAI" \
-F "token="

Example Response (JSON)

{
"status": "success",
"message": "uploaded",
"url": "https://i.urusai.cc/a/shine",
"delete": "https://urusai.cc/a/del/abcd1234"
"fileid": "shine, YABAI",
}