apyhub
DATA VALIDATION · HR

Validate Aadhaar API

Hosted on ApyHub

What it does

Aadhaar Number Validator checks whether a 12-digit Aadhaar number is valid. Send an aadhaar string in the request body, and it returns a boolean data field indicating the result.

Use it when you need a fast identity check in onboarding, KYC workflows, customer support tools, or admin dashboards. The request schema is simple: numeric digits only, with no spaces or separators. The response is equally direct, so you can plug the result into form validation, submission gating, or downstream verification logic without extra parsing.

Aadhaar Number Validator is a good fit anywhere you need to reject malformed input before it reaches a larger verification process. Because the output is just true or false, it is easy to combine with your own business rules and error messaging.

If you are collecting Indian identity details, this endpoint gives you a lightweight validation step that is easy to automate and easy to interpret.

POST
Validate an Aadhaar number
http://localhost:8080/apyhub/validate-aadhaar-number
QUICKSTARTGUIDE

Quickstart

Validate a 12-digit Aadhaar number by sending it in a JSON body.

curl -X POST "http://localhost:8080/apyhub/validate-aadhaar-number" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"aadhaar":"568095088801"}'

What you'll get back

Returns a JSON object with a data boolean field — true when the Aadhaar number is valid, false otherwise.

{
  "data": true
}
TRY ITLIVE · 5 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
12-digit Aadhaar number (numeric digits only).

About this endpoint

What it does

Validates an Aadhaar number sent in the request body. The response returns a JSON object containing a data boolean that indicates whether the Aadhaar number is valid.

Request Body

ParameterTypeMandatoryDescription
aadhaarStringYes12-digit Aadhaar number, numeric digits only.

Response

Returns a JSON object with a data boolean field. true indicates the Aadhaar number is valid; false indicates it is not.

ParameterTypeMandatoryDescription
dataBooleanYesValidation result for the Aadhaar number.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.