Skip to main content
GET
/
templates
/
{templateId}
Get a template
curl --request GET \
  --url https://api.example.com/templates/{templateId}
{
  "id": "<string>",
  "name": "<string>",
  "description": {},
  "isPublished": true,
  "latestVersion": {
    "version": 123,
    "variables": [
      "<string>"
    ]
  }
}
templateId
string
required
The ID of the template (e.g. tpl_01j8zxyz).
id
string
Unique template ID.
name
string
Display name of the template.
description
string | null
Optional description.
isPublished
boolean
Only published templates can be used for generation.
latestVersion
object | null
The most recent saved version.