List SMS templates
GET/api/v1/sms/templates
GET /sms/templates
curl -X GET 'https://www.unitpost.com/api/v1/sms/templates' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0'Response · 200
{
"object": "list",
"has_more": false,
"data": [
{
"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"
}
]
}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.
Parameters3 fields
| Field | Type | Description |
|---|---|---|
limit | integer · query | Max rows to return (default 20, max 100). |
after | string · query | Return rows after this id (forward paging). |
before | string · query | Return rows before this id (backward paging). |
Response · 200 fields7 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
idrequired | string | — |
namerequired | string | — |
bodyrequired | string | — |
statusrequired | enumdraft | published | — |
created_atrequired | string | — |
updated_atrequired | string | — |
200401403404422