---
title: "Get all templates"
method: GET
path: "/v4/sms/templates"
tags: ["Sms - Templates"]
---

# Get all templates

`GET /v4/sms/templates`

## Request

- Base URL: `https://api.inmobile.com`
- URL: `https://api.inmobile.com/v4/sms/templates`
- Auth: one of:
  - HTTP basic
  - API key in query parameter `apikey`

This response is a paged result and will contain the property '_links.next'.
If there are more pages, the next page in the paged result will be provided here.

## Query parameters

- `pageLimit` integer

## Response `200`

A list of templates

- ApiPageModelOfStandardTextOutputApiModel
  - `entries` StandardTextOutputApiModel[]
    - `id` string: The id of the template.
    - `name` string: The name of the template.
    - `text` string: The template text.
    - `senderName` string: The sendername to use with this template.
    - `encoding` string: The encoding of the message. Can be either "gsm7" or "ucs2" "gsm7" is the default alphabet for text messages and when using gsm7, a single sms message can contain 160 characters. If the length exceeds 160 characters, the message is actually split up into parts of 153 characters and charged according to this. Please note, that a few, specific characters fill up 2 bytes and count for 2 letters. Ref: https://en.wikipedia.org/wiki/GSM_03.38 "ucs2" allows for more non-roman characters to be used along with smileys. When using this encoding, a single message can consist of 70 characters. If the message exceeds 70 characters, the final message is actually split into parts of 67 characters.
    - `placeholders` string[]: A list of the placeholders found in the template text.
    - `created` string: When the template was created e.g. 2001-02-30T14:50:23Z (UTC time).
    - `lastUpdated` string: When the template was last updated e.g. 2001-02-30T14:50:23Z (UTC time).
    - `unsubscribeInfo` StandardTextUnsubscribeInfoApiModel
      - `unsubscribeMethod` 0 | 1 | 2: 0 = None 1 = Sms 2 = Domain
      - `unsubscribeMethodDescription` string: A text description of the unsubscribe method.
      - `unsubscribeText` string: The unsubscription text.
  - `_links` ApiPageLinks
    - `next` string: The link to the next page, e.g. /Feature/Something/cAw2WeS3rdf
    - `isLastPage` boolean: true if this is the last page, false if there are more pages. NextPageUrl is always defined when this is false and never defined when it is true.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/inmobile/apis/inmobile-rest-api.md) · [All operations](https://skmtc.dev/inmobile/apis/inmobile-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/inmobile/apis/inmobile-rest-api/revisions/197a90ad5f8f?raw)
