Developers
One call in, a masked file and a record out
No SDK. Send the file with your key, read the JSON. The same contract on the hosted API and inside your own AWS account.
curl -X POST "https://mask-api.habilelabs.io/aadhaar-masking" \
-H "aadhaar-masking-key: <your-api-key>" \
-F "file=@kyc-page.jpg"{
"status": 200,
"downloadUrl": "https://files.habilelabs.io/masked-output/…",
"logs": {
"Page_1": { "is_aadhaar": 1, "is_number_masked": 1, "is_QR_masked": 1 }
},
"totalPages": 1, "maskedPages": 1, "maskingStatus": true
}Routes
The whole API
| POST /aadhaar-masking | Mask a document or a ZIP (multipart field file), or a file in your own storage (JSON of presigned links). Short files answer in the same call; long PDFs and ZIPs answer 202 with a taskId. |
|---|---|
| POST /aadhaar-masking-excel | Replace twelve-digit Aadhaar numbers in Excel cells with XXXXXXXXXXXX. |
| GET /status/{taskId} | Follow a background task; when COMPLETED, a fresh download link. |
| GET /health · /docs · /ui | Liveness, the integration guide and the browser tester. |
- 200 masked, link in the answer
- 202 accepted, poll /status
- 401 no key
- 403 wrong key
- 413 over 100 MB (500 MB for a ZIP)
- 415 / 422 type not masked, or unreadable
- 423 password-protected
Download promptly
The link in the answer expires after an hour; keep the file or the per-page record on your side.
Poll, don't wait
A long PDF or a ZIP answers 202 at once; poll /status every few seconds.
Usage headers
In your own account every answer carries X-Pages-Allowance and X-Pages-Used; GET /usage reports the contract year.
Get started
Need a key, or a stack in your account?
Ask for an API key for the hosted service, or deploy the AWS Marketplace edition and run the same calls against your own endpoint.
Or email support@habilelabs.io · Monday to Friday, 10:00–19:00 IST (excluding public holidays)
