QR Code Generation
Generate QR codes that link directly to PingRep profiles. Embed them in print materials, conference badges, email signatures, or your own application. QR codes can be returned as PNG or SVG, with full control over colors and scale.
Generate Your QR Code
Create a QR code for the authenticated user's profile.
/api/v1/qr/meGenerate a QR code image for your own profile.
Query Parameters
formatstringOptionalImage format. Either png or svg. Defaults to png.
scalenumberOptionalScale factor from 1 to 20. Higher values produce larger images. Defaults to 5.
include_databooleanOptionalWhen true, returns JSON with URL instead of raw image. Defaults to false.
darkstringOptionalHex color for the dark modules. Defaults to #000000.
lightstringOptionalHex color for the light modules. Defaults to #FFFFFF.
Response
When include_data=false (default), the response is raw binary with the appropriate content type:
Content-Type: image/pngfor PNG formatContent-Type: image/svg+xmlfor SVG format
When include_data=true, the response is JSON:
urlstringRequiredDirect URL to the generated QR code image.
includesDatabooleanRequiredConfirms data mode was used.
Get QR Code URL
Retrieve just the URL for your QR code without downloading the image.
/api/v1/qr/me/urlGet the URL for your profile QR code.
Generate QR for Any Profile
Create a QR code for a specific profile by ID.
/api/v1/qr/{profile_id}Generate a QR code for a specific profile.
Embedding in Applications
For web apps, use SVG format for sharp rendering at any size. For print materials, use PNG at scale=15 or higher. Both formats support custom brand colors through the dark and light parameters.
Brand Colors
Match QR codes to your brand by setting custom colors. The dark parameter controls the QR modules (squares), and the light parameter controls the background. Ensure enough contrast between the two colors for reliable scanning.