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": [
          "<any>"
        ],
        "extra": {},
        "testValues": {},
        "isDraft": true,
        "notes": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "version": 123
      }
    ]
  }
]

Response

200 - application/json
Successful response
id
string
name
string
slug
string
mode
enum<string>
Available options:
text,
openai
createdAt
string
group
string
projectId
string
versions
object[]