v21

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

cas_typesstring[]

Filter by CAS provider(s):

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

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

start_datestring date

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

Example request

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

Response

CAS files found in inbox

countinteger

Number of CAS files found

statusstring

Example response

{
  "count": 5,
  "files": [
    {
      "cas_type": "cdsl",
      "expires_in": 86400,
      "filename": "cdsl_20250115_a1b2c3d4.pdf",
      "message_date": "2025-01-15",
      "message_id": "18d4a2b3c4d5e6f7",
      "original_filename": "CDSL_CAS_Statement.pdf",
      "sender_email": "eCAS@cdslstatement.com",
      "size": 245000,
      "url": "https://cdn.casparser.in/email-cas/user123/cdsl_20250115_a1b2c3d4.pdf"
    }
  ],
  "status": "success"
}