Base URL:
https://temp-files-lake.vercel.app
You can access the base URL in your browser to interact with the web interface.
This documentation explains how to use the entire API via cURL, with examples for Linux/MacOS and Windows (PowerShell).
Endpoint: POST /api/files
Uploads files via multipart/form-data.
password— password needed for all future operationsfiles— one or more files
curl -X POST \
-F "password=mypassword" \
-F "files=@/path/file1.png" \
-F "files=@/path/file2.pdf" \
https://temp-files-lake.vercel.app/api/files
curl -X POST `
-F "password=mypassword" `
-F "files=@C:/path/file1.png" `
-F "files=@C:/path/file2.pdf" `
https://temp-files-lake.vercel.app/api/files
Endpoint: POST /api/files/get-files
Returns metadata about files in the group (does not download files).
{
"groupId": "<id returned on upload>",
"password": "<password used on upload>"
}curl -X POST \
-H "Content-Type: application/json" \
-d '{"groupId":"YOUR_GROUP_ID","password":"mypassword"}' \
https://temp-files-lake.vercel.app/api/files/get-files
curl -X POST `
-H "Content-Type: application/json" `
-d '{"groupId":"YOUR_GROUP_ID","password":"mypassword"}' `
https://temp-files-lake.vercel.app/api/files/get-files
Endpoint: POST /api/file
Returns the binary file.
{
"groupId": "<id>",
"fileId": "<file id>",
"password": "<password>"
}curl -X POST \
-H "Content-Type: application/json" \
-d '{"groupId":"YOUR_GROUP_ID","fileId":"YOUR_FILE_ID","password":"mypassword"}' \
https://temp-files-lake.vercel.app/api/file \
--output downloaded_file.ext
curl -X POST `
-H "Content-Type: application/json" `
-d '{"groupId":"YOUR_GROUP_ID","fileId":"YOUR_FILE_ID","password":"mypassword"}' `
https://temp-files-lake.vercel.app/api/file `
--output downloaded_file.ext
Endpoint: DELETE /api/file
{
"groupId": "<id>",
"fileId": "<file id>",
"password": "<password>"
}curl -X DELETE \
-H "Content-Type: application/json" \
-d '{"groupId":"YOUR_GROUP_ID","fileId":"YOUR_FILE_ID","password":"mypassword"}' \
https://temp-files-lake.vercel.app/api/file
curl -X DELETE `
-H "Content-Type: application/json" `
-d '{"groupId":"YOUR_GROUP_ID","fileId":"YOUR_FILE_ID","password":"mypassword"}' `
https://temp-files-lake.vercel.app/api/file
Endpoint: DELETE /api/files
{
"groupId": "<id>",
"password": "<password>"
}curl -X DELETE \
-H "Content-Type: application/json" \
-d '{"groupId":"YOUR_GROUP_ID","password":"mypassword"}' \
https://temp-files-lake.vercel.app/api/files
curl -X DELETE `
-H "Content-Type: application/json" `
-d '{"groupId":"YOUR_GROUP_ID","password":"mypassword"}' `
https://temp-files-lake.vercel.app/api/files
| Action | Method | Route |
|---|---|---|
| Upload files | POST | /api/files |
| List files | POST | /api/files/get-files |
| Download file | POST | /api/file |
| Delete file | DELETE | /api/file |
| Delete group | DELETE | /api/files |