Skip to main content
GET
/
v4
/
inbound-email
/
{inbound_email_id}
/
files
List Files Received
curl --request GET \
  --url https://api.casparser.in/v4/inbound-email/{inbound_email_id}/files \
  --header 'x-api-key: <api-key>'
{
  "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"
}

Documentation Index

Fetch the complete documentation index at: https://casparser.in/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

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

Path Parameters

inbound_email_id
string
required

Inbound Email ID (e.g., ie_a1b2c3d4e5f6)

Query Parameters

since
string<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.

limit
integer
default:20

Maximum files to return.

Required range: 1 <= x <= 50

Response

Files received at this inbound email since the cursor

status
string
Example:

"success"

files
object[]

Files received (sorted oldest-first)

count
integer
Example:

1

cursor
string<date-time> | null

Pass as since on the next poll. null if no files and no prior cursor.

Example:

"2025-02-21T10:45:12.000123+00:00"