GET
/
short-urls
/
qr-code
Get QR Code for Short URL
curl --request GET \
  --url https://connextify.com/api/v1/short-urls/qr-code \
  --header 'Authorization: Bearer <token>'
Returns a PNG QR code image pointing to an existing short URL. The generator automatically appends ?isshortqrscan=1 to the encoded link so your analytics dashboard can distinguish between regular link clicks and physical QR code scans. You can look up the QR code using either the full short URL or the shortCode slug.

Query parameters

shortCode
string
The slug or alias of the short URL (e.g. summer-sale or pIh55o).
url
string
The complete short link (e.g. https://cnfy.link/summer-sale). Used if shortCode is not provided.
url_type
string
default:"standard"
The domain style: standard (cnfy.link), subdomain, or branded.
subdomain
string
The subdomain name if url_type is set to subdomain (e.g. promo).
branded_domain
string
The custom domain if url_type is set to branded (e.g. link.mybrand.com).
format
string
default:"png"
Optional response format override:
  • png (default for REST API & browser): Binary image/png image bytes
  • json: JSON payload with data.qr_code_data (data:image/png;base64,...) and data.content
  • image (default for MCP): Native Image Block ({ content: [{ type: "image", ... }, { type: "text", ... }] })

Response

Returns binary image data with header:
Content-Type: image/png

Examples

# Standard cnfy.link QR
curl -X GET "https://connextify.com/api/v1/short-urls/qr-code?shortCode=summer-sale" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --output qr-summer-sale.png

# Custom branded domain QR
curl -X GET "https://connextify.com/api/v1/short-urls/qr-code?shortCode=summer-sale&url_type=branded&branded_domain=link.mybrand.com" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --output qr-branded.png
Scan telemetry: The encoded link inside the QR code includes isshortqrscan=1. When scanned with a smartphone camera, the redirect router flags the hit as a QR scan rather than a web browser click.

Create Short URL

Create a new short link with an auto-generated QR code →

Generate Custom QR

Create fully styled QR codes with colors, logos, and custom frames →