Skip to content

Shorten a URL or create a vanity link

Request

Security
bearerAuth and apiKeyAuth
Bodyapplication/jsonrequired
urlShortenerIdstringrequired

Url Shortener to be used for short link creation

namestring

unique name / url hash if specified will be used to shorten link.

descriptionstring

description of url to be shortened.

curl -i -X POST \
  https://api3.sprinklr.com/prod/api/v3/link/shorten \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "link": "string",
    "urlShortenerId": "string",
    "name": "string",
    "description": "string"
  }'

Responses

Success

Bodyapplication/json
idinteger, (int64)

Short link id

urlShortenerIdstring

url shortener id

linkHashstring

unique hash for the link shortened

descriptionstring

short url description

campaignIdinteger, (int64)

Campaign associated to the short link. For vanity url it defaults to -10 and for urls shortened directly it defaults

createdTimeinteger, (int64)

creation time of the short link

modifiedTimeinteger, (int64)

last modified time of the short link

domainstring

domain used to shorten link

providerstring

url provider used for shortening link

archivedboolean

indicates if short link is archived.

postIdinteger, (int64)

Post id of post in association with.

Response
{ "id": 0, "urlShortenerId": "string", "linkHash": "string", "originalLink": "string", "shortLink": "string", "description": "string", "campaignId": 0, "createdTime": 0, "modifiedTime": 0, "domain": "string", "provider": "string", "archived": true, "postId": 0 }