Skip to main content

GET /templates

Returns all templates for the authenticated user, sorted by most recently updated.

Authentication

JWT Bearer token (dashboard auth)

Response

{
  "success": true,
  "data": {
    "templates": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "name": "Welcome Email",
        "subject": "Welcome to {{company_name}}!",
        "html_content": "<h1>Welcome {{name}}!</h1>",
        "text_content": null,
        "variables": ["company_name", "name"],
        "created_at": "2026-03-07T12:00:00Z",
        "updated_at": "2026-03-07T12:00:00Z"
      }
    ]
  }
}