Skip to content

Ask AI

Coming soon — ask questions about these docs in natural language.

Until then, use ⌘K to search the full docs set.

Parse CAS

Upload a CAMS or KFintech CAS PDF. The parser returns a snapshot with funds, units, NAV, and allocations.

POST https://api.portfoliointel.co.in/api/v1/parse

X-API-Key: sk_live_* or Authorization: Bearer sk_live_*.

Client typeAuth model
Claude Desktop / ChatGPTOAuth 2.1 + PKCE
Claude Code / Cursor / CopilotBearer token in config
REST clientsBearer token or X-API-Key
Terminal window
curl -X POST https://api.portfoliointel.co.in/api/v1/parse \
-H "X-API-Key: sk_live_..." \
-F "file=@cas.pdf" \
-F "password=optional-pdf-password"
  • Multipart form upload with file and optional password
  • JSON body with pdf_base64 and optional password
  • Sandbox reference with pdf_ref: "sample_cams_2024" for test keys

Returns { data: { snapshot_id, mutual_funds[], analytics } }.

{
"success": true,
"data": {
"snapshot_id": "snap_abc123",
"investor_name": "ADITYA SHARMA",
"as_of_date": "2024-12-31",
"source": "CAMS",
"statement_type": "DETAILED",
"total_value": 1250000,
"folio_count": 3,
"mutual_funds": [
{
"name": "Axis Bluechip Fund - Direct Growth",
"isin": "INF846K01EW2",
"units": 500.123,
"nav": 52.34,
"value": 26174.44
}
],
"confidence": { "document": 0.95, "level": "HIGH" }
}
}