Lekha API
v0.1.0Parse Indian bank statement PDFs into balance-checked transactions (Kotak, SBI, Indian Bank, more).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
parse_statement
Parse a bank statement PDF on this computer into transactions. Args: pdf_path: Path to the statement PDF (as downloaded from net banking or emailed by the bank; scans don't work). password: The PDF's password, if it is encrypted. Indian banks often use a mix of name and date of birth. save_to: Optional path ending in .json (full statement) or .csv (transactions only), for when the user wants a file. The reply then has a summary instead of every transaction. Statements with more than 100 transactions are always saved, beside the PDF as <name>…
| Parameter | Type | Description |
|---|---|---|
pdf_path * | string | |
password | ||
save_to |
get_credits
Credits left on the Lekha account (one credit = one PDF page). Free to call.