Skip to Content
GuidesAPI Reference
LinksCreate Link
POST/api/v1/links

Create a link

Create a new short link in your workspace. Returns the full link detail object.

Authorization
Authorizationstringheaderrequired

Bearer token. Format: Bearer YOUR_API_KEY

Bodyapplication/json
urlstringbodyrequired

The destination URL that the short link redirects to.

domainstringbodyrequired

Domain for the short URL. Must be a domain verified in your workspace (e.g. go.mycompany.com).

customSlugstringbodyoptional

Custom slug for the short URL (e.g. my-campaign). Auto-generated if omitted.

titlestringbodyoptional

Display name for the link shown in your dashboard.

descriptionstringbodyoptional

Meta description used for social link previews.

imagestringbodyoptional

OG image URL used for social link previews.

redirectTypePERMANENT_301 | TEMPORARY_302bodyoptional

HTTP redirect type. Defaults to TEMPORARY_302.

linkTypeURL | MAILTO | TEL | SMSbodyoptional

Type of link. Defaults to URL.

cloakedbooleanbodyoptional

Hide the destination URL from the browser address bar. Defaults to false.

passwordstringbodyoptional

Protect the link with a password. Visitors must enter it before being redirected.

expiresAtstring (ISO 8601)bodyoptional

Timestamp after which the link stops redirecting.

maxClicksnumberbodyoptional

Maximum number of clicks before the link is automatically deactivated.

tagIdsstring[]bodyoptional

Array of tag IDs to attach to the link.

forwardParametersbooleanbodyoptional

Append query parameters from the short URL to the destination URL. Defaults to false.

blockBotsbooleanbodyoptional

Block known bot and crawler traffic. Defaults to false.

utmSourcestringbodyoptional

UTM source parameter appended to the destination URL.

utmMediumstringbodyoptional

UTM medium parameter appended to the destination URL.

utmCampaignstringbodyoptional

UTM campaign parameter appended to the destination URL.

utmTermstringbodyoptional

UTM term parameter appended to the destination URL.

utmContentstringbodyoptional

UTM content parameter appended to the destination URL.

metaPixelIdstringbodyoptional

Facebook/Meta Pixel ID for retargeting.

googleTagIdstringbodyoptional

Google Analytics measurement ID.

webhookUrlsstringbodyoptional

Comma-separated webhook URLs called on each click.

Last updated on