---
title: "Returns message template"
method: GET
path: "/v1/templates/{id}"
tags: ["templates"]
---

# Returns message template

`GET /v1/templates/{id}`

## Request

- Base URL: `https://apiv1.linkmobility.eu/api`
- URL: `https://apiv1.linkmobility.eu/api/v1/templates/{id}`
- Auth: none declared

## Path parameters

- `id` integer, required

## Response `200`

OK

- MessageTemplateResponse
  - `name` string, required: message template name
  - `content` string, required: message template content
  - `sender` string: sender
  - `deliveryReport` boolean, required: request delivery report?
  - `remoteSmsShortcut` string: remote SMS shortcut
  - `smsType` integer: SMS type (0 = default, 1 = flash, 2 = both)
  - `contentCategory` string: content category (personal, advertisement or informational
  - `messageType` string: message type (default, voice, whatsapp, rcs
  - `urlshorteningType` string: urlshortening type
  - `pinned` boolean: pinned?
  - `templateCategoryId` integer: template category id
  - `preselectedCustomerChannelId` integer: preselected customer channel id
  - `rcsMessage` RcsMessage
    - `agentMessage` AgentContentMessageDto, required
      - `text` string
      - `fileName` string
      - `richCard` RichCardDto
        - `carouselCard` CarouselCardDto
          - `cardWidth` string
          - `cardContents` CardContentDto[]
            - `title` string
            - `description` string
            - `media` MediaDto
              - …
            - `suggestions` SuggestionDto[]
              - …
        - `standaloneCard` StandaloneCardDto
          - `cardOrientation` string
          - `thumbnailImageAlignment` string
          - `cardContent` CardContentDto
            - `title` string
            - `description` string
            - `media` MediaDto
              - …
            - `suggestions` SuggestionDto[]
              - …
      - `suggestions` SuggestionDto[]
        - `reply` ReplyDto
          - `text` string
          - `postbackData` string
        - `action` ActionDto
          - `text` string
          - `postbackData` string
          - `dialAction` DialActionDto
            - `phoneNumber` string
          - `viewLocationAction` ViewLocationActionDto
            - `latLong` LatLngDto, required
              - …
            - `label` string
            - `query` string
          - `createCalendarEventAction` CreateCalendarEventActionDto
            - `startTime` string
            - `endTime` string
            - `title` string
            - `description` string
          - `openUrlAction` OpenUrlActionDto
            - `application` string
            - `url` string
            - `description` string
            - `webviewViewMode` string
          - `shareLocationAction` ShareLocationActionDto
          - `composeAction` ComposeActionDto
            - `composeTextMessage` ComposeTextMessageDto
              - …
            - `composeRecordingMessage` ComposeRecordingMessageDto
              - …
      - `contentInfo` ContentInfoDto
        - `fileUrl` string
        - `thumbnailUrl` string
        - `forceRefresh` boolean
  - `id` integer, required: message template id
  - `lastModified` string, date-time: last modified
  - `lastModifiedBy` string: last modified by
  - `usageCounter` integer: usage counter
  - `links` Link[]: links
    - `rel` string
    - `href` string

## Other responses

- `404`: Not found
- `500`: Internal server error

---

[API](https://skmtc.dev/linkmobility/apis/linkmobility-api.md) - [All operations](https://skmtc.dev/linkmobility/apis/linkmobility-api/llms.txt) - [OpenAPI document](https://skmtc.dev/linkmobility/apis/linkmobility-api/revisions/029548691274?raw)
