Get the latest version
Templates
Get the latest version
This is the most common endpoint you’ll use when working with prompt templates.
This route is used by the Lunary SDKs to fetch the latest version of a template before making an LLM call.
This route differs from all the next ones in that:
- it requires only the
slugparameter to reference a template - it doesn’t require using a Private Key to authenticate the request (Public Key is enough)
GET
Get the latest version
Authorizations
Use a project public API key via Authorization: Bearer <key>.
Query Parameters
Slug of the template