---
title: "Preview a CSV / Excel import into a list"
method: POST
path: "/workspace/tables/{id}/import"
tags: ["workspace"]
---

# Preview a CSV / Excel import into a list

`POST /workspace/tables/{id}/import`

## Request

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

Parses the upload, proposes or applies a column mapping, and returns what WOULD happen: rows to add, rows it could not read and why, columns and dropdown choices that would be created, and the row quota after. Writes nothing. multipart/form-data with `file` and an optional `mapping` JSON field. CONTRIBUTE-gated on the list; JWT only (the workspace router denies PATs). 415 for a format that is not a spreadsheet, with the project importer named as the place to go instead.

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Response `200`

Preview: sheet shape, mapping, plan and quota

## 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)
