create_link
Create a smart link. Only fallbackUrl is required; add targets for app stores, countryRules for per-country Android stores, a deeplinkUrl to open the installed app, a socialPreview for how the link looks when shared, and a slug for a readable URL. Returns the new link with its public url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | custom slug of 5 to 64 lowercase letters, digits or hyphens; omit for a random one | |
| title | No | name shown in the dashboard, up to 200 characters | |
| targets | No | store or app page URL per platform; allowed keys: iphone, ipad, android, huawei, samsung (Galaxy Store), xiaomi (GetApps), rustore (RuStore, used for Android visitors in Russia) | |
| deeplinkUrl | No | in-app URL that opens the installed app, for example acme://product/42 | |
| fallbackUrl | Yes | http(s) page for desktop visitors and anyone without a matching target | |
| countryRules | No | up to 50 rules, one per country, that send Android visitors from that country to their own URL; huawei, samsung and xiaomi targets still win, and a rule for RU wins over the rustore target | |
| socialPreview | No | title, description and image that WhatsApp, iMessage, Slack, X, LinkedIn and other apps show when the link is shared; leave it out to show the destination's own preview | |
| parameterForwarding | No | pass the query string of each click on to the destination (Business and Enterprise) |