Sign in to grab your API key — or create a free account. Sign In Get Started

Driving License Text and PDF Code Examples

General
POST /api/v1/driving-license/text-pdf Bearer

Ready-to-run Driving License Text and PDF calls. Replace YOUR_API_KEY with the key from your dashboard.

Driving License Text and PDF — Code Samples

cURL
PHP
Fetch
jQuery
Axios
Python
curl -X POST https://app.way2api.com/api/v1/driving-license/text-pdf \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"dl_number":"MH0320140001234","dob":"15/06/1992"}'

Expected Response — 200

{
    "status": "SUCCESS",
    "status_code": 200,
    "charged": true,
    "success": true,
    "message": "",
    "message_code": "OK",
    "order_id": "W2A1739512345abcdef01",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "result": {
            "license_number": "MH0320140001234",
            "state": "Maharashtra",
            "name": "PRIYA PATEL",
            "father_or_husband_name": "MAHESH PATEL",
            "dob": "1992-06-15",
            "gender": "F",
            "blood_group": "B+",
            "citizenship": "",
            "permanent_address": "42 MG ROAD, PUNE, MAHARASHTRA",
            "permanent_zip": "411001",
            "temporary_address": "42 MG ROAD, PUNE, MAHARASHTRA",
            "temporary_zip": "411001",
            "city_name": "PUNE",
            "ola_name": "RTO PUNE",
            "ola_code": "MH032",
            "doi": "2014-08-11",
            "doe": "2034-08-10",
            "initial_doi": "2014-08-11",
            "transport_doi": "1800-01-01",
            "transport_doe": "1800-01-01",
            "vehicle_classes": [
                "MCWG",
                "LMV-NT"
            ],
            "has_image": true,
            "profile_image": "/9j/4AAQSkZJRgABAQAAAQABAAD__gATQ3JlYXRlZCB3aXRoIEdJTVA...",
            "less_info": false,
            "pdf_url": "https://docs.example-renderer.com/upload/dl2_1786426531_70e7ff519ee00a12.pdf"
        }
    }
}