Election Affidavit, Marksheet, University Offer Letter — 3 types
Other Documents
These types cover education certificates, election disclosures, and university admissions documents.
election_affidavit — Election Affidavit
Analysis type: extraction
Extracts data from Form 26 self-declarations filed by election candidates, including asset disclosures and criminal case records.
Fields extracted
| Field | Type | Notes |
|---|---|---|
candidate_name | string | Candidate name |
constituency | string | null if not printed |
election_type | string | Lok Sabha, Vidhan Sabha, Municipal etc. |
party_name | string | null if independent or not printed |
age | integer | null if not printed |
pan | string | null if not printed |
profession | string | null if not printed |
education | string | Highest qualification |
spouse_name | string | null if not printed |
filing_date | string | YYYY-MM-DD or null |
total_assets | number | Movable + immovable total or null |
movable_assets | number | null if not broken out |
immovable_assets | number | null if not broken out |
total_liabilities | number | null if not printed |
criminal_cases | object[] | Each: case_number, court, charges, status (pending/convicted/acquitted) |
Validation rules
| Field | Rule |
|---|---|
candidate_name | Required |
pan | Optional · Regex ^[A-Z]{5}[0-9]{4}[A-Z]$ · Format: uppercase · Masked |
Example
const result = await client.verify.document({
doc_type: "election_affidavit",
file_url: "https://storage.example.com/affidavit.pdf",
});
// result.output.candidate_name → "Ramesh Kumar Gupta"
// result.output.election_type → "Vidhan Sabha"
// result.output.total_assets → 12500000
// result.output.criminal_cases → []
marksheet — Marksheet
Analysis type: extraction
Handles school and college marksheets from CBSE, ICSE, state boards, and universities.
Fields extracted
| Field | Type | Notes |
|---|---|---|
student_name | string | Student name |
roll_number | string | null if not printed |
registration_number | string | null if not printed |
institution_name | string | School, college, or university |
board_or_university | string | e.g. CBSE, ICSE, Mumbai University, IIT Delhi |
examination_name | string | e.g. Class X, Class XII, Semester 3, Final Year |
year_of_exam | string | Year or month-year |
date_of_issue | string | YYYY-MM-DD or null |
subjects | object[] | Each: name, marks_obtained, max_marks, grade, grade_point |
total_marks_obtained | number | null if not computed |
total_max_marks | number | null if not computed |
percentage | number | null if not printed |
cgpa | number | null if not applicable |
sgpa | number | null if not applicable |
division | string | First, Second, Third |
result | string | Pass, Fail, Distinction, First Class, Second Class |
Validation rules
| Field | Rule |
|---|---|
student_name | Required |
result | Optional |
Example
const result = await client.verify.document({
doc_type: "marksheet",
file_url: "https://storage.example.com/class12_marksheet.pdf",
});
// result.output.student_name → "Neha Joshi"
// result.output.board_or_university → "CBSE"
// result.output.examination_name → "Class XII"
// result.output.percentage → 91.4
// result.output.result → "Distinction"
// result.output.subjects → [
// { name: "Mathematics", marks_obtained: 98, max_marks: 100 },
// { name: "Physics", marks_obtained: 93, max_marks: 100 }
// ]
university_offer_letter — University Offer Letter
Analysis type: extraction
Extracts admissions details from offer letters issued by universities globally. Handles conditional and unconditional offers, undergraduate and postgraduate programmes.
Fields extracted
| Field | Type | Notes |
|---|---|---|
student_name | string | Student name |
university_name | string | University name |
course_name | string | Full course name (e.g. Master of Science in Computer Science) |
degree_level | string | Bachelors, Masters, PhD, Diploma, Certificate |
department | string | null if not printed |
campus | string | null if not printed |
country | string | null if not printed |
offer_type | string | Unconditional or Conditional |
conditions | string[] | Conditions for conditional offers |
start_date | string | YYYY-MM-DD — programme start date |
end_date | string | YYYY-MM-DD or null |
duration | string | e.g. 2 years, 4 semesters |
application_id | string | Student / application reference number |
tuition_fee | number | null if not printed |
fee_currency | string | GBP, USD, EUR, INR, AUD etc. |
scholarship | string | Scholarship details if mentioned |
acceptance_deadline | string | YYYY-MM-DD or null |
issuing_authority | string | Dean, Admissions Office, Registrar |
Validation rules
| Field | Rule |
|---|---|
student_name | Required |
university_name | Required |
course_name | Required |
Example
const result = await client.verify.document({
doc_type: "university_offer_letter",
file_url: "https://storage.example.com/offer_letter.pdf",
});
// result.output.student_name → "Arjun Nair"
// result.output.university_name → "University of Edinburgh"
// result.output.course_name → "Master of Science in Artificial Intelligence"
// result.output.degree_level → "Masters"
// result.output.offer_type → "Conditional"
// result.output.conditions → ["Minimum 70% in final year exams", "IELTS 6.5 or above"]
// result.output.start_date → "2026-09-15"
// result.output.tuition_fee → 29600
// result.output.fee_currency → "GBP"