List SMS templates

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
FieldTypeDescription
limitinteger · queryMax rows to return (default 20, max 100).
afterstring · queryReturn rows after this id (forward paging).
beforestring · queryReturn rows before this id (backward paging).
Response · 200 fields7 fields
FieldTypeDescription
objectrequiredstring—
idrequiredstring—
namerequiredstring—
bodyrequiredstring—
statusrequiredenumdraft | published—
created_atrequiredstring—
updated_atrequiredstring—
200401403404422

Search docs and guides

Search the docs and product guides.