Skip to main content
GET
/
templates
/
{slug}
Get Template
curl --request GET \
  --url https://app.lettr.com/api/templates/{slug} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Template retrieved successfully.",
  "data": {
    "id": 1,
    "name": "Welcome Email",
    "slug": "welcome-email",
    "project_id": 5,
    "folder_id": 10,
    "active_version": 2,
    "versions_count": 3,
    "created_at": "2025-01-15T10:00:00+00:00",
    "updated_at": "2025-01-20T14:30:00+00:00"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.lettr.com/llms.txt

Use this file to discover all available pages before exploring further.

Retrieves the full details of a template by its slug, including the active version’s HTML or JSON content, version count, and merge tag information. Use the project_id query parameter if you have templates with the same slug across different projects.

Authorizations

Authorization
string
header
required

API key for authentication

Path Parameters

slug
string
required

The template slug (URL-friendly identifier)

Example:

"welcome-email"

Query Parameters

project_id
integer

Project ID to retrieve the template from. If not provided, uses the team's default project.

Required range: x >= 1

Response

Template retrieved successfully

Response containing a single template with details

message
string
required

Human-readable response message

Example:

"Template retrieved successfully."

data
object
required

Detailed view of an email template