v13

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-022830130.4 KB
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

start_datestring date

Start date in ISO format (YYYY-MM-DD). Defaults to 30 days ago.

end_datestring date

End date in ISO format (YYYY-MM-DD). Defaults to today.

cas_typesstring[]

Filter by CAS provider(s):

  • cdsleCAS@cdslstatement.com
  • nsdlNSDL-CAS@nsdl.co.in
  • camsdonotreply@camsonline.com
  • kfintechsamfS@kfintech.com

Example request

{
  "start_date": "2025-12-01",
  "end_date": "2025-12-31",
  "cas_types": [
    "cdsl",
    "nsdl"
  ]
}

Response

CAS files found in inbox

statusstring
countinteger

Number of CAS files found

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
}