Developer
API REFERENCE

Links API

36 REST endpoints for links, each with its parameters, the response it returns and a runnable curl example. Starts with GET /api/links.

GET/api/links

Link list

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 8
NameInDescription
domainIdqueryOptional query parameter
limitqueryOptional query parameter
offsetqueryOptional query parameter
qqueryOptional query parameter
folderIdqueryOptional query parameter
tagqueryOptional query parameter
sortqueryOptional query parameter
dirqueryOptional query parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links

Create a short link

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 52
NameInDescription
pathbodyJSON request field
slugbodyJSON request field
original_urlbodyJSON request field
titlebodyJSON request field
descriptionbodyJSON request field
tagsbodyJSON request field
folder_idbodyJSON request field
cloakingbodyJSON request field
password_contactbodyJSON request field
notebodyJSON request field
expires_atbodyJSON request field
expired_urlbodyJSON request field
ttlbodyJSON request field
clicks_limitbodyJSON request field
utm_sourcebodyJSON request field
utm_mediumbodyJSON request field
utm_campaignbodyJSON request field
utm_termbodyJSON request field
utm_contentbodyJSON request field
android_urlbodyJSON request field
iphone_urlbodyJSON request field
android_packagebodyJSON request field
android_actionbodyJSON request field
android_componentbodyJSON request field
split_urlsbodyJSON request field
rotationbodyJSON request field
redirect_typebodyJSON request field
skip_qsbodyJSON request field
url_policybodyJSON request field
archivedbodyJSON request field
geo_rulesbodyJSON request field
integration_gabodyJSON request field
integration_gtmbodyJSON request field
integration_fbbodyJSON request field
integration_adrollbodyJSON request field
tracking_settingsbodyJSON request field
tracking_codebodyJSON request field
ogbodyJSON request field
twitterbodyJSON request field
app_linksbodyJSON request field
qr_stylebodyJSON request field
permissionsbodyJSON request field
bundle_idbodyJSON request field
routing_rulesbodyJSON request field
app_deep_linkbodyJSON request field
referrer_rulesbodyJSON request field
returning_rulebodyJSON request field
click_alertsbodyJSON request field
bot_policybodyJSON request field
passwordbodyJSON request field
encryptbodyJSON request field
domainIdbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
DELETE/api/links/{id}

Delete a short link

Open interactive reference →

Removes the selected resource after authorization. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
idpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/{id}

Get link info by link ID

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
idpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/preview

Read a destination page's title, description, site name and favicon (SSRF-safe, cached 24 h)

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
urlbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/suggest

Slug and tag suggestions for a destination (instant heuristics; ai:true refines with the configured provider)

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 6
NameInDescription
urlbodyJSON request field
titlebodyJSON request field
kindbodyJSON request field
domainIdbodyJSON request field
aibodyJSON request field
variantbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/{id}/click-alerts

Recent click alerts for one link

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
idpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
PATCH/api/links/{id}

Update a short link (PATCH)

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 53
NameInDescription
idpathRequired path parameter
original_urlbodyJSON request field
titlebodyJSON request field
descriptionbodyJSON request field
tagsbodyJSON request field
folder_idbodyJSON request field
cloakingbodyJSON request field
password_contactbodyJSON request field
notebodyJSON request field
expires_atbodyJSON request field
expired_urlbodyJSON request field
ttlbodyJSON request field
clicks_limitbodyJSON request field
utm_sourcebodyJSON request field
utm_mediumbodyJSON request field
utm_campaignbodyJSON request field
utm_termbodyJSON request field
utm_contentbodyJSON request field
android_urlbodyJSON request field
iphone_urlbodyJSON request field
android_packagebodyJSON request field
android_actionbodyJSON request field
android_componentbodyJSON request field
split_urlsbodyJSON request field
rotationbodyJSON request field
redirect_typebodyJSON request field
skip_qsbodyJSON request field
url_policybodyJSON request field
archivedbodyJSON request field
geo_rulesbodyJSON request field
integration_gabodyJSON request field
integration_gtmbodyJSON request field
integration_fbbodyJSON request field
integration_adrollbodyJSON request field
tracking_settingsbodyJSON request field
tracking_codebodyJSON request field
ogbodyJSON request field
twitterbodyJSON request field
app_linksbodyJSON request field
qr_stylebodyJSON request field
permissionsbodyJSON request field
bundle_idbodyJSON request field
routing_rulesbodyJSON request field
app_deep_linkbodyJSON request field
referrer_rulesbodyJSON request field
returning_rulebodyJSON request field
click_alertsbodyJSON request field
bot_policybodyJSON request field
pathbodyJSON request field
slugbodyJSON request field
passwordbodyJSON request field
encryptbodyJSON request field
domainIdbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/{id}

Update a short link

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 53
NameInDescription
idpathRequired path parameter
original_urlbodyJSON request field
titlebodyJSON request field
descriptionbodyJSON request field
tagsbodyJSON request field
folder_idbodyJSON request field
cloakingbodyJSON request field
password_contactbodyJSON request field
notebodyJSON request field
expires_atbodyJSON request field
expired_urlbodyJSON request field
ttlbodyJSON request field
clicks_limitbodyJSON request field
utm_sourcebodyJSON request field
utm_mediumbodyJSON request field
utm_campaignbodyJSON request field
utm_termbodyJSON request field
utm_contentbodyJSON request field
android_urlbodyJSON request field
iphone_urlbodyJSON request field
android_packagebodyJSON request field
android_actionbodyJSON request field
android_componentbodyJSON request field
split_urlsbodyJSON request field
rotationbodyJSON request field
redirect_typebodyJSON request field
skip_qsbodyJSON request field
url_policybodyJSON request field
archivedbodyJSON request field
geo_rulesbodyJSON request field
integration_gabodyJSON request field
integration_gtmbodyJSON request field
integration_fbbodyJSON request field
integration_adrollbodyJSON request field
tracking_settingsbodyJSON request field
tracking_codebodyJSON request field
ogbodyJSON request field
twitterbodyJSON request field
app_linksbodyJSON request field
qr_stylebodyJSON request field
permissionsbodyJSON request field
bundle_idbodyJSON request field
routing_rulesbodyJSON request field
app_deep_linkbodyJSON request field
referrer_rulesbodyJSON request field
returning_rulebodyJSON request field
click_alertsbodyJSON request field
bot_policybodyJSON request field
pathbodyJSON request field
slugbodyJSON request field
passwordbodyJSON request field
encryptbodyJSON request field
domainIdbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
PUT/api/links/{id}

Update a short link (PUT)

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
idpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/{id}/approval

Create or update links by ID approval

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 2
NameInDescription
idpathRequired path parameter
notebodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/{id}/archive

Archive a short link

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
idpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/{id}/country

List country targeting rules

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
idpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/{id}/country

Replace country targeting rules

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 3
NameInDescription
idpathRequired path parameter
valuebodyJSON request field
urlbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/{id}/destination-schedules

Create or update links by ID destination schedules

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 4
NameInDescription
idpathRequired path parameter
destinationbodyJSON request field
executeAtbodyJSON request field
timezonebodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
DELETE/api/links/{id}/destination-schedules/{scheduleId}

Delete links by ID destination schedules :scheduleId

Open interactive reference →

Removes the selected resource after authorization. Access is limited by the API key scope and the workspace plan.

Parameters 2
NameInDescription
idpathRequired path parameter
scheduleIdpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/{id}/duplicate

Create or update links by ID duplicate

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 2
NameInDescription
idpathRequired path parameter
domainIdbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/{id}/qr

Get links by ID qr

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 13
NameInDescription
idpathRequired path parameter
themequeryOptional query parameter
fgqueryOptional query parameter
bgqueryOptional query parameter
eyequeryOptional query parameter
radiusqueryOptional query parameter
finderqueryOptional query parameter
dotsqueryOptional query parameter
eclqueryOptional query parameter
sizequeryOptional query parameter
labelqueryOptional query parameter
utmqueryOptional query parameter
formatqueryOptional query parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/{id}/region

List region targeting rules

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
idpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/{id}/region

Replace region targeting rules

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 3
NameInDescription
idpathRequired path parameter
valuebodyJSON request field
urlbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/{id}/routing-rules

Create or update links by ID routing rules

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 2
NameInDescription
idpathRequired path parameter
rulesbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/{id}/unarchive

Unarchive a short link

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
idpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/{id}/workflow

Get links by ID workflow

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
idpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/bulk

Create short links in bulk

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
linksbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/bulk/action

Bulk actions from the links table

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 3
NameInDescription
idsbodyJSON request field
payloadbodyJSON request field
actionbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/bulk/delete

Create or update links bulk delete

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
actionbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/by-original-url

Get link info by original URL

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 2
NameInDescription
domainIdqueryOptional query parameter
originalURLqueryOptional query parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/by-original-urls

Get links info by original URL

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 4
NameInDescription
domainIdqueryOptional query parameter
originalURLqueryOptional query parameter
limitqueryOptional query parameter
offsetqueryOptional query parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/by-path

Get link info by path

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 2
NameInDescription
domainIdqueryOptional query parameter
pathqueryOptional query parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/expand

Expand a short link

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 2
NameInDescription
domainqueryOptional query parameter
pathqueryOptional query parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/folders

Create a folder

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/folders/{domainId}

List folders in a domain

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 1
NameInDescription
domainIdpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/folders/{domainId}/{folderId}

Get folder details

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 2
NameInDescription
domainIdpathRequired path parameter
folderIdpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/multiple

Create or update links multiple

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 2
NameInDescription
idsbodyJSON request field
link_idsbodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
GET/api/links/opengraph/{domainId}/{linkId}

Get link Open Graph properties

Open interactive reference →

Returns data without changing the resource. Access is limited by the API key scope and the workspace plan.

Parameters 2
NameInDescription
domainIdpathRequired path parameter
linkIdpathRequired path parameter

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited
POST/api/links/qr/bulk

Create or update links qr bulk

Open interactive reference →

Validates the payload and returns the resulting resource. Access is limited by the API key scope and the workspace plan.

Parameters 3
NameInDescription
idsbodyJSON request field
formatbodyJSON request field
stylebodyJSON request field

Examples in 22 languages and Try it →

Responses
200 Success400 Invalid request401 Invalid key429 Rate limited