Wawp’s Authentication & Login endpoints are designed to make device onboarding and re-authentication fast, secure, and developer-friendly.They expose both QR-based and phone-based flows so integrators can support a wide range of user journeys.You can simulate the WhatsApp login experience.
By offering two QR formats (raw bytes + metadata and a data-URI image), Wawp lets client apps choose the most convenient rendering path: native image widgets, in-memory display, or storage for audit/logging.The requestCode route provides a fallback for phone-based authentication flows where scanning isn’t practical, enabling OTP-based re-linking.From a UX standpoint, these endpoints are optimized to reduce friction: micro-caching on safe GETs speeds repeated status checks without sacrificing freshness; clear, consistent error codes make it trivial to show actionable messages (e.g., invalid_instance, invalid_access_token, wawp_upstream_error).
getQr includes a non-cached response header and a raw mode so apps that must preserve the binary payload (for offline or high-quality rendering) can do so safely.getScreenshot returns a base64-encoded image and explicit mime-type so UIs can render immediately or store securely.