GET
/
v1
/
template-versions
/
latest
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

200
application/json

Latest version of the template

The response is of type object.