Skip to main content
POST
/
v4
/
cdsl
/
fetch
/
{session_id}
/
verify
CDSL CAS Fetch - Step 2 (Verify OTP & Get Files)
curl --request POST \
  --url https://api.casparser.in/v4/cdsl/fetch/{session_id}/verify \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "otp": "123456",
  "num_periods": 6
}
'
{
  "status": "success",
  "msg": "Fetched 6 CAS files",
  "files": [
    {
      "filename": "CDSL_CAS_1234567890123456_NOV2025.pdf",
      "url": "https://cdn.casparser.in/cdsl-cas/session-id/CDSL_CAS_1234567890123456_NOV2025.pdf"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your API key for authentication. Use sandbox-with-json-responses as Sandbox key.

Path Parameters

session_id
string
required

Session ID from Step 1

Body

application/json
otp
string
required

OTP received on mobile

Example:

"123456"

num_periods
integer
default:6

Number of monthly statements to fetch (default 6)

Example:

6

Response

CAS files fetched successfully

status
string
Example:

"success"

msg
string
Example:

"Fetched 6 CAS files"

files
object[]