---
title: "Retrieve an SMS template"
description: "Retrieve a single SMS template, including its body. `GET /api/v1/sms/templates/{id}`"
url: https://www.unitpost.com/docs/sms/get-sms-templates-id
section: "SMS API reference"
updated: 2026-10-13
---
# Retrieve an SMS template

`GET /api/v1/sms/templates/{id}`

Retrieve a single SMS template, including its `body`. An email template id returns `404` here. Requires the `templates:read` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | — |
| `id` | string | yes | — |
| `name` | string | yes | — |
| `body` | string | yes | — |
| `status` | enum | yes | One of: `draft`, `published`. |
| `created_at` | string | yes | — |
| `updated_at` | string | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 200 | The SMS template. |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 404 | SMS template not found, or SMS is not enabled. |

## Example request

```bash
curl -X GET 'https://www.unitpost.com/api/v1/sms/templates/tmpl_123' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Example response (200)

```json
{
  "object": "sms_template",
  "id": "id_123",
  "name": "Example",
  "body": "string",
  "status": "draft",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/sms/get-sms-templates-id
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
