Skip to main content
POST
Preview CSV file before import

Authorizations

X-API-Key
string
header
required

API key authentication. Include your API key in the X-API-Key header as: X-API-Key YOUR_API_KEY

Example:

Authorization
string
header
required

JWT Bearer token authentication. Include your access token in the Authorization header as: Bearer YOUR_ACCESS_TOKEN

Example:

Path Parameters

db_id
string
required

Body

application/json

The body is of type Request · object.

Response

CSV preview generated successfully

Response containing CSV file preview.

Returned by POST /database/{db_id}/upload/preview endpoint. Shows first 5 rows and file metadata before final upload.

headers
string[]
required

Column headers from the CSV file. If has_header=false, generated as column_1, column_2, etc.

Example:
metadata
CSVMetadata · object
required

File metadata and statistics

preview_rows
string[][]
required

First 5 data rows from the CSV file for preview

Example: