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

Check Verification Status

GET
https://wauth.in/api/verify
This endpoint checks whether the user verification was successful against a specific session id.
Endpoint is particularly useful if you are implementing the verification on a web interface ( using QR display approach )
TIP
Using the VERIFY endpoint is optional. You may also make use of the following two approaches:
1.
WAuth sends a webhook request to the callback URL configured against your API Account. We pass Verification session ID, user's name, user's WhatsApp number, and custom callback parameters on the webhook URL for you to locally update the verification status and redirect the user accordingly.
2.
WAuth also supports redirection URL, using which the user can be redirected to your app screen/web URL (on mobile phones). We can also append session ID, user's name, user's WhatsApp number, and custom callback parameters on the redirection URL. You may use a custom callback parameter as a secret token to enable login for the user.

Request

Query Params
apikey
string 
optional
Your WAuth.in account API Key
Example:
your_api_key
sessionId
string 
optional
Unique verification session id
Example:
79a63a2d18b06c65-SIN

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/verify?apikey=your_api_key&sessionId=79a63a2d18b06c65-SIN'

Responses

🟢200Success
application/json
Body
status
string 
required
waName
string 
required
waNumber
string 
required
callback1
string 
required
callback2
string 
required
callback3
string 
required
creditsCharged
string 
required
Example
{
  "status": "Verified",
  "waName": "John Doe",
  "waNumber": "914444444444",
  "callback1": "token1234",
  "callback2": "",
  "callback3": "",
  "creditsCharged": "0000000000.1"
}
🟠400IP Whitelist Error
🟠400Invalid SessionId Or Already Verified
Modified at 2023-02-19 10:57:22
Previous
📝 User Journey
Next
Init WAuth Session
Built with