---
title: "Insert data into an uploaded table"
method: POST
path: "/v1/uploads/{namespace}/{table_name}/insert"
---

# Insert data into an uploaded table

`POST /v1/uploads/{namespace}/{table_name}/insert`

Inserts data into an existing table. Accepts CSV (text/csv) or
NDJSON (application/x-ndjson) content types.

## Path parameters

- `namespace` string, required
- `table_name` string, required

## Query parameters

- `api_key` string

## Headers

- `X-Dune-Api-Key` string, required
- `Content-Type` string, required

## Response `200`

OK

- ModelsTableInsertResponse
  - `bytes_written` integer
  - `name` string
  - `rows_written` integer

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/dune/apis/duneapi.md) · [All operations](https://skmtc.dev/dune/apis/duneapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dune/duneapi/revisions/f3a7a865f95b/schema)
