eCAS
Upload eCAS PDF
Upload an eCAS PDF with its password. Returns the parsed extraction session including investor details, demat holdings, and mutual fund holdings.
Authorizations
AuthorizationBearer access token from login (Authorization: Bearer <token>).
Upload an eCAS PDF and receive a structured extraction session. Source docs: ecas_upload_create.
No query or path parameters.
Body
multipart/form-datapdfstring ($binary)requiredeCAS PDF file to upload and parse.
passwordstringrequiredPassword for the PDF (typically the investor PAN).
Response
idintegerExtraction session id.
sourcestringStatement source / depository label.
investor_namestringInvestor name from the eCAS.
panstringInvestor PAN.
period_fromstringStatement period start.
period_tostringStatement period end.
total_portfolio_valuenumberTotal portfolio value.
created_atstring (date-time)When the session was created.
updated_atstring (date-time)When the session was last updated.
holdingsarrayidintegerHolding row id.
depositorystringDepository name (e.g. CDSL / NSDL).
dp_namestringDepository participant name.
dp_idstringDP id.
client_idstringClient id.
bo_idstringBeneficiary owner id.
isinstringSecurity ISIN.
security_namestringSecurity name.
symbolstringTrading symbol when available.
asset_typestringAsset classification.
quantitynumberTotal quantity.
pledged_quantitynumberPledged quantity.
free_quantitynumberFree (unpledged) quantity.
face_valuenumberFace value.
market_pricenumberMarket price.
valuenumberHolding market value.
mf_holdingsarrayidintegerMutual fund holding id.
isinstringScheme ISIN.
scheme_namestringScheme name.
amc_namestringAMC name.
folio_nostringFolio number.
unitsnumberUnits held.
navnumberNet asset value.
valuenumberCurrent value.
investednumberInvested amount.
Responses
| Code | Description |
|---|---|
| 201 | Created — extraction session JSON |
| 400 | Bad request (invalid PDF/password) |
| 401 | Unauthorized |
Upload eCAS PDF
curl -X POST https://kniwealthtech.ai/api/v1/ecas/upload/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-F "[email protected]" \
-F "password=YOUR_PAN_OR_PDF_PASSWORD"{
"id": 0,
"source": "string",
"investor_name": "string",
"pan": "string",
"period_from": "string",
"period_to": "string",
"total_portfolio_value": 0,
"created_at": "2026-07-24T10:35:53.207Z",
"updated_at": "2026-07-24T10:35:53.207Z",
"holdings": [
{
"id": 0,
"depository": "string",
"dp_name": "string",
"dp_id": "string",
"client_id": "string",
"bo_id": "string",
"isin": "string",
"security_name": "string",
"symbol": "string",
"asset_type": "string",
"quantity": 0,
"pledged_quantity": 0,
"free_quantity": 0,
"face_value": 0,
"market_price": 0,
"value": 0
}
],
"mf_holdings": [
{
"id": 0,
"isin": "string",
"scheme_name": "string",
"amc_name": "string",
"folio_no": "string",
"units": 0,
"nav": 0,
"value": 0,
"invested": 0
}
]
}