Skip to main content
POST
Create a short link

Authorizations

Authorization
string
header
required

Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.

Body

application/json

Attributes for the new short link.

Target URL to shorten.

Example:

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

expiration_time
string<date-time>

Expiration date and time in ISO 8601 format.

Example:

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

fallback_url
string

Fallback URL for expired or invalid links.

Example:

"https://examples.com/fallback"

phone
string

Phone number for the short link.

Example:

"15155982927"

utm_campaign
string

UTM campaign name for tracking insights.

Example:

"summer_promo"

Response

Returns the created short link.

Generated short URL.

Example:

"https://wx.com/hd82Jhs21"