---
title: "Preview creating a list from a CSV / Excel file"
method: POST
path: "/workspace/tables/import/preview"
tags: ["workspace"]
---

# Preview creating a list from a CSV / Excel file

`POST /workspace/tables/import/preview`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/workspace/tables/import/preview`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Same preview as the into-an-existing-list route, with no columns to match against, so every header becomes a new column whose type is inferred from the values. Writes nothing. multipart/form-data with `file`, exactly one of `projectId` / `proposalId` / `scope=org`, and an optional `mapping` JSON field. Also returns `suggestedName`, taken from the file name. Gated like creating a list: membership of the scope plus the content-write permission; JWT only (the workspace router denies PATs).

## Headers

- `X-Organization-Id` string, required

## Response `200`

Preview: sheet shape, mapping, plan, quota and a suggested list name

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `403`: Forbidden - insufficient role

---

[API](https://skmtc.dev/onplana/apis/onplana-api.md) · [All operations](https://skmtc.dev/onplana/apis/onplana-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onplana/apis/onplana-api/revisions/c3d6c89e9dc8?raw)
