What it does: The API lets another program upload files and get back a temporary share link.
Where to send it: Send a POST request to /?api=1 on this site.
How to attach files: Use multipart form data. The file field name must be files[]. Use that same name for every file you attach.
When it works: The response is plain text and contains only the new share link.
When it fails: The response is JSON, for example {"error":"No files were uploaded."}.
curl -F "files[]=@example.pdf" "https://your-host/?api=1"Uploading more than one file creates one ZIP file and returns one link.