Skip to main content
POST
https://api.rotavision.com
/
dastavez
/
extract
curl -X POST https://api.rotavision.com/v1/dastavez/extract \
  -H "Authorization: Bearer rv_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "document_type": "aadhaar",
    "file_url": "https://storage.example.com/docs/aadhaar-123.pdf",
    "options": {
      "mask_sensitive": true,
      "extract_photo": true,
      "validate": true
    }
  }'
{
  "id": "extract_abc123",
  "document_type": "aadhaar",
  "status": "completed",
  "confidence": 0.97,
  "fields": {
    "name": "राहुल शर्मा",
    "name_english": "Rahul Sharma",
    "dob": "1990-05-15",
    "gender": "Male",
    "aadhaar_number": "XXXX-XXXX-1234",
    "address": {
      "full": "123, MG Road, Koramangala, Bangalore - 560034",
      "line1": "123, MG Road",
      "line2": "Koramangala",
      "city": "Bangalore",
      "state": "Karnataka",
      "pincode": "560034"
    },
    "issue_date": "2019-03-20"
  },
  "validation": {
    "checksum_valid": true,
    "format_valid": true,
    "verhoeff_check": "pass"
  },
  "photo": {
    "url": "https://storage.rotavision.com/photos/extract_abc123.jpg",
    "expires_at": "2026-02-02T10:30:00Z"
  },
  "metadata": {
    "pages": 1,
    "file_type": "pdf",
    "processing_time_ms": 1250
  },
  "created_at": "2026-02-01T10:30:00Z"
}

Request

document_type
string
required
Type of document:
  • aadhaar - Aadhaar card
  • pan - PAN card
  • voter_id - Voter ID card
  • passport - Indian passport
  • driving_license - Driving license
  • bank_statement - Bank account statement
  • itr - Income Tax Return
  • form_16 - Form 16
  • gst_invoice - GST invoice
  • salary_slip - Salary slip
  • auto - Auto-detect document type
file
file
Document file (multipart upload). Supports PDF, PNG, JPG, TIFF.
file_url
string
URL to document file. Either file or file_url required.
options
object
Extraction options.
webhook_url
string
URL for completion webhook.
curl -X POST https://api.rotavision.com/v1/dastavez/extract \
  -H "Authorization: Bearer rv_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "document_type": "aadhaar",
    "file_url": "https://storage.example.com/docs/aadhaar-123.pdf",
    "options": {
      "mask_sensitive": true,
      "extract_photo": true,
      "validate": true
    }
  }'
{
  "id": "extract_abc123",
  "document_type": "aadhaar",
  "status": "completed",
  "confidence": 0.97,
  "fields": {
    "name": "राहुल शर्मा",
    "name_english": "Rahul Sharma",
    "dob": "1990-05-15",
    "gender": "Male",
    "aadhaar_number": "XXXX-XXXX-1234",
    "address": {
      "full": "123, MG Road, Koramangala, Bangalore - 560034",
      "line1": "123, MG Road",
      "line2": "Koramangala",
      "city": "Bangalore",
      "state": "Karnataka",
      "pincode": "560034"
    },
    "issue_date": "2019-03-20"
  },
  "validation": {
    "checksum_valid": true,
    "format_valid": true,
    "verhoeff_check": "pass"
  },
  "photo": {
    "url": "https://storage.rotavision.com/photos/extract_abc123.jpg",
    "expires_at": "2026-02-02T10:30:00Z"
  },
  "metadata": {
    "pages": 1,
    "file_type": "pdf",
    "processing_time_ms": 1250
  },
  "created_at": "2026-02-01T10:30:00Z"
}