Files
List user's files with cursor-based pagination
Errors
Returns an error if database operations fail.
get/api/files
Query parameters
offsetstring uuid nullable
UUID offset for cursor-based files pagination
limitinteger nullable
Maximum number of files to return (default: 50, max: 100)
Response
User files retrieved with pagination support
Example response
[
{
"createdAt": "2023-01-01T00:00:00Z",
"fileHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"fileSize": 1048576,
"filename": "document.pdf",
"id": "b8c9d0e1-2345-6789-b234-678901234567",
"metadata": {
"description": "Important document"
},
"mimeType": "application/pdf",
"originalFilename": "My Important Document.pdf",
"status": "uploaded",
"updatedAt": "2023-01-01T00:00:00Z",
"userId": "c9d0e1f2-3456-789a-c345-789012345678"
}
]