POST
/
short-urls
Create Short URL
curl --request POST \
  --url https://connextify.com/api/v1/short-urls \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "custom_alias": "<string>",
  "name": "<string>",
  "password": "<string>",
  "tags": [
    {}
  ],
  "expires_at": "<string>",
  "tracking_enabled": true,
  "is_dynamic": true,
  "qrCode": true,
  "qrFormat": "<string>",
  "url_type": "<string>",
  "subdomain": "<string>",
  "branded_domain": "<string>",
  "campaign_id": "<string>",
  "utm_template_id": "<string>",
  "utm_source": "<string>",
  "utm_medium": "<string>",
  "utm_campaign": "<string>",
  "utm_term": "<string>",
  "utm_content": "<string>",
  "utm_source_platform": "<string>",
  "utm_creative_format": "<string>",
  "utm_marketing_tactic": "<string>",
  "utm_id": "<string>",
  "custom_params": {},
  "start_at": "<string>",
  "pre_launch_action": "<string>",
  "pre_launch_fallback_url": "<string>",
  "pre_launch_html": "<string>",
  "click_cap": 123,
  "is_burner": true,
  "expired_action": "<string>",
  "expired_fallback_url": "<string>",
  "waitlist_config": {},
  "expiry_alerts_enabled": true,
  "smart_deep_link_enabled": true,
  "ios_url": "<string>",
  "android_url": "<string>",
  "windows_url": "<string>",
  "mac_url": "<string>",
  "pass_query_params": true,
  "conversions_enabled": true,
  "geo_rules": [
    {}
  ],
  "language_rules": [
    {}
  ],
  "referrer_rules": [
    {}
  ],
  "time_rotation": {},
  "pixel_ids": [
    {}
  ],
  "pixel_delivery_mode": "<string>",
  "gdpr_consent_enabled": true
}
'
{
  "id": "<string>",
  "short_code": "<string>",
  "short_url": "<string>",
  "original_url": "<string>",
  "name": "<string>",
  "custom_alias": "<string>",
  "tracking_enabled": true,
  "url_type": "<string>",
  "subdomain": "<string>",
  "branded_domain": "<string>",
  "expires_at": "<string>",
  "created_at": "<string>",
  "channel": "<string>",
  "qr_code": "<string>",
  "qr_content": "<string>",
  "start_at": "<string>",
  "click_cap": 123,
  "is_burner": true,
  "expired_action": "<string>",
  "expired_fallback_url": "<string>",
  "pre_launch_action": "<string>",
  "smart_deep_link_enabled": true,
  "ios_url": "<string>",
  "android_url": "<string>",
  "geo_rules": [
    {}
  ],
  "language_rules": [
    {}
  ]
}
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-link and acme.connextify.com/my-link can coexist as separate URLs
  • On the same domain, each alias must be unique
Before using a custom alias, you can check its availability using the Check Alias Availability endpoint.

Request Body

Required Parameters

url
string
required
The original URL to shorten. Must be a valid HTTP or HTTPS URL.Example: https://example.com/very-long-url-with-parameters?foo=bar

Optional Parameters

custom_alias
string
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
Example: my-campaign-link
Use the Check Alias Availability endpoint to verify an alias is available before creating a URL.
name
string
Optional friendly name for the short URL (for your reference).Constraints: 1-255 charactersExample: Q4 Marketing Campaign Link
password
string
Optional 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
Note: Passwords are hashed and stored securely. Cannot be retrieved, only reset.
tags
array
List of tags for categorization.Example: ["marketing", "social"]
expires_at
string
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.000Z
tracking_enabled
boolean
default:true
Whether 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
See Analytics API for retrieving click data.
is_dynamic
boolean
default:false
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.
qrCode
boolean
default:false
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.
qrFormat
string
default:"image"
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

Domain Prerequisite: Before using subdomain or branded URL types, you must first register and verify the domain via the Domains API or through the Dashboard.
url_type
string
default:"standard"
Type of URL to create. Determines the base domain for the short URL.
ValueDescriptionExample URL
standardUses the default connextify.com domainhttps://connextify.com/abc123
subdomainUses your registered subdomain on connextify.comhttps://acme.connextify.com/abc123
brandedUses your own verified branded domainhttps://go.yourbrand.com/abc123
subdomain
string
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
Example: acme (results in https://acme.connextify.com/alias)See List Subdomains to view your registered subdomains.
branded_domain
string
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

campaign_id
string
UUID of a campaign to associate this URL with. Must be a campaign owned by the authenticated user.
Campaigns help organize links and provide aggregate analytics. See Create Campaign to set up a new campaign or List Campaigns to find existing campaign IDs.
utm_template_id
string
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.
utm_source
string
Campaign source (e.g. google, newsletter).
utm_medium
string
Campaign medium (e.g. cpc, email).
utm_campaign
string
Campaign name (e.g. summer_launch).
utm_term
string
Campaign term/keywords (e.g. running_shoes).
utm_content
string
Campaign content variant (e.g. cta_button_blue).
utm_source_platform
string
Source platform sending traffic (e.g. google_ads, meta).
utm_creative_format
string
Creative format (e.g. video, carousel, qr).
utm_marketing_tactic
string
Marketing tactic (e.g. prospecting, retention).
utm_id
string
Campaign or ad identifier.
custom_params
object
Arbitrary key-value attribution or metadata parameters (e.g. {"affiliate_id": "123"}).
start_at
string
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:00Z
pre_launch_action
string
default:"countdown"
Action 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 the pre_launch_fallback_url.
  • custom_html: Renders bespoke HTML/CSS provided in pre_launch_html.
pre_launch_fallback_url
string
Destination URL to redirect visitors to when pre_launch_action is fallback_url.
pre_launch_html
string
Raw HTML snippet to serve to visitors before the activation date when pre_launch_action is custom_html.
click_cap
integer
Maximum total clicks allowed before the link automatically expires. Once this number of visits is reached, subsequent clicks trigger the configured expired_action.Example: 500
is_burner
boolean
default:false
Burn-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.
expired_action
string
default:"default"
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 the expired_fallback_url.
  • waitlist: Renders an interactive lead-capture card where visitors can submit their email address to join a priority waitlist.
expired_fallback_url
string
Fallback destination URL to redirect expired traffic to when expired_action is fallback_url.
waitlist_config
object
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.
expiry_alerts_enabled
boolean
default:false
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.
ios_url
string
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.
android_url
string
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.
windows_url
string
Custom destination URL or Windows Store protocol specifically for Windows desktop and laptop visitors.
mac_url
string
Custom destination URL or Mac App Store URL specifically for macOS desktop and laptop visitors.

Parameter Forwarding & Conversion Tracking

pass_query_params
boolean
default:true
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.
conversions_enabled
boolean
default:false
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

geo_rules
array
Array of country-targeted routing rules based on ISO 3166-1 alpha-2 country codes.
[
  { "country_code": "GB", "destination_url": "https://uk.store.com/item" },
  { "country_code": "DE", "destination_url": "https://de.store.com/item" }
]
language_rules
array
Array of browser language rules based on the visitor’s Accept-Language header.
[
  { "language": "es", "destination_url": "https://example.com/es/landing" },
  { "language": "fr", "destination_url": "https://example.com/fr/landing" }
]
referrer_rules
array
Enterprise traffic-source routing rules based on the incoming Referer domain.
[
  { "source": "instagram.com", "destination_url": "https://example.com/social-special" },
  { "source": "linkedin.com", "destination_url": "https://example.com/b2b-offer" }
]
time_rotation
object
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 with days (0-6), start_time ("HH:MM"), end_time ("HH:MM"), and destination_url.

Retargeting Pixels & Tracking

pixel_ids
array
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_delivery_mode
string
default:"server"
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.
conversions_enabled
boolean
default:false
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

id
string
Unique identifier for the short URL (UUID).
short_code
string
The generated or custom short code.
short_url
string
The complete short URL ready to share.
original_url
string
The original (destination) URL.
name
string
The friendly name (if provided).
custom_alias
string
The custom alias (if provided).
tracking_enabled
boolean
Whether analytics tracking is enabled.
url_type
string
The URL type: standard, subdomain, or branded.
subdomain
string
The subdomain (if url_type is subdomain).
branded_domain
string
The branded domain (if url_type is branded).
expires_at
string
Expiration date (if set).
created_at
string
ISO 8601 timestamp of creation.
channel
string
Creation channel:api, mcp, extension, or bulk_import.
qr_code
string
Base64-encoded PNG data URL of the generated QR code (if qrCode was true).
qr_content
string
The exact URL encoded in the QR code, including the isshortqrscan=1 tracking parameter.
start_at
string
Scheduled activation timestamp (if configured).
click_cap
integer
Maximum allowed click count (if configured).
is_burner
boolean
Whether this link is a single-use burner link.
expired_action
string
Configured expiration action (default, fallback_url, or waitlist).
expired_fallback_url
string
Fallback redirect destination URL for expired traffic.
pre_launch_action
string
Action taken before start_at (countdown, fallback_url, or custom_html).
Whether mobile deep linking is active.
ios_url
string
iOS app destination scheme.
android_url
string
Android app destination scheme.
geo_rules
array
Country-targeted routing rules configured for this link.
language_rules
array
Language-targeted routing rules configured for this link.

Request Examples

curl -X POST "https://connextify.com/api/v1/short-urls" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/very-long-url-with-parameters?foo=bar",
    "custom_alias": "my-link",
    "name": "Marketing Campaign Link",
    "tracking_enabled": true,
    "qrCode": false
  }'

Response Examples

{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "short_code": "my-link",
    "short_url": "https://connextify.com/my-link",
    "original_url": "https://example.com/very-long-url-with-parameters?foo=bar",
    "name": "Marketing Campaign Link",
    "custom_alias": "my-link",
    "tracking_enabled": true,
    "url_type": "standard",
    "subdomain": null,
    "branded_domain": null,
    "expires_at": null,
    "created_at": "2024-01-15T10:30:00.000Z",
    "channel": "api",
    "qr_code": null,
    "qr_content": null
  }
}

Use Cases

Create branded links for campaigns with full analytics tracking:
// First, create a campaign
const campaign = await fetch('https://connextify.com/api/v1/campaigns', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' },
  body: JSON.stringify({ name: 'Summer Sale 2024' })
}).then(r => r.json());

// Then create tracked links for the campaign
const link = await fetch('https://connextify.com/api/v1/short-urls', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' },
  body: JSON.stringify({
    url: 'https://myshop.com/summer-sale',
    custom_alias: 'summer24',
    campaign_id: campaign.data.id,
    tracking_enabled: true
  })
}).then(r => r.json());

// View analytics: /api-reference/analytics/url-overview

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