Skip to main content
POST
Create a link

Authorizations

Authorization
string
header
required

Workspace API key from Settings → API. Starts with tyl_.

Body

application/json
destination
string<uri>
required

The long URL to shorten.

slug
string

Custom short name. Leave empty to generate one from the page.

title
string

Display title. Defaults from the destination page when omitted.

domainId
string<uuid>

Domain in this workspace. Defaults to the workspace default.

folderId
string<uuid>
campaignId
string<uuid>
tags
note
string
utmSource
string
utmMedium
string
utmCampaign
string
utmTerm
string
utmContent
string
appendUtm
boolean
default:true
expiresAt
string<date-time>
iosUrl
string<uri>
androidUrl
string<uri>
fallbackUrl
string<uri>
password
string
redirectCode
enum<integer>
default:302
Available options:
301,
302,
307
rotations
object[]
Maximum array length: 3

Response

The new link.

id
string<uuid>
title
string | null
slug
string
shortUrl
string<uri>
destination
string<uri>
domain
string
folderId
string<uuid> | null
campaignId
string<uuid> | null
tags
string[]
note
string | null
humanClicks
integer
clicks
integer
health
string
expiresAt
string<date-time> | null
passwordProtected
boolean
iosUrl
string | null
androidUrl
string | null
fallbackUrl
string | null
redirectCode
integer
utm
object
createdAt
string<date-time>
updatedAt
string<date-time>