POST
/
v1
/
datasets
curl --request POST \
  --url https://api.lunary.ai/v1/datasets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "slug": "<string>",
  "format": "text",
  "prompt": "<string>",
  "withPromptVariation": true
}'
{
  "id": "<string>",
  "slug": "<string>",
  "format": "text",
  "ownerId": "<string>",
  "projectId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
slug
string
required
format
enum<string>
required
Available options:
text
prompt
string | null
withPromptVariation
boolean
default:true

Response

200 - application/json
Created dataset
id
string
slug
string
format
enum<string>
Available options:
text,
chat
ownerId
string
projectId
string