Shorten a URL
shorten_urlCreate a ShareCut short link for a URL and get a matching QR code. Unlike a static QR, this one points at the short link, so update_link can change where it goes after it has been printed, and every scan is counted (country, device, referrer). Destinations are screened with Google Safe Browsing. Requires a ShareCut API key (Business plan).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The http(s) destination to shorten. | |
| utm | No | Optional UTM parameters appended to the destination at redirect time: source, medium, campaign, term, content. The stored destination stays clean. | |
| title | No | Optional label for the link, shown in the owner dashboard. Not visible to visitors. | |
| customCode | No | Optional custom short code: lowercase letters, digits and hyphens, up to 10 characters. Fails if already taken — check_short_code tests one first. |