List files
Returns a paginated list of files for the current organization. Labs see all files; clinics see only their own. Supports filtering by patient, clinic, file type, and unassigned status.
Returns a paginated list of files for the current organization. Labs see all files; clinics see only their own. Supports filtering by patient, clinic, file type, and unassigned status.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Query Parameters
Page number
1 <= value <= 100001Items per page
1 <= value <= 10020Filter by patient ID
Filter by clinic ID (lab only)
Filter by file type: scan, photo, prescription, xray, other
Show only files not attached to an order
falseSearch by file name
Response Body
application/json
curl -X GET "https://example.com/files"{ "data": [ { "id": "string", "partnershipId": "string", "uploadedByOrganizationId": "string", "name": "string", "type": "string", "mimeType": "string", "size": 0, "url": "string", "thumbnailUrl": "string", "patientId": "string", "patientName": "string", "orderId": "string", "orderDisplayId": "string", "orderStatus": "string", "uploadedBy": "string", "createdAt": "string" } ], "pagination": { "page": 0, "limit": 0, "total": 0, "totalPages": 0 }}Finalize a direct file upload POST
Confirms that a previously presigned upload completed successfully, validates the stored object metadata and size, and then creates the file DB record.
Get presigned upload URL POST
Generates a presigned PUT URL so the client can upload directly to storage. No file DB row is created until the client calls finalize after a successful upload. Optionally returns a second signed PUT URL for a thumbnail. Valid for 5 minutes.