Skip to main content
Ctrl+K
Logo image

&euro

  • Что нового

Личный кабинет Rapporto

  • Начало работы
  • Рассылки
    • Создание SMS-рассылки
    • Создание Viber-рассылки
    • Создание Telegram-рассылки
    • Отправка каскадной рассылки
    • Создание файла для рассылки
    • Отправка рассылки с подстановками
    • Добавление расписания рассылки
    • Отправка отложенной рассылки
    • Указание даты окончания рассылки
    • Редактирование рассылок
    • Добавление контактов
    • Создание сегментов
    • Добавление черного списка
    • Работа с разделом “Рассылки”
  • Шаблоны
    • Поиск шаблонов
    • Добавление шаблонов
    • Создание файла с шаблонами
    • Выражения для автоподстановок
  • Аналитика
    • Просмотр статистики рассылки
    • Подробный отчет
    • Сводный отчет
    • Подробный отчет Telegram
    • Сводный отчет Telegram
    • Финансовый отчет
    • Поиск сообщений
  • Администрирование
    • Добавление пользователя
    • Настройка прав пользователя
    • Что такое команды
  • Часто задаваемые вопросы

Интеграции

  • Общая информация
  • REST API
    • Подключение сервиса
    • Структура запроса
    • SMS
    • MAX
    • Push
    • Telegram
      • Рассылка Telegram-сообщений
      • Коды авторизации Telegram Gateway
    • VK
    • Viber
    • WhatsApp
    • FlashingCall (VoiceCode)
    • CardsMobile
    • Каскадная рассылка
    • MO-сообщения
    • Сервис получения статусов доставки сообщений
    • Сервис сокращения ссылок
  • REST_BATCH API
    • Подключение сервиса
    • Структура запроса
    • Запрос на отправку SMS
    • Сервис получения статусов доставки
  • HTTP API
    • Подключение сервиса
    • Структура запроса
    • SMS
    • Viber
    • WhatsApp
    • VK
    • Push
    • FlashingCall (Voice Code)
    • Коды авторизации Telegram Gateway
    • Каскадные сообщения
    • MO-сообщения
    • Сервис получения статусов доставки
    • Сервис сокращения ссылок
  • FTP API
    • Подключение сервиса
    • Взаимодействие с платформой
    • Общие требования к файлам
    • SMS-рассылка без идентификаторов
    • SMS-рассылка с идентификаторами
    • Чёрный список
    • Отчет о выполненных операциях
    • Отчет о доставке
  • SMPP API
    • Подключение сервиса
    • Структура запроса
    • SMS
    • Viber
    • VK
    • Push
    • FlashingCall (VoiceCode)
    • Коды авторизации Telegram Gateway
    • Каскадная рассылка
    • MO-сообщения
    • Сервис получения статусов доставки
    • Сервис сокращения ссылок
  • HLR API
    • Подключение сервиса
    • HLR-запрос
  • IVR
    • IVR FTP API
      • Подключение сервиса
      • Взаимодействие с платформой
      • Общие требования к подготовке файлов
      • Рассылка без идентификаторов
      • Рассылка с идентификаторами
      • Отчет о выполненных операциях
      • Отчет о выполненных звонках
    • IVR HTTP API
      • Подключение сервиса
      • Запрос на отправку голосовых сообщений
      • Получение данных о выполнении звонка
      • Сервис получения статусов доставки
  • English version
    • REST API
      • Setup
      • Request Structure
      • SMS
      • MAX
      • Viber
      • Telegram
      • Push
      • VK
      • WhatsApp
      • FlashingCall (VoiceCode)
      • CardsMobile
      • Cascading Message Sending
      • Mobile Originated Messages
      • Delivery Status Service
      • Link Shortening Service
    • HTTP API
      • Setup
      • Request Structure
      • SMS
      • Viber
      • WhatsApp
      • VK
      • Push
      • FlashingCall (Voice Code)
      • Cascading Message Sending
      • Mobile Originated Messages
      • Delivery Status Service
      • Link Shortening Service
    • FTP API
      • Setup
      • Interaction with the Platform
      • General Requirements for Files
      • SMS Sending with no IDs
      • SMS Sending with IDs
      • Blacklist
      • Report on Completed Actions
      • Delivery Report
    • SMPP API
      • Service Setup
      • Request Structure
      • SMS
      • Viber
      • VK
      • Push
      • FlashingCall (VoiceCode)
      • Telegram Gateway Authorization Codes
      • Cascade Message Sending
      • Mobile Originated Messages
      • Delivery Status Service
      • Link Shortening Service
    • Contacts

Push-сервис

  • Сервис Rapporto Push Notification System
  • SDK Rapporto
    • Мобильный SDK
      • Android
        • PushService для Android
        • Интеграция PushService в приложение на базе Flutter
      • iOS
        • ZGR Messaging SDK
        • Интеграция в ручном режиме
        • Интеграция c помощью CocoaPods
        • Интеграция c помощью Swift Package Manager
        • Интеграция в приложение на базе Flutter
        • Использование в приложении на базе Flutter
        • Интеграция в приложение на базе React Native
        • Использование в приложении на базе React Native
    • Веб SDK
      • Rapporto Web Push SDK

&euro

  • Глоссарий
  • Контакты

Link Shortening Service

На этой странице

  • Description
  • Service Operation
  • Service Setup
  • TLV Parameters for Link Shortening

Link Shortening Service#

Description#

The functionality of the service:

  • replacing long links in the message text with short ones;

  • link matching storage;

  • redirecting from a short link to a long one;

  • collecting traffic statistics.

Please contact your supervising manager to enable the link shortening service.
After the Service Provider has configured the link shortening service, all found links in the message text will be shortened by default in accordance with the specified settings.
If necessary, this setting can also be controlled using the optional shortenLinks parameter, which can be sent in the request.
If the service is configured and the parameter is not sent, the link will be shortened by default. The same applies to links passed in cascading messages.
The link is shortened using the http://kr4.me domain.

Links are shortened for the following types of messages:

  • Viber;

  • SMS;

  • Push;

  • VK.

Service Operation#

  1. When a long link is detected in the message, a new link is formed - the http://kr4.me/ domain is inserted at the beginning of the new link and a unique UID is added, which length can be from 3 to 8 characters. Example of a link after shortening: http://kr4.me/EQiCREB.

  2. After messages are delivered, when subscribers click the short link, the URL shortening service will identify the corresponding long URL and perform the redirection.

  3. Clicks on each link will be recorded in the Platform statistics.

Service Setup#

To enable the service, the following data must be provided to the Technical Support Service:

  • the number of characters after which the link must be shortened. For example, if the link is shortened by more than 26 characters, then the https://rapporto.ru/ link will be transmitted to the subscriber unchanged, and the https://rapporto.ru/company/o_platforme_rapporto/ link will be shortened, for example http://kr4.me/QEiCRE/;

  • the number of characters in the UID that is added after the domain. This parameter affects the number of unique links that can be generated. For example, with a length of UID = 8 characters, about 281 trillion unique links can be generated;

  • clarify the need to generate unique links for each subscriber. This parameter affects the traffic statistics. If a single link is used for all subscribers, the total traffic statistics for all subscribers will be displayed;

  • the number of days after which an inactive link is deleted if there were no clicks on it;

  • the link lifetime – the number of days after which an inactive link is deleted, even if there were clicks on it.

TLV Parameters for Link Shortening#

Two different parameters are used to shorten links in message texts:

  • shorten_links – for shortening links in the text of individual messages;

  • shorten_list – for shortening links in the texts of messages within the cascade message.

Shortening links in the text of individual messages.

TLV Parameter

Field

Octets size

Type

Description

shorten_links

Tag

2

Integer

id = 0x4001

Length

2

Integer

Length of the parameter in octets.

Value

1

Octet String

Shortening links in the text of the message.

The byte representation of the true or false values can be specified here to indicate whether URL shortening is required.

Shortening links in the texts of messages within a cascade message.

shorten_list

Tag

2

Integer

id = 0x4002

Length

2

Integer

Length of the parameter in octets.

Value

up to 1000

Octet String

Shortening links in the cascade message.

The parameter value must contain a list of message types (comma-separated) for which link shortening is required.
Possible message type values (case insensitive):
  • i – Viber;

  • s – SMS;

  • p – Push;

  • v – VK.

For example, “V,S” means that URLs should be shortened in VK and SMS messages, but not in Viber messages.

If URL shortening is enabled for the Partner, the following scenarios are possible:

  • the parameter is not passed in the request – links are shortened for all message types by default;

  • the parameter is passed and its value is empty – link shortening is disabled for all message types;

  • The parameter is passed in the request and the value is not empty – links are shortened only for the message types specified in the parameter value.

назад

Delivery Status Service

вперёд

Contacts

On this page
  • Description
  • Service Operation
  • Service Setup
  • TLV Parameters for Link Shortening

© Copyright 2025, Rapporto.