- Shorten a URL or create a vanity link
Fetch all available url shorteners
Shorten a URL or create a...
Security
bearerAuth and apiKeyAuth
- Production Serverhttps://api3.sprinklr.com/prod/api/v3/link/shorten
- Mock serverhttps://developer.sprinklr.com/_mock/apis/sprinklr-v3/link/shorten
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"
}'Success
Campaign associated to the short link. For vanity url it defaults to -10 and for urls shortened directly it defaults
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 }