v50

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-06-16122182589.7 KB
Link shortener

Create a short link

Creates a short link that redirects to the target URL and tracks click metrics.

post/v1/short-links

Request body

linkstring required

Target URL to shorten.

expiration_timestring date-time

Expiration date and time in ISO 8601 format.

fallback_urlstring

Fallback URL for expired or invalid links.

phonestring

Phone number for the short link.

utm_campaignstring

UTM campaign name for tracking insights.

Example request

{
  "link": "https://your-site.com/long-url",
  "expiration_time": "2023-07-19T18:18:34.235Z",
  "fallback_url": "https://examples.com/fallback",
  "phone": "15155982927",
  "utm_campaign": "summer_promo"
}

Response

Returns the created short link.

short_linkstring required

Generated short URL.

Example response

{
  "short_link": "https://wx.com/hd82Jhs21"
}