Create Short URL
Core Endpoints
Create Short URL
Create a new short URL with optional custom alias, domains, and advanced settings
POST
Create Short URL
Create a new short URL from a long URL. You can optionally provide a custom alias, name, expiration date, domain settings, and other advanced features.
Custom Alias Uniqueness: Custom aliases are unique per domain context, not globally. This means:
connextify.com/my-linkandacme.connextify.com/my-linkcan coexist as separate URLs- On the same domain, each alias must be unique
Request Body
Required Parameters
The original URL to shorten. Must be a valid HTTP or HTTPS URL.Example:
https://example.com/very-long-url-with-parameters?foo=barOptional Parameters
Optional custom alias for the short URL.Requirements:
- Must be 3-50 characters
- Alphanumeric with underscores (
_) or dashes (-) only - Must be unique within the URL type/domain context
my-campaign-linkOptional friendly name for the short URL (for your reference).Constraints: 1-255 charactersExample:
Q4 Marketing Campaign LinkOptional password to protect the short URL. When set, users must enter this password before being redirected.Requirements:
- 8-64 characters
- Must contain at least one letter
List of tags for categorization.Example:
["marketing", "social"]Optional expiration date in ISO 8601 format. The short URL will return a 410 Gone error after this date.Example:
2025-12-31T23:59:59.000ZWhether to enable click tracking and analytics for this URL. When enabled, each click is logged with:
- Geographic location (country, region, city)
- Device information (browser, OS, device type)
- Referrer data
- UTM parameters
Whether to enable dynamic destination editing for this URL.
- Standard (false): Uses a 301 Permanent Redirect. Best for SEO and speed, but the original URL cannot be changed once created.
- Dynamic (true): Uses a 302 Temporary Redirect. Allows you to change the destination URL at any time without changing the short URL.
Whether to generate a QR code for the short URL. If true, the QR code will encode the short URL with
isshortqrscan=1 appended for scan tracking.The format for the returned QR code.
image: Returns a native image block (recommended for API/MCP) or base64 data URL.json: Returns just the base64 data URL in the JSON response.
URL Type and Domain Settings
Type of URL to create. Determines the base domain for the short URL.
| Value | Description | Example URL |
|---|---|---|
standard | Uses the default connextify.com domain | https://connextify.com/abc123 |
subdomain | Uses your registered subdomain on connextify.com | https://acme.connextify.com/abc123 |
branded | Uses your own verified branded domain | https://go.yourbrand.com/abc123 |
Subdomain to use when
url_type is subdomain. Must be pre-registered and verified via the Create Subdomain endpoint.Requirements:- 3-63 characters
- Alphanumeric and dashes only
- Cannot start or end with a dash
- Must be owned by the authenticated user
acme (results in https://acme.connextify.com/alias)See List Subdomains to view your registered subdomains.Branded domain to use when
url_type is branded. Must be verified via DNS.Example: go.yourbrand.com (results in https://go.yourbrand.com/alias)See Create Branded Domain to register a new branded domain and Verify Domain for DNS setup instructions.
Campaign and Attribution Parameters
UUID of a campaign to associate this URL with. Must be a campaign owned by the authenticated user.
UUID of a saved UTM template (created via the UTM Templates API). When provided, Connextify automatically resolves and applies all saved UTM campaign tags and custom parameters to the short link’s destination URL. Any explicit
utm_* fields provided in the request will override individual template values.Campaign source (e.g.
google, newsletter).Campaign medium (e.g.
cpc, email).Campaign name (e.g.
summer_launch).Campaign term/keywords (e.g.
running_shoes).Campaign content variant (e.g.
cta_button_blue).Source platform sending traffic (e.g.
google_ads, meta).Creative format (e.g.
video, carousel, qr).Marketing tactic (e.g.
prospecting, retention).Campaign or ad identifier.
Arbitrary key-value attribution or metadata parameters (e.g.
{"affiliate_id": "123"}).Link Scheduling & Dual Expiration
Scheduled activation timestamp in ISO 8601 format. Before this time, the short link will not redirect to the destination URL, and will instead trigger the configured
pre_launch_action.Example: 2026-11-01T00:00:00ZAction to take when visitors access the link before the
start_at time:countdown: Renders a high-converting, branded live countdown teaser page with real-time timers.fallback_url: Silently redirects visitors to thepre_launch_fallback_url.custom_html: Renders bespoke HTML/CSS provided inpre_launch_html.
Destination URL to redirect visitors to when
pre_launch_action is fallback_url.Raw HTML snippet to serve to visitors before the activation date when
pre_launch_action is custom_html.Maximum total clicks allowed before the link automatically expires. Once this number of visits is reached, subsequent clicks trigger the configured
expired_action.Example: 500Burn-after-reading link flag. When
true, the link will permanently expire after exactly 1 click. Ideal for one-time tokens, sensitive documents, and direct personal invites.Action executed when the link has expired (either past
expires_at or exceeding click_cap):default: Displays the standard Connextify link expired error page.fallback_url: Automatically redirects visitors to theexpired_fallback_url.waitlist: Renders an interactive lead-capture card where visitors can submit their email address to join a priority waitlist.
Fallback destination URL to redirect expired traffic to when
expired_action is fallback_url.Custom configuration for the lead capture form when
expired_action is waitlist:title(string): Header title on the waitlist form.description(string): Explanatory copy encouraging visitors to sign up.button_text(string): CTA button label (e.g.,"Join Priority List").webhook_url(string): External webhook URL to receive lead notification payloads in real time.tags(array of strings): Tags to attach to captured leads.
When
true, automated email alerts are sent to your account email when your link reaches 80% capacity, 100% capacity, or is 24 hours away from date expiration.Mobile & Desktop Deep Linking
Enables intelligent OS detection and app scheme routing. Connextify automatically inspects 21+ supported platforms (YouTube, Spotify, Apple Music, TikTok, Instagram, Twitter/X, Discord, Twitch, Snapchat, Reddit, Threads, SoundCloud, etc.) and transforms web URLs into native app protocols (
intent:// or custom URI schemes) on mobile devices while gracefully falling back to web.Custom app scheme or App Store URL for iOS visitors (e.g.
myapp://products/shoes or https://apps.apple.com/app/id123456789). Overrides standard destination on iPhone and iPad devices.Custom app scheme, Intent URI, or Google Play Store URL for Android visitors (e.g.
intent://view#Intent;package=com.myapp;scheme=https;end; or https://play.google.com/store/apps/details?id=com.myapp). Overrides standard destination on Android phones and tablets.Custom destination URL or Windows Store protocol specifically for Windows desktop and laptop visitors.
Custom destination URL or Mac App Store URL specifically for macOS desktop and laptop visitors.
Parameter Forwarding & Conversion Tracking
Whether to forward incoming query parameters to the destination URL. When enabled, any UTM parameters, affiliate tags, or click IDs (
fbclid, gclid, ttclid) passed to the short link are appended to the destination URL. If the destination URL already contains conflicting keys, the values on the short link take precedence.Enables end-to-end conversion tracking and revenue attribution. When
true, Connextify automatically appends a unique click token (?cnfy_click_id=clk_...) to the destination URL. The Connextify Telemetry SDK stores this in a 30-day first-party cookie (_cnfy_cid) to accurately attribute downstream sales, leads, and orders in Conversion Analytics.Before enabling conversion tracking, verify that the telemetry SDK is installed on your destination page using the Verify SDK endpoint.
Dynamic Routing & Schedule Rotation
Array of country-targeted routing rules based on ISO 3166-1 alpha-2 country codes.
Array of browser language rules based on the visitor’s
Accept-Language header.Enterprise traffic-source routing rules based on the incoming
Referer domain.Dayparting and scheduled rotation configuration:
enabled(boolean): Whether time-based schedule rotation is active.timezone(string): IANA timezone string (e.g."America/New_York"or"Europe/London").timezone_mode(string):"venue_fixed"(use configured timezone) or"visitor_local"(detect visitor’s timezone).fallback_url(string): Default destination URL when no scheduled time window matches.rules(array): Array of time slots withdays(0-6),start_time("HH:MM"),end_time("HH:MM"), anddestination_url.
Retargeting Pixels & Tracking
Array of UUIDs of saved pixel profiles (created via the Pixels API). Connextify supports 15+ ad platforms including Meta (Facebook), Google Analytics 4, Google Tag Manager, TikTok, LinkedIn, Twitter/X, Pinterest, Microsoft Advertising, Snapchat, Reddit, PostHog, and Plausible.
- Server-Side CAPI (Pro/Business): Dispatches events directly from server to ad network with an instant HTTP 302 redirect (0ms latency, immune to ad blockers).
- Browser Interstitial Mode: Displays a 250ms interstitial page to fire native browser pixel scripts before forwarding the visitor.
Pixel event dispatch mechanism for this link:
server: Server-Side Conversions API (CAPI) direct relay (0ms delay, immune to ad blockers).client: 250ms interstitial page firing browser pixels.auto: Automatically uses server CAPI if credentials exist, otherwise browser interstitial.
Whether closed-loop conversion tracking is active for this short link. When enabled, clicks receive a cryptographically signed
cnfy_click_id parameter, enabling post-click event attribution, client SDK tracking, and automated server-side Meta/TikTok CAPI conversion relays.When
true, presents an interactive GDPR cookie consent card before firing client-side tracking pixels, ensuring full compliance with European and UK data privacy regulations.Response
Unique identifier for the short URL (UUID).
The generated or custom short code.
The complete short URL ready to share.
The original (destination) URL.
The friendly name (if provided).
The custom alias (if provided).
Whether analytics tracking is enabled.
The URL type:
standard, subdomain, or branded.The subdomain (if url_type is subdomain).
The branded domain (if url_type is branded).
Expiration date (if set).
ISO 8601 timestamp of creation.
Creation channel:
api, mcp, extension, or bulk_import.Base64-encoded PNG data URL of the generated QR code (if
qrCode was true).The exact URL encoded in the QR code, including the
isshortqrscan=1 tracking parameter.Scheduled activation timestamp (if configured).
Maximum allowed click count (if configured).
Whether this link is a single-use burner link.
Configured expiration action (
default, fallback_url, or waitlist).Fallback redirect destination URL for expired traffic.
Action taken before
start_at (countdown, fallback_url, or custom_html).Whether mobile deep linking is active.
iOS app destination scheme.
Android app destination scheme.
Country-targeted routing rules configured for this link.
Language-targeted routing rules configured for this link.
Request Examples
- cURL
- Node.js
- TypeScript
- Python
- PHP
- Go
- Java
- Standard
- Burner Link (1-Click)
- Scheduled Launch
- Geo & Mobile Routing
- Subdomain
- Branded Domain
- With Campaign
Response Examples
- 201 Created (Standard)
- 201 Created (Subdomain)
- 201 Created (Branded)
- 409 Alias Taken
- 403 Domain Not Owned
- 400 Validation Error
Use Cases
Marketing Campaign Tracking
Marketing Campaign Tracking
Create branded links for campaigns with full analytics tracking:
Temporary Promo Links
Temporary Promo Links
Create links that automatically expire after a promotion ends:After expiration, the link returns a 410 Gone response.
Brand-Consistent Links
Brand-Consistent Links
Use your own domain for maximum brand trust:
Password-Protected Links
Password-Protected Links
Protect sensitive content with a password:Visitors must enter the password before being redirected.
Related Endpoints
Check Alias Availability
Check if a custom alias is available before creating a URL
List Branded Domains
View your registered branded domains
List Subdomains
View your registered subdomains
Create Campaign
Organize links into marketing campaigns
URL Analytics
View click analytics for your URLs
Create QR Code
Generate a QR code for your short URL