Email Import
List CAS Files from Email Inbox
Search the user's email inbox for CAS files from known senders (CAMS, KFintech, CDSL, NSDL).
Files are uploaded to temporary cloud storage. URLs expire in 24 hours.
Optionally filter by CAS provider and date range.
Billing: 0.2 credits per request (charged regardless of success or number of files found).
post/v4/inbox/cas
Headers
x-inbox-tokenstring required
The encrypted inbox token
Request body
Example request
{
"start_date": "2025-12-01",
"end_date": "2025-12-31",
"cas_types": [
"cdsl",
"nsdl"
]
}Response
CAS files found in inbox
Example response
{
"status": "success",
"files": [
{
"message_id": "18d4a2b3c4d5e6f7",
"filename": "cdsl_20250115_a1b2c3d4.pdf",
"original_filename": "CDSL_CAS_Statement.pdf",
"message_date": "2025-01-15",
"cas_type": "cdsl",
"sender_email": "eCAS@cdslstatement.com",
"size": 245000,
"url": "https://cdn.casparser.in/email-cas/user123/cdsl_20250115_a1b2c3d4.pdf",
"expires_in": 86400
}
],
"count": 5
}