GET
/
v1
/
template-versions
/
latest
Get the latest version
curl --request GET \
  --url https://api.lunary.ai/v1/template-versions/latest
{
  "id": "<string>",
  "templateId": "<string>",
  "content": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ],
  "extra": {},
  "testValues": {},
  "isDraft": true,
  "notes": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "version": 123
}

Query Parameters

slug
string
required

Slug of the template

Response

Latest version of the template

id
string
templateId
string
content
object[]
extra
object
testValues
object
isDraft
boolean
notes
string
createdAt
string<date-time>
version
number