Skip to main content
POST
/
short-links
Create a short link
curl --request POST \
  --url https://api.wavix.com/v1/short-links \
  --header 'Content-Type: application/json' \
  --data '{
  "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"
}'
{
  "short_link": "https://wx.com/hd82Jhs21"
}

Authorizations

appid
string
query
required

An API key to authorize your request

Body

application/json

Link details

The long URL to be shortened

Example:

"https://your-site.com/long-url"

expiration_time
string<date-time>

The expiration time of the short link

Example:

"2023-07-19T18:18:34.235Z"

fallback_url
string

The URL to redirect to if the short link is expired or invalid

Example:

"https://examples.com/fallback"

phone
string

The phone number associated with the short link

Example:

"15155982927"

utm_campaign
string

The UTM campaign parameter; you can use this parameter to group the tracking insight by campaign

Example:

"summer_promo"

Response

The generated short URL

Example:

"https://wx.com/hd82Jhs21"

I