WhatsApp KYC
Starts a KYC journey in WhatsApp from your business number, verifies each step as the customer completes it and returns all results and the consent record.
- Source
- WhatsApp Business Platform for messaging, plus our verification APIs for each step
- Turnaround
- Depends on the customer; usually a few minutes. Results by webhook
- Endpoint
- POST /v1/whatsapp-kyc/start
- Who can use it
- Businesses with a WhatsApp Business API number and Meta-approved message templates.
Overview
Many customers won't download an app or finish a long web form, but they will reply on WhatsApp. WhatsApp KYC sends the customer a message from your business number and walks them through the steps you choose: consent, PAN, DigiLocker or document upload, selfie. Each step is verified as they go and you get the full result, with the consent record, at the end.
Good to know
Customers must have WhatsApp on the number you have. The chat is only as strong as the checks you include in the journey.
What you get
- Chat-based stepsShort messages and buttons, one step at a time, in the language the customer picks.
- Your business numberMessages come from your verified WhatsApp Business number, not ours.
- Verified as they goPAN, DigiLocker, face match and other checks run as each step completes.
- Consent on recordThe consent message and the customer's reply are time-stamped and stored.
Request
POST https://api.ampletrails.com/v1/whatsapp-kyc/start
| Field | Type | Status | Description |
|---|---|---|---|
mobile | string | Required | Customer's WhatsApp number |
journey_id | string | Required | KYC journey to run (which checks, in what order) |
reference_id | string | Optional | Your customer or application ID |
callback_url | string | Optional | Webhook for completion |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
session_id | WhatsApp KYC session identifier | wk_31a8e0 |
status | Session status (sent, in_progress, completed, abandoned) | sent |
completed_checks | Checks finished so far | ["consent","pan"] |
results | Verification results per check once complete | {…} |
consent_record | Timestamped consent captured in the chat | {…} |
Example
curl -X POST https://api.ampletrails.com/v1/whatsapp-kyc/start \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mobile": "9876543210", "journey_id": "pan_aadhaar_selfie", "reference_id": "CUST-88412", "callback_url": "https://example.com/webhooks/kyc"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/whatsapp-kyc/start",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"mobile": "9876543210",
"journey_id": "pan_aadhaar_selfie",
"reference_id": "CUST-88412",
"callback_url": "https://example.com/webhooks/kyc"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/whatsapp-kyc/start", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"mobile": "9876543210",
"journey_id": "pan_aadhaar_selfie",
"reference_id": "CUST-88412",
"callback_url": "https://example.com/webhooks/kyc"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/whatsapp-kyc/start");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["mobile" => "9876543210", "journey_id" => "pan_aadhaar_selfie", "reference_id" => "CUST-88412", "callback_url" => "https://example.com/webhooks/kyc"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"session_id": "wk_31a8e0",
"status": "sent",
"completed_checks": "[\"consent\",\"pan\"]",
"results": "{…}",
"consent_record": "{…}"
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Re-KYC of existing customers
Ask customers due for periodic KYC update to complete it in a chat.
Field and rural onboarding
Customers with basic smartphones finish KYC on the app they already use.
Dealer and agent onboarding
Collect and verify documents from distributors without visits.
Questions about this API
Do we need a WhatsApp Business API account?
Yes, messages go from your number. If you don't have one we can set it up through our WhatsApp Business API service.
What if the customer stops halfway?
The session stays open for a set time and you can send a reminder template. Completed steps are saved.
Is WhatsApp KYC enough for regulated KYC?
It depends on the checks in the journey and your regulator. For RBI full KYC you may still need V-CIP or another accepted method. We'll help you map it.
Which languages are supported?
English and Hindi out of the box, and other Indian languages using your approved templates.
Try the WhatsApp KYC API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.