---
title: "CDSL CAS Fetch - Step 1 (Request OTP)"
method: POST
path: "/v4/cdsl/fetch"
tags: ["CAS Fetch"]
---

# CDSL CAS Fetch - Step 1 (Request OTP)

`POST /v4/cdsl/fetch`

## Request

- Base URL: `https://api.casparser.in`
- URL: `https://api.casparser.in/v4/cdsl/fetch`
- Auth: API key in header `x-api-key`

**Step 1 of 2**: Request OTP for CDSL CAS fetch.

This endpoint:
1. Solves reCAPTCHA automatically (~15-20 seconds)
2. Submits login credentials to CDSL portal
3. Triggers OTP to user's registered mobile number

After user receives OTP, call `/v4/cdsl/fetch/{session_id}/verify` to complete.

## Request body

- object
  - `pan` string, required: PAN number
  - `bo_id` string, required: CDSL BO ID (16 digits)
  - `dob` string, required: Date of birth (YYYY-MM-DD)

## Response `200`

OTP sent to registered mobile

- object
  - `status` string
  - `session_id` string: Session ID for verify step
  - `msg` string

## Other responses

- `400`: Bad request (Invalid PDF file, missing parameters, or invalid password)
- `401`: Unauthorized. This can happen if the `x-api-key` header is missing.
- `500`: Internal server error

## Changes

- **2026-09-13** `cf1b57c0f2f7`: 2 warning
  - the optional response header `X-Request-ID` removed for the status `401`
  - the optional response header `X-Request-ID` removed for the status `500`
- **2026-07-12** `c74b9ecd5b53`: 1 warning
  - added the new `failed` enum value to the `status` response property for the response status `401`
- **2026-02-14** `7e6397bddc22`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/changes/v4/cdsl/fetch/post.md)

---

[API](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2.md) - [All operations](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/llms.txt) - [OpenAPI document](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/revisions/9d8f1445bad3?raw)
