Init WAuth Session
GET
https://wauth.in/api/Init?apikey=your_api_keyThis 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
Responses
Success(200)
Invalid APIKey(400)
IP Whitelist Error(400)
Insufficient Balance(400)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
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"
}
Last modified: 2 years ago