Back to APIs
UploadThing
UploadThing provides type-safe file upload infrastructure designed for Next.js and other full-stack TypeScript frameworks.
Base URL
https://uploadthing.com/apifile uploadTypeScriptNext.jstype-safeS3
Endpoints
POST
/listFilesList all uploaded files in your UploadThing app.
const response = await fetch("https://uploadthing.com/api/listFiles", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-uploadthing-api-key": "YOUR_API_KEY"
},
body: JSON.stringify({})
});
const data = await response.json();
console.log(data);Response Preview
{
"files": [{
"id": "abc123",
"key": "abc123-photo.jpg",
"name": "photo.jpg",
"status": "Uploaded",
"size": 245678,
"url": "https://utfs.io/f/abc123-photo.jpg"
}]
}