> For the complete documentation index, see [llms.txt](/llms.txt).
> A full single-fetch corpus is available at [llms-full.txt](/llms-full.txt).
---
title: "Import from CSV"
description: "Bulk-import items from a CSV file, mapping columns to input/expected-output fields."
method: "POST"
endpoint: "/api/v1/projects/:projectId/datasets/:id/import/csv"
order: 12
group: "Import"
last_verified: 2026-07-27
---

<ApiEndpoint method="POST" endpoint="/api/v1/projects/:projectId/datasets/:id/import/csv" description="Bulk-import items from a CSV file, mapping columns to input/expected-output fields.">
  <section>
    #### Body parameters
    <ApiAttribute name="data" type="string" description="The raw CSV content." required={true} />
    <ApiAttribute name="mapping" type="object" description="Column mapping, e.g. input to prompt_column and expected_output to answer_column." required={true} />
    <ApiAttribute name="has_header" type="boolean" description="Whether the first row is a header. Defaults to true." required={false} />
    <ApiAttribute name="delimiter" type="string" description="The column delimiter. Defaults to a comma." required={false} />
  </section>
</ApiEndpoint>
