StampMitraDevelopers
LiveVerification API

Verify Driving Licence

Verify a Driving Licence in real time.

Pricing, how it works and related APIs: Driving Licence product page. Integrate with AI: copy the ready-made prompt. Markdown version: driving-license.md.

Endpoint

POST /v1/verify/driving-license

POST/v1/verify/driving-licenseScope verification.dl.read₹5 per successful callLive

Validates and verifies a Driving Licence. Requires the verification.dl.read scope on the API key. Metered as dl.verify after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by /v1/verify/driving-license, including its referenceId field.

Request

Request parameters

Request parameters
FieldTypeDescription
AuthorizationrequiredheaderBearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted.
dlNumberrequiredstringDriving licence number.
dobrequiredstringDate of birth (YYYY-MM-DD).
Example

Make the call

curl -X POST "https://api-b2b.stampmitra.in/v1/verify/driving-license" \
  -H "Authorization: Bearer sk_test_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"dlNumber":"MH1420110012345","dob":"1990-01-01"}'
Playground

Try it

Response

Response example

ResponseJSON
{
  "referenceId": "SMV-20260927-2Q56T8",
  "verificationId": "VRF-4H8Z2M6TQ9KW",
  "valid": true,
  "dlNumber": "KA51201900089895",
  "dob": "1994-08-05",
  "status": "VALID",
  "dlStatus": "VALID",
  "name": "JOHN DOE",
  "fatherOrHusbandName": "JOHN DOE",
  "address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
  "validUpto": "09/05/2039",
  "badgeDetails": [
    {
      "badgeIssueDate": null,
      "badgeNo": null,
      "classOfVehicle": [
        "LMV"
      ]
    }
  ],
  "dlValidity": {
    "nonTransport": {
      "to": "09/05/2039",
      "from": "10/05/2019"
    },
    "hazardousValidTill": null,
    "transport": {
      "to": null,
      "from": null
    },
    "hillValidTill": null
  },
  "detailsOfDrivingLicence": {
    "dateOfIssue": "10/05/2019",
    "dateOfLastTransaction": null,
    "status": null,
    "lastTransactedAt": null,
    "name": "JOHN DOE",
    "fatherOrHusbandName": "JOHN DOE",
    "addressList": [
      {
        "completeAddress": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
        "type": "permanent",
        "splitAddress": {
          "district": [
            "BANGALORE"
          ],
          "state": [
            "KARNATAKA",
            "KA"
          ],
          "city": [
            "BELLANDUR"
          ],
          "pincode": "560103",
          "country": [
            "IN",
            "IND",
            "INDIA"
          ],
          "addressLine": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
        }
      },
      {
        "completeAddress": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
        "type": "temporary",
        "splitAddress": {
          "district": [
            "BANGALORE"
          ],
          "state": [
            "KARNATAKA",
            "KA"
          ],
          "city": [
            "BELLANDUR"
          ],
          "pincode": "560103",
          "country": [
            "IN",
            "IND",
            "INDIA"
          ],
          "addressLine": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
        }
      }
    ],
    "address": "FLAT NO D-901 SUN,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103",
    "photoUrl": "https://example.com/dl-photos/KA51201900089895.jpeg",
    "splitAddress": {
      "district": [
        "BANGALORE"
      ],
      "state": [
        ""
      ],
      "city": [
        "BELLANDUR"
      ],
      "pincode": "560103",
      "country": [
        "IN",
        "IND",
        "INDIA"
      ],
      "addressLine": "FLAT NO D-901 SUNCITY,BELLANDUR, BANGALORE SOUTH,BANGALORE,KA 560103"
    },
    "covDetails": []
  }
}
Response fields
FieldTypeDescription
referenceIdstringStampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result.
verificationIdstringStampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests.
validbooleanWhether the driving licence is valid. Always present.
dlNumberstringThe driving licence number that was looked up.
dobstringThe licence holder's date of birth, ISO yyyy-mm-dd.
statusstringOutcome of the lookup: VALID or INVALID.
dlStatusstringSame value as status. Kept so existing integrations keep working.
namestringThe licence holder's registered name. Same as detailsOfDrivingLicence.name. Kept for existing integrations.
fatherOrHusbandNamestringName of the holder's father or husband. Same as detailsOfDrivingLicence.fatherOrHusbandName. Kept for existing integrations.
addressstringThe registered address as one string. Same as detailsOfDrivingLicence.address. Kept for existing integrations.
validUptostringEnd of validity of the non-transport classes, a date string exactly as supplied (dd/mm/yyyy in the example). Same as dlValidity.nonTransport.to. Kept for existing integrations.
badgeDetailsarray or nullTransport badge details and the classes of vehicle covered. null when the record carries no badge block.
badgeDetails[].badgeIssueDatestring or nullDate the transport badge was issued, as supplied. null when the licence has no badge.
badgeDetails[].badgeNostring or nullTransport badge number. null when the licence has no badge.
badgeDetails[].classOfVehiclearray of string or nullClasses of vehicle the licence covers, for example LMV.
dlValidityobject or nullValidity periods of the licence by class: non-transport, transport, hazardous goods and hill area.
dlValidity.nonTransportobject or nullValidity of the non-transport (private vehicle) classes.
dlValidity.nonTransport.tostring or nullEnd of the validity period, a date string exactly as supplied (dd/mm/yyyy in the example). null when the class does not apply.
dlValidity.nonTransport.fromstring or nullStart of the validity period, a date string exactly as supplied (dd/mm/yyyy in the example). null when the class does not apply.
dlValidity.hazardousValidTillstring or nullValidity end for hazardous-goods vehicles, as supplied. null when not applicable.
dlValidity.transportobject or nullValidity of the transport (commercial vehicle) classes. Both dates are null when the licence has no transport class.
dlValidity.transport.tostring or nullEnd of the validity period, as supplied. null when the licence has no transport class.
dlValidity.transport.fromstring or nullStart of the validity period, as supplied. null when the licence has no transport class.
dlValidity.hillValidTillstring or nullValidity end for hill-area driving, as supplied. null when not applicable.
detailsOfDrivingLicenceobject or nullDetails held on the licence record: issue date, holder names, addresses, photograph link and class-of-vehicle details.
detailsOfDrivingLicence.dateOfIssuestring or nullDate the licence was issued, a date string exactly as supplied (dd/mm/yyyy in the example).
detailsOfDrivingLicence.dateOfLastTransactionstring or nullDate of the last transaction on the licence record, as supplied. null when there is none.
detailsOfDrivingLicence.statusstring or nullStatus text on the licence record. null when the record carries none.
detailsOfDrivingLicence.lastTransactedAtstring or nullOffice where the last transaction was made. null when there is none.
detailsOfDrivingLicence.namestring or nullName of the licence holder.
detailsOfDrivingLicence.fatherOrHusbandNamestring or nullName of the holder's father or husband.
detailsOfDrivingLicence.addressListarray or nullAddresses on record, each with its type (permanent or temporary).
detailsOfDrivingLicence.addressList[].completeAddressstring or nullThe complete address as one string.
detailsOfDrivingLicence.addressList[].typestring or nullAddress type: permanent or temporary.
detailsOfDrivingLicence.addressList[].splitAddressobject or nullThe same address split into parts.
detailsOfDrivingLicence.addressList[].splitAddress.districtarray of string or nullDistrict name(s).
detailsOfDrivingLicence.addressList[].splitAddress.statearray of string or nullState name and code as one flat list. Can be [""] when the record carries no state.
detailsOfDrivingLicence.addressList[].splitAddress.cityarray of string or nullCity or locality name(s).
detailsOfDrivingLicence.addressList[].splitAddress.pincodestring or nullSix-digit PIN code.
detailsOfDrivingLicence.addressList[].splitAddress.countryarray of string or nullCountry code(s) and name.
detailsOfDrivingLicence.addressList[].splitAddress.addressLinestring or nullThe address as one line.
detailsOfDrivingLicence.addressstring or nullThe holder address as one string.
detailsOfDrivingLicence.photoUrlstring or nullA link to the licence holder photograph (a URL, never image data). The link is temporary: download the image promptly if you need it.
detailsOfDrivingLicence.splitAddressobject or nullThe holder address split into parts.
detailsOfDrivingLicence.splitAddress.districtarray of string or nullDistrict name(s).
detailsOfDrivingLicence.splitAddress.statearray of string or nullState name and code as one flat list. Can be [""] when the record carries no state.
detailsOfDrivingLicence.splitAddress.cityarray of string or nullCity or locality name(s).
detailsOfDrivingLicence.splitAddress.pincodestring or nullSix-digit PIN code.
detailsOfDrivingLicence.splitAddress.countryarray of string or nullCountry code(s) and name.
detailsOfDrivingLicence.splitAddress.addressLinestring or nullThe address as one line.
detailsOfDrivingLicence.covDetailsarray or nullClass-of-vehicle detail entries when the record carries any; an empty list otherwise.
Errors

Error responses

401Missing or invalid API key
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Missing or invalid API key.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
403Valid key, missing required scope
{
  "error": {
    "code": "FORBIDDEN",
    "message": "API key is valid but lacks the required scope for this endpoint.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
400Validation error
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "dlNumber must match the format MH1420110012345",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
402Insufficient wallet balance
{
  "error": {
    "code": "PAYMENT_REQUIRED",
    "message": "Insufficient fulfilment wallet balance to cover this call.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
429Rate limited
{
  "error": {
    "code": "TOO_MANY_REQUESTS",
    "message": "Rate limit exceeded: 60 requests per 60 seconds for this endpoint.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
502Upstream verification service unreachable
{
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Unable to reach the order/customer service right now",
    "requestId": "5c1c1e9e-2f7b-4b7a-9b0e-0f1a2b3c4d5e"
  }
}
Notes

Good to know

Note

Input format is validated up front - a malformed pan/gstin/etc. fails fast with a 400 rather than being submitted for verification. referenceId (format SMV-YYYYMMDD-XXXXXXX) is StampMitra's own transaction id for this call and is always present, including on a negative (valid: false / found: false) result - both positive and negative determinations are completed, billable verifications. This is not an idempotency key. verificationId (format VRF-XXXXXXXXXXXX) is StampMitra's own id for this verification, generated for every call; quote it in support requests. Every field except referenceId, verificationId and valid is optional and is omitted when the licensing data does not provide it; a value the licensing data holds as null (no badge, no transport class, no last transaction) is returned as null. validUpto, dlValidity and dateOfIssue are date strings exactly as supplied (dd/mm/yyyy in the example), so parse them defensively; dob is ISO yyyy-mm-dd. status and dlStatus carry the same value, and name, fatherOrHusbandName, address and validUpto repeat values from detailsOfDrivingLicence and dlValidity and are kept for existing integrations. photoUrl is a link to the holder photograph and is temporary.