Templates
Get Template
Retrieve a single email template by its slug. If project_id is not provided, the template will be looked up in the team's default project.
get/templates/{slug}
Request
- Base URL: https://app.lettr.com/api
- URL: https://app.lettr.com/api/templates/{slug}
- Auth: HTTP bearer
Path parameters
slugstring required
Example:welcome-email
The template slug (URL-friendly identifier)
Query parameters
project_idinteger
Project ID to retrieve the template from. If not provided, uses the team's default project.
Response
Template retrieved successfully
Example response
{
"message": "Template retrieved successfully.",
"data": {
"id": 1,
"name": "Welcome Email",
"slug": "welcome-email",
"project_id": 5,
"folder_id": 10,
"purpose": "campaign",
"preparation_status": "ready",
"active_version": 2,
"versions_count": 3,
"html": "<html><body><h1>Welcome!</h1></body></html>",
"json": "{\"tagName\":\"mj-body\",\"children\":[...]}",
"created_at": "2025-01-15T10:00:00+00:00",
"updated_at": "2025-01-20T14:30:00+00:00"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.