Skip to main content
POST
/
v4
/
inbox
/
cas
List CAS Files from Email Inbox
curl --request POST \
  --url https://api.casparser.in/v4/inbox/cas \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-inbox-token: <x-inbox-token>' \
  --data '
{
  "start_date": "2025-12-01",
  "end_date": "2025-12-31",
  "cas_types": [
    "cdsl",
    "nsdl"
  ]
}
'
{
  "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
}

Authorizations

x-api-key
string
header
required

Your API key for authentication. Use sandbox-with-json-responses as Sandbox key.

Headers

x-inbox-token
string
required

The encrypted inbox token

Body

application/json
start_date
string<date>

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

Example:

"2025-12-01"

end_date
string<date>

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

Example:

"2025-12-31"

cas_types
enum<string>[]

Filter by CAS provider(s):

Available options:
cdsl,
nsdl,
cams,
kfintech
Example:
["cdsl", "nsdl"]

Response

CAS files found in inbox

status
string
Example:

"success"

files
object[]
count
integer

Number of CAS files found

Example:

5