---
title: "Create an empty uploaded table with a defined schema"
method: POST
path: "/v1/uploads"
---

# Create an empty uploaded table with a defined schema

`POST /v1/uploads`

Creates an empty uploaded table that can be inserted into with the /insert endpoint.
Each successful table creation consumes 10 credits.

## Query parameters

- `api_key` string

## Headers

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

## Response `200`

OK

- ModelsTableCreateResponse
  - `already_existed` boolean
  - `example_query` string
  - `full_name` string
  - `message` string
  - `namespace` string
  - `table_name` string

## Other responses

- `201` — Created
- `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)
