QR Code Generation
Generate QR codes for verification links that can be emailed or printed for easy mobile access.
Use Case
The QR Code endpoint allows you to generate a scannable QR code image for a verification that has been created but not yet started. This is useful for:
Email Invitations
Embed QR codes in emails so recipients can scan and start verification on their phone
Mobile Handoff
Start verification on desktop, scan QR to continue on mobile with camera access
Printed Materials
Include QR codes in physical documents or kiosks for in-person verification
State Validation
QR codes can only be generated for verifications in the generated state. Once a user has started the verification, this endpoint will return an error to prevent QR code generation for in-progress or completed verifications.
Typical Workflow
Generate Verification
POST /api/generate-verification
Returns verification_id
Get QR Code
GET /api/get-verification-qrcode/{id}
Returns PNG image
Send to User
Email, display, or print
User scans to start
User Verifies
Scans QR → Mobile browser
Verification begins
Endpoint Reference
/api/get-verification-qrcode/{verification_id}Generates a QR code image containing the verification URL. The QR code points to the verification portal where the user can begin their verification process.
Request Headers
Path Parameters
Success Response
The response is a PNG image (400x400 pixels) containing:
- QR code encoding the verification URL
- Error correction level: M (15%)
- 2px margin
State Requirement
The verification must be in generated state. If the verification has already been started, is in progress, completed, or expired, the endpoint returns a 409 Conflict error.
Error Responses
400Missing verification_id in path
404Verification does not exist
409Verification is not in 'generated' state
500No API key configured or internal error