> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/templates/get-one-template.md).

# Get One Template

### 🧾 Get One Template

Use this endpoint to fetch the name, HTML content, and screenshot of a selected template.

***

#### 🔹 HTTP Request

```http
GET API-URL/templates/TEMPLATE-UNIQUE-ID
```

***

#### 🔸 URL Segments

| Segment              | Required | Description                           |
| -------------------- | -------- | ------------------------------------- |
| `TEMPLATE-UNIQUE-ID` | Yes      | Template unique ID which to retrieve. |

***

#### 🔐 Authorization Header

```
X-API-KEY: your-api-key-here
```

***

#### 💻 PHP Example

```php
// GET ONE ITEM
$response = $endpoint->getTemplate('TEMPLATE-UNIQUE-ID');

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
```

***

#### 📦 Sample JSON Response

```json
{
  "status": "success",
  "data": {
    "record": {
      "name": "summer_promo_template",
      "content": "HTML content...",
      "screenshot": "https:\/\/demo.com\/frontend\/assets\/gallery\/tpl9847xyz123\/img_preview.png"
    }
  }
}
```
