cURL
curl --request POST \ --url https://nulldrop.xyz/api/v2/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form isPublic=true \ --form file=@example-file
{ "success": true, "data": { "id": "<string>", "filename": "<string>", "size": 123, "mimeType": "<string>", "downloadUrl": "<string>", "shareUrl": "<string>", "isPublic": true, "uploadedAt": "2023-11-07T05:31:56Z" }, "_perf": 123 }
Upload a single file to Null Drop with optional visibility control
API key authentication (format: nd_xxxxx)
File to upload
File visibility - true for public, false for private
true
false
File uploaded successfully
Show child attributes
Request duration in milliseconds