CLIF provides four endpoints for managing files. All four require authentication viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/WyattBrashear/CLIF/llms.txt
Use this file to discover all available pages before exploring further.
user_id and pass_hash. File storage is bounded by your account’s allocation_limit — the server rejects uploads that would exceed it.
POST /upload_file
Upload a file to your storage allocation. This endpoint usesmultipart/form-data rather than JSON — all fields are sent as form parts alongside the file binary.
Request parameters
Your unique user identifier.
SHA-256 hex digest of your password.
The name to store the file under on the server.
The file binary, sent as a multipart file part.
Response fields
"success" when the file is stored, "fail" on any error."File Uploaded" on success. See error cases below for failure messages.Example
cURL
Success response
Error cases
Authentication failure
Authentication failure
Returned when
user_id or pass_hash is incorrect.Storage quota exceeded
Storage quota exceeded
Returned when your used storage is already at or above your allocation limit.
File too large for remaining allocation
File too large for remaining allocation
Returned when the file itself is larger than your remaining free space.
POST /list
Return a list of all filenames owned by the authenticated user.Request parameters
Your unique user identifier.
SHA-256 hex digest of your password.
Response fields
"success" when the request is authenticated.Array of filename entries. Each entry is a single-element array containing the filename string.
Example
Success response
POST /retrieve-file
Download a file from your storage. The server responds with the file as a binary attachment. Usecurl’s -o flag (or equivalent) to write the output to disk.
This is the only endpoint that returns a non-JSON response on success. The response body is the raw file data with
Content-Disposition: attachment.Request parameters
Your unique user identifier.
SHA-256 hex digest of your password.
The name of the file to retrieve, exactly as returned by
POST /list.Response
On success, the response body is the binary file content with appropriateContent-Disposition headers — not a JSON object.
On failure:
"fail""File path does not exist!" — returned with HTTP 404 when the filename is not found.Example
cURL
Error case
File not found (HTTP 404)
POST /delete-file
Permanently delete a file from your storage allocation. Storage used by the deleted file is returned to your available quota.Request parameters
Your unique user identifier.
SHA-256 hex digest of your password.
The name of the file to delete, exactly as returned by
POST /list.Response fields
"success" when the file is deleted, "fail" on any error."File Deleted" on success. See error cases below for failure messages.Example
Success response
Error cases
File not found
File not found
Returned when the filename does not exist in your storage.
Authentication failure
Authentication failure
Returned when
user_id or pass_hash is incorrect.