Skip to main content

Prerequisites

  1. Get an API key from app.casparser.in/developers
  2. Have a CAS PDF ready, or use our sandbox key for testing
For testing, use sandbox-with-json-responses as your API key. It returns sample data without consuming credits.

Choose your language

Python

requests library

Node.js

fetch or axios

cURL

Command line

What you’ll build

In this quickstart, you’ll parse a CAS PDF and receive structured JSON containing:
  • Investor details — Name, email, PAN, mobile
  • Portfolio summary — Total value, account counts
  • Demat holdings — Equities, bonds, AIFs, ETFs
  • Mutual funds — Folios with transactions (50+ years of transaction history from CAMS/KFintech)
  • Insurance & NPS — Policy details and pension accounts

API endpoints

EndpointDescription
POST /v4/smart/parseAuto-detect CAS type and parse (recommended)
POST /v4/cdsl/parseParse CDSL eCAS specifically
POST /v4/nsdl/parseParse NSDL eCAS specifically
POST /v4/cams_kfintech/parseParse CAMS/KFintech CAS specifically
Use /v4/smart/parse for most cases. It automatically detects the CAS type and returns a unified response format.