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 slug parameter to reference a template
- it doesn't require using a Private Key to authenticate the request (Public Key is enough)
get/v1/template-versions/latest
Request
- Base URLhttps://api.lunary.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
slugstring required
Slug of the template
Response
Latest version of the template
Example response
{
"metadata": {
"owner": "support",
"release_channel": "production",
"locale": "en"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.