Preview CSV file before import
Preview CSV file before final import.
Shows the first 5 rows and file metadata to help users:
- Verify correct file was uploaded
- Confirm header row detection
- Check delimiter parsing
- Review column names
- Validate data format
This is step 3 in the upload workflow (optional):
- Generate upload URL
- Upload file to cloud storage
- Preview file (this endpoint)
- Complete upload and process
Use Cases: - Verify file structure before import - Confirm CSV parsing settings - Preview data for validation
Header Parameters
Path Parameters
Response
Response Attributes
Column headers from the CSV file. If has_header=false, generated as column_1, column_2, etc.
Show child attributes
File metadata and statistics
Show child attributes
First 5 data rows from the CSV file for preview
Show child attributes
Response Attributes
Standard error detail structure.
This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.
Show child attributes
Response Attributes
Standard error detail structure.
This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.
Show child attributes
Response Attributes
Standard error detail structure.
This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.
Show child attributes
Response Attributes
Show child attributes
Response Attributes
Standard error detail structure.
This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.