Create a link
create_linkCreates one shareable short deep link in your workspace that opens the app when installed or routes to the store/website, preserving the destination through install.
Instructions
Create one deep link (short link) in the workspace of STRAIT_SECRET_KEY. Returns the link with its shortUrl (https://.strait.link/) to share. The link opens the app when installed (App Links / Universal Links), otherwise the store or website, and keeps the destination through an install. For more than a few links use batch_create_links.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The link's slug: the part after the link domain, e.g. `summer` in https://hilltop.strait.link/summer | |
| tags | No | ||
| title | No | Social preview title | |
| longUrl | Yes | Where the link goes: an https URL on your app's domain. The app receives its path and query as the in-app route. | |
| campaign | No | Campaign name for analytics; defaults to longUrl's utm_campaign | |
| imageUrl | No | Social preview image (https) | |
| expiresAt | No | After this the link stops opening its destination. Omit for never. | |
| desktopUrl | No | Computers go here instead of longUrl | |
| expiredUrl | No | Required with expiredAction url | |
| description | No | Social preview description | |
| expiredAction | No | Where taps go after expiry: page (expired page), store (app store), url (expiredUrl) | |
| iosFallbackUrl | No | iPhone without the app: this page instead of longUrl | |
| androidFallbackUrl | No | Android without the app (website mode): this page instead of longUrl |