---
title: "Get template by id"
method: GET
path: "/v4/sms/templates/{id}"
tags: ["Sms - Templates"]
---

# Get template by id

`GET /v4/sms/templates/{id}`

## Request

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

## Path parameters

- `id` string, required

## Response `200`

A template

- 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.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found
- `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)
