---
title: "List SMS templates"
method: GET
path: "/sms/templates"
tags: ["SMS templates"]
---

# List SMS templates

`GET /sms/templates`

## Request

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

Retrieve your SMS templates, cursor-paginated. An SMS template is a plain-text `body` with the same `{{variable}}` placeholders email templates use, filled per recipient at send time. Only `published` templates can be used by an SMS campaign. Requires the `templates:read` capability.

## Query parameters

- `limit` integer
- `after` string
- `before` string

## Response `200`

A page of SMS templates.

- object
  - `object` 'list', required
  - `has_more` boolean, required
  - `data` SmsTemplate[], required
    - `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 is not enabled for this workspace.
- `422`: Invalid pagination params.

---

[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)
