POST
/
links
Available on Business, Enterprise plans.Max Pack required

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://ayrshare.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

Authorization
string
required
Format: Authorization: Bearer API_KEY. See API overview for more information.

Request Body

url
string
required

URL to be shortened. Must be a valid URL starting with https://

utmId
string

Used to identify which Google Analytics ads campaign this referral references.

utmSource
string

Used to identify a search engine, newsletter name, or other source.

utmMedium
string

Used to identify a medium such as email or cost-per-click.

utmCampaign
string

Used for keyword analysis. Used to identify a specific product promotion or strategic campaign.

utmTerm
string

Used for paid search. Used to note the keywords for this ad.

utmContent
string

Used for A/B testing and content-targeted ads. Used to differentiate ads or links that point to the same URL.