Generate QR Code
Core Endpoints
Generate QR Code
Generate a new QR code with customizable settings
POST
Generate QR Code
Generate a new QR code with various content types and visual customization options. Dynamic QR codes can have their destination changed later, while static QR codes encode the content directly.
Dynamic vs Static QR Codes
- Dynamic: Creates a short URL that redirects to your content. You can change the destination later without reprinting the QR code.
- Static: Encodes the content directly into the QR code. Cannot be changed after creation.
is_dynamic or tracking_enabled is true, a short URL is automatically created for the QR code.Body Parameters
Type of content to encode.Options:
url, text, wifi, vcard, email, phone, sms, locationContent data object. Structure depends on
content_type.Visual customization options for the QR code appearance.
Whether to create a dynamic QR code (destination can be changed later).When
true, creates an associated short URL for redirection.Whether to enable scan tracking and analytics.When
true, creates an associated short URL for tracking scans. View analytics using the QR Analytics endpoints.Friendly name for the QR code (for organization purposes).
Password to protect the QR code content. Users will be prompted to enter this password before accessing the destination.
Optional. The Marketing Campaign UUID to associate this QR code with.
ISO 8601 timestamp when the QR code should expire.Example:
2024-12-31T23:59:59ZAlternative to
expires_at. ISO 8601 date string for expiration.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 QR code’s destination URL.
Campaign source (e.g.
google, newsletter).Campaign medium (e.g.
print, qrcode).Campaign name (e.g.
summer_promo).Campaign term/keywords (e.g.
organic).Campaign content/ad variant (e.g.
flyer_v1).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"}).Mobile & Desktop Deep Linking
Enables intelligent OS detection and app scheme routing for printed QR scans. Automatically inspects 21+ supported platforms (YouTube, Spotify, Apple Music, TikTok, Instagram, Twitter/X, Discord, Twitch, etc.) and transforms web URLs into native mobile protocols (
intent:// or custom URI schemes) on mobile devices.Custom app scheme or App Store URL for iOS scanners (e.g.
myapp://products/shoes or https://apps.apple.com/app/id123456789). Overrides standard destination on iPhone and iPad scanners.Custom app scheme, Intent URI, or Google Play Store URL for Android scanners (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 scanners.Custom destination URL for Windows desktop scanners.
Custom destination URL for macOS desktop scanners.
Parameter Forwarding & Routing
Whether to forward query parameters to the destination URL when the QR code is scanned. Preserves UTM parameters and tracking tags on outgoing destination links.
Array of country-targeted routing rules based on ISO 3166-1 alpha-2 country codes.
Array of browser language rules based on scanner
Accept-Language headers.Dayparting and schedule rotation settings (
enabled, timezone, timezone_mode, fallback_url, rules). Allows physical QR codes on restaurant menus or storefronts to route to breakfast, lunch, or dinner menus depending on scan time.Retargeting Pixels & Tracking
Array of UUIDs of saved pixel profiles (created via the Pixels API). Attaching pixel IDs automatically provisions a dynamic short URL bridge. When physical flyers, packaging, or billboards are scanned, visitors are added to your Meta, Google, TikTok, or LinkedIn ad audiences.
Delivery mode for pixel events:
server: Server-Side CAPI (0ms redirect delay, immune to mobile ad blockers).client: Browser interstitial (renders a brief 250ms page to fire browser scripts).
When
true, presents an interactive GDPR cookie consent card before firing client-side tracking pixels upon QR scan.Whether closed-loop conversion tracking is active for this QR code. Scans receive a cryptographically signed
cnfy_click_id token for post-scan website event attribution and CAPI relays.Base64-encoded logo image to overlay on the QR code. Must start with
data:image/.Example: data:image/png;base64,iVBORw0KGgo...Optional response format override for the generated QR code (you can also pass
?format=json or ?format=image as a query parameter):Options:json(default for REST API): Returns standard JSON ({ success: true, data: { ... } }) withqr_code_dataas a base64 PNG data URLimage(default for MCP): Returns a Native Image Block ({ content: [{ type: "image", ... }, { type: "text", ... }] })
Response Formats
REST API requests return standard JSON by default ({ success: true, data: { ... } }). You can optionally pass ?format=image (or output_format: "image" in the request body) to receive a Native Image Block instead (the default format when calling via MCP).
- JSON Format (Default)
- Native Image Block (Optional / MCP Default)
Request Examples
- cURL
- Node.js
- TypeScript
- Python
- PHP
- Go
- Java
Response Examples
- 200 Success
- 400 Missing Field
- 400 Invalid Input
Use Cases
Create a WiFi QR Code
Create a WiFi QR Code
Generate a QR code that allows users to connect to a WiFi network by scanning.
Create a Contact vCard QR
Create a Contact vCard QR
Generate a QR code that adds contact information to a phone’s address book.
Password-Protected QR Code
Password-Protected QR Code
Create a QR code that requires a password before revealing the content.
Create QR with Custom Logo
Create QR with Custom Logo
Generate a branded QR code with your company logo in the center.
Related Endpoints
List QR Codes
View all your generated QR codes
Get QR Code
Retrieve a specific QR code by ID
Update QR Code
Update dynamic QR code settings
QR Analytics Overview
View scan analytics for your QR codes