Base URL https://yukiapi.site
POST

Upload File

/upload

Upload a file up to 2GB. Returns a permanent shareable URL. Supports password protection, custom slugs, and self-destruct.

30 requests/minute
ParameterTypeDescription
file requiredFileThe file to upload (max 2GB)
password optionalstringPassword to protect the file. Users must enter it to download.
max_downloads optionalintAuto-delete after N downloads. 0 = never delete (default). 1 = burn after reading.
custom_slug optionalstringCustom URL slug. Only letters, numbers, dashes, underscores. Example: my-video โ†’ /file/my-video
userhash optionalstringYour API hash to link upload to your account (appears in Dashboard).
cURL
# Simple anonymous upload
curl -X POST -F "file=@photo.jpg" https://yukiapi.site/upload

# With password + self-destruct after 1 download
curl -X POST \
  -F "file=@secret.pdf" \
  -F "password=mypass123" \
  -F "max_downloads=1" \
  https://yukiapi.site/upload

# With custom slug + linked to account
curl -X POST \
  -F "file=@video.mp4" \
  -F "custom_slug=my-cool-video" \
  -F "userhash=YOUR_API_HASH" \
  https://yukiapi.site/upload
Python
# pip install requests
import requests

resp = requests.post("https://yukiapi.site/upload", files={
    "file": open("photo.jpg", "rb")
}, data={
    "password": "optional_pass",
    "max_downloads": 5,
    "custom_slug": "my-photo"
})
print(resp.json()["url"])
Response
JSON
{
  "success": true,
  "uid": "my-cool-video",
  "url": "https://yukiapi.site/file/my-cool-video",
  "filename": "video.mp4"
}
POST

Upload from URL

/upload-url

Download a file from a remote URL and host it on Yukisbox. The server fetches the file โ€” no need to download it yourself first.

30 requests/minute
ParameterTypeDescription
url requiredstringDirect URL to the file to download and host.
password optionalstringPassword protect the file.
max_downloads optionalintAuto-delete after N downloads.
custom_slug optionalstringCustom URL slug.
userhash optionalstringLink to your account.
cURL
curl -X POST \
  -F "url=https://example.com/file.zip" \
  -F "custom_slug=my-file" \
  https://yukiapi.site/upload-url
POST

Create Paste / Upload Text

/upload-text

Create and host code snippets, logs, configuration files, notes, or plain text without creating a local file. Returns shareable URL and direct raw URL (like Pastebin/Hastebin).

30 requests/minute
ParameterTypeDescription
text requiredstringThe raw text content or code to host (max 10MB).
filename optionalstringCustom filename (e.g. server.py, log.txt).
extension optionalstringFile extension / syntax (e.g. .py, .json, .txt, .sh, .md).
password optionalstringPassword protect the paste.
max_downloads optionalintAuto-delete after N views/downloads (1 = burn after reading).
custom_slug optionalstringCustom URL slug. Example: my-script โ†’ /file/my-script & /raw/my-script
cURL
# Fast CLI pipe into Yukisbox Pastebin
cat my_script.py | curl -X POST -F "text=<-" -F "filename=my_script.py" https://yukiapi.site/upload-text

# With custom slug and password
curl -X POST \
  -F "text=SECRET_TOKEN=xyz12345" \
  -F "filename=config.env" \
  -F "custom_slug=my-config" \
  -F "password=secret" \
  https://yukiapi.site/upload-text
Python
import requests

code = """print("Hello from Yukisbox!")"""
resp = requests.post("https://yukiapi.site/upload-text", data={
    "text": code,
    "filename": "hello.py",
    "custom_slug": "hello-py"
})
data = resp.json()
print("Paste URL:", data["url"])
print("Raw URL:", data["raw_url"])
Response
JSON
{
  "success": true,
  "uid": "hello-py",
  "url": "https://yukiapi.site/file/hello-py",
  "raw_url": "https://yukiapi.site/raw/hello-py",
  "filename": "hello.py",
  "size": 31
}
GET

File Info

/api/file/{uid}/info

Get metadata about any file by its UID โ€” size, filename, download count, and protection status.

60 requests/minute
Response
JSON
{
  "uid": "abc123xy",
  "filename": "photo.jpg",
  "size": 2048576,
  "mimetype": "image/jpeg",
  "upload_time": "2026-06-25T04:22:15.123Z",
  "download_count": 5,
  "max_downloads": 0,
  "is_password_protected": false
}
GET

Server Stats

/api/server/stats

Get global server health, uptime, and total file count.

60 requests/minute
JSON
{
  "status": "online",
  "uptime": "99.99%",
  "total_files": 12847
}
PUT

Edit File

/api/file/{uid}/edit

Update a file's password, filename, or download limit. Requires your API hash. Send empty password to remove protection.

30 requests/minute ยท Auth required
ParameterTypeDescription
userhash requiredstringYour API hash
filename optionalstringNew filename
password optionalstringNew password (empty = remove)
max_downloads optionalintNew download limit (0 = unlimited)
cURL
curl -X PUT \
  -d "userhash=YOUR_API_HASH&password=newpass&max_downloads=10" \
  https://yukiapi.site/api/file/abc123xy/edit
DELETE

Delete File

/api/file/{uid}

Permanently delete a file from your account.

30 requests/minute ยท Auth required
cURL
curl -X DELETE "https://yukiapi.site/api/file/abc123xy?userhash=YOUR_API_HASH"
POST

Clone File

/api/file/{uid}/clone

Clone any file to your account without re-uploading. Creates a new permanent URL instantly.

10 requests/minute ยท Auth required
cURL
curl -X POST "https://yukiapi.site/api/file/abc123xy/clone?userhash=YOUR_API_HASH"
Response
JSON
{
  "success": true,
  "new_uid": "xyz987ba",
  "url": "https://yukiapi.site/file/xyz987ba"
}
DELETE

Nuke All Files

/api/user/files/all

โš ๏ธ Permanently delete ALL files from your account. This action cannot be undone.

5 requests/minute ยท Auth required
cURL
curl -X DELETE "https://yukiapi.site/api/user/files/all?userhash=YOUR_API_HASH"