Create Short Link
Provide a URL and a shortened link will be returned.
Provide a URL and a shortened link will be returned. Analytics can then be gathered on the clicks, browser type, etc.
Submitting the same URL for shortening will always result in the same shortened link. To generate a unique shortened link for the same URL, you can add extra query parameters to it. For example, appending a unique identifier like https://acme.com?uniqueId=123 will create a distinct shortened link.
You may also include UTM parameters, which will be embedded in the shortened URL link.
Header Parameters
AuthorizationstringrequiredBody Parameters
urlstringrequiredURL to be shortened. Must be a valid URL starting with https://
utmIdstringUsed to identify which Google Analytics ads campaign this referral references.
utmSourcestringUsed to identify a search engine, newsletter name, or other source.
utmMediumstringUsed to identify a medium such as email or cost-per-click.
utmCampaignstringUsed for keyword analysis. Used to identify a specific product promotion or strategic campaign.
utmTermstringUsed for paid search. Used to note the keywords for this ad.
utmContentstringUsed for A/B testing and content-targeted ads. Used to differentiate ads or links that point to the same URL.
curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{"url": "https://www.acme.com", "utmSource": "google_ads"}' \
-X POST https://api.acme.com/api/links{
"created": "2023-07-17T15:20:51.118Z",
"id": "yC0fTl",
"originalUrl": "https://www.acme.com/?utm_source=looking",
"shortUrl": "https://ayrs.io/yC0fTl",
"status": "success",
"utmSource": "looking"
}