Inbound Email
List Files Received
Retrieve CAS files forwarded to this inbound email. Available for every inbound email, regardless of whether a callback_url was set — use it to avoid building a webhook consumer, to poll alongside a webhook, or to replay missed webhook deliveries.
Pass the cursor from the previous response as since to receive only new files.
get/v4/inbound-email/{inbound_email_id}/files
Path parameters
inbound_email_idstring required
Inbound Email ID (e.g., ie_a1b2c3d4e5f6)
Query parameters
sincestring date-time
ISO 8601 timestamp. Only files with received_at strictly greater than this value are returned. Use the cursor value from the previous response.
limitinteger
Maximum files to return.
Response
Files received at this inbound email since the cursor
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,
"received_at": "2025-02-21T10:45:12.000123+00:00"
}
],
"count": 1,
"cursor": "2025-02-21T10:45:12.000123+00:00"
}