Integration examples

Copy-ready requests for cURL, JavaScript, Python, PowerShell, and ShareX.

Language clients

Every client that can send multipart form data can use the same endpoint and fields.

cURL
curl https://mbr.pub/api/files -F "[email protected]" -F "maxDownloads=10"

ShareX

Save this configuration as mbr.pub.sxcu and import it into ShareX.

ShareX JSON
1{
2  "Name": "mbr.pub",
3  "RequestMethod": "POST",
4  "RequestURL": "https://mbr.pub/api/files",
5  "Body": "MultipartFormData",
6  "FileFormName": "file",
7  "URL": "https://mbr.pub{json:fileUrl}",
8  "DeletionURL": "https://mbr.pub/api/files/{json:fileId}"
9}