WAuth
  1. 🚀 API Syntax
WAuth
  • ✏️ Introduction
  • 📝 User Journey
  • 🚀 API Syntax
    • Check Verification Status
      GET
    • Init WAuth Session
      GET
  • 🔔 Additional References
    • Webhook Notifications
    • Redirection URL
  1. 🚀 API Syntax

Init WAuth Session

GET
https://wauth.in/api/Init
Init
This endpoint is used to initialize the Login With WhatsApp Session. API Response provides a unique session id,
URL to be embedded behind 'Login With Whatsapp' button ( For App interfaces ) URL to QR code URL ( for Web interfaces )
TIP
If you're adding a 'Login With WhatsApp' button to your website's desktop/laptop interface, we suggest displaying a QR code to the user. You can use the <img> tag to show the QR code URL.

Request

Query Params
apikey
string 
required
Your WAuth.in account API Key
Example:
your_api_key
redirectURL
string 
required
URL for redirecting user on successful verification
Example:
https://your_website/callback.php
callback1
string 
optional
Custom callback value to be added on webhook + rediection url
Example:
token1234
callback2
string 
optional
Custom callback value to be added on webhook + rediection url
Example:
secret4567
callback3
string 
optional
Custom callback value to be added on webhook + rediection url
Example:
token4567

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://wauth.in/api/Init?apikey=your_api_key&redirectURL=https://your_website/callback.php&callback1=token1234&callback2=secret4567&callback3=token4567'

Responses

🟢200Success
application/json
Body
Status
string 
required
sessionId
string 
required
appURL
string 
required
qrURL
string 
required
Example
{
    "Status": "Success",
    "sessionId": "79a600f26a72ab68-SIN",
    "appURL": "https://wauth.in/s/mg",
    "qrURL": "https://wauth.in/s/mZ"
}
🟠400Invalid APIKey
🟠400IP Whitelist Error
🟠400Insufficient Balance
Modified at 2023-02-16 17:45:17
Previous
Check Verification Status
Next
Webhook Notifications
Built with