Skip to main content
GET
/
v1
/
session
/
qr
curl -X GET https://api.livchat.ai/v1/session/qr \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "code": 200,
  "data": {
    "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEA..."
  }
}
Get the QR code to scan with WhatsApp for session pairing. The session must be connected but not logged in.

Prerequisites

  1. Call /session/connect first
  2. Check /session/status returns connected: true and loggedIn: false

Response Fields

data.qrCode
string
Base64-encoded PNG image in data URI format (data:image/png;base64,...)
curl -X GET https://api.livchat.ai/v1/session/qr \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "code": 200,
  "data": {
    "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEA..."
  }
}
QR codes expire after approximately 60 seconds. Request a new one if it expires.