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
| Field | Type | Status | Format | Notes |
|---|---|---|---|---|
| status | enum successerror | read-only optional | - | - |
| id | string (uuid) - The ID from the request | read-only optional | uuid | Echoes the requested template ID. |
| error | string - Error description (only present on error) | read-only optional | - | - |
| data | object | required | - | - |
| data.id | string (uuid) | read-only optional | uuid | Echoes the requested template ID. |
| data.created_at | string (ISO 8601) | read-only optional | date-time | Template creation timestamp. |
| data.user_id | string (uuid) | required | uuid | - |
| data.owner | string | read-only optional nullable | - | Display name of the template owner. |
| data.subject | string | optional nullable | - | - |
| data.title | string | optional nullable | - | - |
| data.content | object | required | - | JSON document of templates content |
| data.last_activity | string (ISO 8601) | read-only optional nullable | date-time | Most recent activity timestamp. |