---
title: "Retrieve an SMS template"
method: GET
path: "/sms/templates/{id}"
tags: ["SMS templates"]
---

# Retrieve an SMS template

`GET /sms/templates/{id}`

## Request

- Base URL: `https://www.unitpost.com/api/v1`
- URL: `https://www.unitpost.com/api/v1/sms/templates/{id}`
- Auth: HTTP bearer

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

## Response `200`

The SMS template.

- SmsTemplate
  - `object` 'sms_template', required
  - `id` string, required
  - `name` string, required
  - `body` string, required
  - `status` 'draft' | 'published', required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `401`: Missing or invalid API key.
- `403`: Insufficient scope.
- `404`: SMS template not found, or SMS is not enabled.

---

[API](https://skmtc.dev/unitpost/apis/unitpost-api.md) · [All operations](https://skmtc.dev/unitpost/apis/unitpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/unitpost/apis/unitpost-api/revisions/86ff7c890967?raw)
