Skip to main content

Validate CSV import (no write)

Parse and validate CSV shape without writing any rows. Use this as preflight before imports.

POST/api/tables/{table_id}/csv-validate
HTTP referenceScope tables:writeUpdated March 5, 2026

This page documents the canonical HTTP contract for this endpoint.

Path parameters

  • table_idrequired

    string

    Target table ID.

Body parameters

  • filerequired

    multipart file

    CSV file upload.

  • null_policy · optional

    string

    common (default) or preserve; use the same policy when validating and importing.

  • sample_size · optional

    integer (clamped to 0-20)

    Sample row count in response. Default 5; values are clamped to 0-20.

Errors

StatusMeaning
400CSV parsing failed; response detail includes the parser error.
422Missing multipart file, non-integer sample_size, or invalid null_policy value.
401Invalid API key or missing auth.
403Missing tables:write scope or table access denied.

Docs