---
title: "Create a new dataset"
method: POST
path: "/v1/datasets"
tags: ["Datasets"]
---

# Create a new dataset

`POST /v1/datasets`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/datasets`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Create a new dataset.

## Request body

- DatasetCreate
  - `integrationId` string, required
  - `name` string, required
  - `teamIds` string[]: The team IDs that this dataset is associated with.

## Response `200`

The created dataset.

- DatasetRead
  - `id` string, required
  - `integrationId` string, required
  - `name` string, required
  - `organizationId` string, required
  - `tables` object: Per-table configuration overrides, keyed by table key (e.g. logs_raw). Absent entries use system defaults.
  - `teamIds` string[]: The team IDs that this dataset is associated with.

---

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