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
Templates
List all templates
List all the prompt templates in your project, along with their versions. Useful for usecases where you might want to pre-load all the templates in your application.
GET
/
v1
/
templates
curl --request GET \
--url https://api.lunary.ai/v1/templates
[
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"mode": "text",
"createdAt": "2023-11-07T05:31:56Z",
"group": "<string>",
"projectId": "<string>",
"versions": [
{
"id": "<string>",
"templateId": "<string>",
"content": [
{
"role": "<string>",
"content": "<string>"
}
],
"extra": {},
"testValues": {},
"isDraft": true,
"notes": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"version": 123
}
]
}
]
Response
200 - application/json
Successful response
The response is of type object[]
.
curl --request GET \
--url https://api.lunary.ai/v1/templates
[
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"mode": "text",
"createdAt": "2023-11-07T05:31:56Z",
"group": "<string>",
"projectId": "<string>",
"versions": [
{
"id": "<string>",
"templateId": "<string>",
"content": [
{
"role": "<string>",
"content": "<string>"
}
],
"extra": {},
"testValues": {},
"isDraft": true,
"notes": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"version": 123
}
]
}
]