List files
GET /v1/files| Query | Type | Description |
|---|---|---|
keyword |
string | Optional. Only files whose name contains this text |
pageSize |
number | Optional. Files per page. Defaults to 20 |
pageNumber |
number | Optional. The page to return, from 1. Defaults to 1 |
curl "https://api.uploadx.in/v1/files?keyword=invoice&pageSize=2" \
-H "Authorization: Bearer $UPLOADX_API_KEY"Response
{
"files": [
{
"id": "7a1d3e5f-9b2c-4d6e-8f0a-1c3e5a7b9d20",
"originalName": "invoice-2026.pdf",
"mimeType": "application/pdf",
"size": 1258291,
"formattedSize": "1.2 MB",
"ext": "pdf",
"uploadVia": "API",
"createdAt": "2026-10-17T16:40:02.000Z"
},
{
"id": "4c6e8a0b-2d4f-4a6c-8e0b-3d5f7a9c1e30",
"originalName": "invoice-2025.pdf",
"mimeType": "application/pdf",
"size": 1003520,
"formattedSize": "980 KB",
"ext": "pdf",
"uploadVia": "WEB",
"createdAt": "2026-10-02T11:05:37.000Z"
}
],
"pagination": { "pageSize": 2, "pageNumber": 1, "totalCount": 3, "totalPages": 2, "skip": 0 }
}Each item is a file record plus formattedSize, the size ready to show to a person.
pagination field |
Description |
|---|---|
pageSize |
Files per page, as requested |
pageNumber |
The page returned |
totalCount |
Files matching the filter, across all pages |
totalPages |
Pages at this pageSize. At least 1 |
skip |
Files before this page |
To read everything, request pages from 1 until pageNumber equals totalPages.
Storage usage
GET /v1/files/storage{ "quota": 10737418240, "usage": 2576980378, "remaining": 8160437862 }All three are in bytes: your plan’s storage, what your files take up, and what is left.