Getting Started
Audit Logs
Datasets
- GETList datasets
- POSTCreate a new dataset
- GETGet dataset by ID or slug
- DELDelete a dataset
- PATCHUpdate a dataset
- POSTCreate a new prompt
- GETGet prompt by ID
- DELDelete a prompt
- PATCHUpdate a prompt
- GETGet prompt variation by ID
- DELDelete a prompt variation
- PATCHUpdate a prompt variation
- POSTCreate a new prompt variation
Evals
Runs
Templates
Datasets
Create a new dataset
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200 - application/json
Created dataset
The response is of type object
.
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>"
}