This guide gets you from zero to your first shortened link and dynamic QR code. All you need is an API key and a terminal or HTTP client.
1. Grab your API key
All requests use Bearer authentication.
Save your key securely
Copy the key string (prefixed with connextify_). Store it in an environment variable (CONNEXTIFY_API_KEY) on your server.
Never ship your API key in browser bundles, mobile client apps, or public Git repos. Always proxy API calls through your backend.
2. Shorten your first link
Let’s turn a long URL into a trackable short link with a custom alias.
cURL
Node.js
Python
TypeScript
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/blog/how-we-scaled-postgres-to-100m-rows?ref=producthunt",
"custom_alias": "scaling-postgres",
"tracking_enabled": true
}'
What you get back
{
"success" : true ,
"data" : {
"id" : "550e8400-e29b-41d4-a716-446655440000" ,
"short_code" : "scaling-postgres" ,
"short_url" : "https://cnfy.link/scaling-postgres" ,
"original_url" : "https://example.com/blog/how-we-scaled-postgres-to-100m-rows?ref=producthunt" ,
"custom_alias" : "scaling-postgres" ,
"created_at" : "2026-03-15T10:30:00Z" ,
"tracking_enabled" : true ,
"url_type" : "standard" ,
"click_count" : 0
}
}
Open https://cnfy.link/scaling-postgres in your browser. It redirects instantly to your target URL and increments the click counter.
3. Generate a styled QR code
QR codes can point directly to any URL or to one of your short links. When set to is_dynamic: true, you can update the destination URL later without reprinting the code.
curl -X POST https://connextify.com/api/v1/qr-codes/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_type": "url",
"content_data": {
"url": "https://cnfy.link/scaling-postgres"
},
"visual_settings": {
"foregroundColor": "#0F766E",
"backgroundColor": "#FFFFFF",
"size": 400,
"margin": 2
},
"is_dynamic": true,
"tracking_enabled": true
}'
Response
The response includes qr_code_data formatted as a base64 Data URL (data:image/png;base64,...) that you can feed straight into an <img src> attribute or save to disk:
{
"success" : true ,
"data" : {
"id" : "qr_123456789" ,
"content" : "https://cnfy.link/scaling-postgres" ,
"qr_code_data" : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..." ,
"content_type" : "url" ,
"visual_settings" : {
"foregroundColor" : "#0F766E" ,
"backgroundColor" : "#FFFFFF" ,
"size" : 400
},
"tracking_enabled" : true ,
"is_dynamic" : true
}
}
Where to go from here
Authentication & Workspaces Manage API keys, Bearer auth, and Team Workspace headers.
Rate Limits Review tier allowances and retry handling strategies.
Error Handling Inspect standard error codes and validation payloads.
Click Analytics Query visitor geography, device types, and referrers.