Creates a short link that redirects to the target URL and tracks click metrics.
Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.
Attributes for the new short link.
Target URL to shorten. Must be https:// — the short link is publicly resolvable and redirects any visitor here, so only pass URLs you trust; this endpoint is a common target for open-redirect and phishing abuse.
^https://"https://your-site.com/long-url"
Expiration date and time in ISO 8601 format.
"2023-07-19T18:18:34.235Z"
Fallback URL for expired or invalid links. Must be https:// — same open-redirect/phishing considerations as link apply.
^https://"https://examples.com/fallback"
Phone number the short link is associated with, in E.164 format (without the leading +). Used to attribute click metrics returned by short link metrics list.
"15155982927"
UTM campaign name for tracking insights.
"summer_promo"
Returns the created short link.
Generated short URL.
"https://wx.com/hd82Jhs21"