---
title: "Login user with QR-base64"
method: GET
path: "/users/login"
tags: ["Users"]
---

# Login user with QR-base64

`GET /users/login`

This method returns an image of the type base64. You can render this in a component of the type image that is compatible with the language that you use to program. Just like on WhatsApp Web you will need to read a QR code to connect to Whapi.Cloud. There are two ways that you can do the reading of the QR code. Connect through our dashboard panel or Make this experience available within your own application.

## Query parameters

- `wakeup` boolean
- `size` number
- `width` number
- `height` number
- `color_light` string
- `color_dark` string

## Response `200`

OK

- QR — The QR code object contains the QR code image and the status of the QR code. The QR code is only valid for a limited time. Sent on event "channels.patch"
  - `status` 'OK' | 'TIMEOUT' | 'WAITING' | 'ERROR', required — Status of the QR code
  - `type` 'qr' | 'code' | 'webauthn' — Login challenge type. QR means scan rowdata/base64, code means enter code on the phone, webauthn means complete the passkey assertion.
  - `base64` string — Base64 encoded login image
  - `rowdata` string — Rowdata for generating the QR code
  - `code` string — Passkey verification code to enter on the phone
  - `request_id` string — Pending passkey request id. Send the WebAuthn response back for the same request.
  - `public_key` object — PublicKeyCredentialRequestOptions JSON for navigator.credentials.get({ publicKey }).
  - `url` string — Origin that must be used for the WebAuthn ceremony.
  - `console_script` string — Browser console helper that runs navigator.credentials.get on the required origin and prints the response JSON.
  - `expire` number — Seconds until the login challenge expires

## Other responses

- `406` — Not acceptable for mobile type channel
- `409` — Channel already authenticated
- `422` — Render QR failed
- `500` — Internal Error

---

[API](https://skmtc.dev/whapi/apis/whatsapp-api.md) · [All operations](https://skmtc.dev/whapi/apis/whatsapp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/whapi/whatsapp-api/revisions/40ab05abffdb/schema)
