v21

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-042830148.8 KB
CAS Fetch

CDSL CAS Fetch - Step 2 (Verify OTP & Get Files)

Step 2 of 2: Verify OTP and retrieve CDSL CAS files.

After successful verification, CAS PDFs are fetched from CDSL portal, uploaded to cloud storage, and returned as direct download URLs.

post/v4/cdsl/fetch/{session_id}/verify

Path parameters

session_idstring required

Session ID from Step 1

Request body

num_periodsinteger

Number of monthly statements to fetch (default 6)

otpstring required

OTP received on mobile

Example request

{
  "num_periods": 6,
  "otp": "123456"
}

Response

CAS files fetched successfully

msgstring
statusstring

Example response

{
  "files": [
    {
      "filename": "CDSL_CAS_1234567890123456_NOV2025.pdf",
      "url": "https://cdn.casparser.in/cdsl-cas/session-id/CDSL_CAS_1234567890123456_NOV2025.pdf"
    }
  ],
  "msg": "Fetched 6 CAS files",
  "status": "success"
}