Skip to main content
POST
/
Dataset
Create a dataset
curl --request POST \
  --url https://api.starleads.co/Dataset \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "name": "My Knowledge Base",
  "description": "Customer support documents",
  "chunkMethod": "naive",
  "parserConfig": {
    "chunkTokenNum": 256,
    "layoutRecognize": true
  }
}
'
{
  "id": "ds_abc123",
  "name": "My Knowledge Base",
  "description": "Customer support documents",
  "chunkMethod": "naive",
  "parserConfig": {
    "chunkTokenNum": 256,
    "layoutRecognize": true
  },
  "createdAt": "2026-04-15T10:30:00Z"
}

Authorizations

X-Api-Key
string
header
required

Headers

X-Api-Key
string
required

Api key to pass as a X-Api-Key request header.

Body

application/json

Request payload to create a new dataset

name
string
required

Dataset name

Maximum string length: 255
description
string | null

Dataset description

chunkMethod
string | null

Chunking method identifier

parserConfig
object

Configuration options for dataset document parsing

Response

Dataset created successfully

Public representation of a dataset

id
string

Dataset identifier

name
string

Dataset name

description
string | null

Dataset description

chunkMethod
string | null

Chunking method identifier

parserConfig
object

Configuration options for dataset document parsing

createdAt
string<date-time>

Creation timestamp