curl --request POST \
--url https://api.lunary.ai/v1/datasets/prompts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"datasetId": "<string>",
"messages": "<string>",
"idealOutput": "<string>",
"withPromptVariation": true
}'
{
"id": "<string>",
"datasetId": "<string>",
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}
curl --request POST \
--url https://api.lunary.ai/v1/datasets/prompts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"datasetId": "<string>",
"messages": "<string>",
"idealOutput": "<string>",
"withPromptVariation": true
}'
{
"id": "<string>",
"datasetId": "<string>",
"messages": [
{
"role": "<string>",
"content": "<string>"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Created prompt
The response is of type object
.