Messages

Create a short link

Changed on

REQUIRED SCOPES <code>['messages:write']</code><br>Creates a new short link for one URL on the organization's short domain, to put into a message. Every call creates a new link, also for a URL shortened before.

post/short-urls

Request

  • Base URL
    https://api.salesmessage.com/pub/v2.3
  • URL
    https://api.salesmessage.com/pub/v2.3/short-urls
  • Auth
    HTTP bearer

Request body

urlstring uri required

Example request

{
  "url": "https://example.com/offer"
}

Response

Short link created

short_urlstring

Example response

{
  "short_url": "https://example.link/AbC123"
}

Changes