{"openapi":"3.1.0","info":{"title":"Drop Upload API","version":"1.0.0","description":"Raw binary upload API. Read /llms.txt first. Bearer key is a path parameter, not an Authorization header. Use read + write for usable links. Returned file URLs are relative and expose key permissions."},"servers":[{"url":"https://drop.957633.xyz"}],"paths":{"/{key}/up":{"post":{"operationId":"uploadFile","summary":"Upload one nonempty file as raw bytes","parameters":[{"name":"key","in":"path","required":true,"description":"User-provided bearer access key. Upload and usable links require read + write.","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{12,128}$"}},{"name":"name","in":"query","description":"Original filename, URL encoded","schema":{"type":"string","default":"file.bin"}}],"description":"Send Content-Length; chunked transfer and multipart are unsupported. Check current limits in /llms.txt. Repeating uploads creates new files.","requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"201":{"description":"File stored","content":{"application/json":{"schema":{"type":"object","required":["ok","file"],"properties":{"ok":{"const":true},"file":{"$ref":"#/components/schemas/File"}}}}}},"400":{"description":"Invalid length or incomplete upload"},"403":{"description":"Missing write permission"},"404":{"description":"Invalid, revoked or expired key"},"413":{"description":"Empty file, missing length or file too large"},"507":{"description":"Shared storage full"}}}},"/{key}/api/files":{"get":{"operationId":"listFiles","summary":"List newest 200 shared files and storage; requires read permission","parameters":[{"name":"key","in":"path","required":true,"description":"User-provided bearer access key. Upload and usable links require read + write.","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{12,128}$"}}],"responses":{"200":{"description":"Files and quota in bytes","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":true},"files":{"type":"array","items":{"$ref":"#/components/schemas/File"}},"storage":{"type":"object","properties":{"used":{"type":"integer"},"limit":{"type":["integer","null"]}}}}}}}},"403":{"description":"Missing read permission"},"404":{"description":"Invalid key"}}}},"/{key}/f/{name}":{"get":{"operationId":"getFile","summary":"Read a file via its returned URL","parameters":[{"name":"key","in":"path","required":true,"description":"User-provided bearer access key. Upload and usable links require read + write.","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{12,128}$"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"},"description":"Server-generated filename from file response"},{"name":"download","in":"query","schema":{"type":"string","enum":["1"]},"description":"Force attachment download"}],"responses":{"200":{"description":"File bytes for GET; headers only for HEAD. Requires read permission."},"403":{"description":"Missing read permission"},"404":{"description":"Invalid key or file not found"}}},"head":{"operationId":"headFile","summary":"Check a file without downloading","parameters":[{"name":"key","in":"path","required":true,"description":"User-provided bearer access key. Upload and usable links require read + write.","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{12,128}$"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"},"description":"Server-generated filename from file response"},{"name":"download","in":"query","schema":{"type":"string","enum":["1"]},"description":"Force attachment download"}],"responses":{"200":{"description":"File bytes for GET; headers only for HEAD. Requires read permission."},"403":{"description":"Missing read permission"},"404":{"description":"Invalid key or file not found"}}}}},"components":{"schemas":{"File":{"type":"object","required":["name","size","mtime","preview","url","download_url"],"properties":{"name":{"type":"string"},"size":{"type":"integer"},"mtime":{"type":"integer"},"preview":{"type":"boolean"},"url":{"type":"string","description":"Relative URL; resolve against the server origin. Contains the bearer key."},"download_url":{"type":"string","description":"Relative attachment download URL; resolve against the server origin."},"web_preview_url":{"type":"string","description":"Optional expiring signed HTML preview URL."},"local_path":{"type":"string","description":"Only present for local_path permission."}}}}}}