Get Template

Retrieve a single template by ID.
GET
/v2/template
Query Parameters
id uuid

Required

The template ID to retrieve.

cURl example
curl -X GET 'https://lunarsend.com/api/v2/template?id=659dc4d5-d23f-43bb-b1ba-ef26ef71a85b' \
  -H 'x-api-key: $LUNARSEND_API_KEY' \
  -H 'Accept: application/json'
Response
[
  {
    "status": "success",
    "id": "659dc4d5-d23f-43bb-b1ba-ef26ef71a85b",
    "data": {
      "id": "659dc4d5-d23f-43bb-b1ba-ef26ef71a85b",
      "created_at": "2025-05-24T22:15:06.521672+00:00",
      "user_id": "86f463d7-3101-4947-8b71-ab03abc319e2",
      "owner": "Ryan",
      "subject": "Cold outreach Example",
      "title": "Have two minutes?",
      "content": {
        "type": "doc",
        "content": []
      },
      "last_activity": "2025-07-28T19:29:11.701+00:00"
    }
  }
]
Response Fields
FieldTypeStatusFormatNotes
statusenum
successerror
read-only optional
--
idstring (uuid) - The ID from the request
read-only optional
uuidEchoes the requested template ID.
errorstring - Error description (only present on error)
read-only optional
--
dataobject
required
--
data.idstring (uuid)
read-only optional
uuidEchoes the requested template ID.
data.created_atstring (ISO 8601)
read-only optional
date-timeTemplate creation timestamp.
data.user_idstring (uuid)
required
uuid-
data.ownerstring
read-only optional nullable
-Display name of the template owner.
data.subjectstring
optional nullable
--
data.titlestring
optional nullable
--
data.contentobject
required
-JSON document of templates content
data.last_activitystring (ISO 8601)
read-only optional nullable
date-timeMost recent activity timestamp.