Inbound Email
Create Inbound Email
Create a dedicated inbound email address for collecting CAS statements via email forwarding. When an investor forwards a CAS email to this address, we verify the sender and make the file available to you.
callback_url is optional:
- Set it — we POST each parsed email to your webhook as it arrives.
- Omit it — retrieve files via GET /v4/inbound-email/{id}/files without building a webhook consumer.
post/v4/inbound-email
Request body
Example request
{
"alias": "john-portfolio",
"reference": "user_12345",
"callback_url": "https://api.yourapp.com/webhooks/cas-email",
"allowed_sources": [
"cdsl",
"nsdl"
],
"metadata": {
"plan": "premium",
"source": "onboarding"
}
}Response
Inbound email created successfully
Example response
{
"inbound_email_id": "ie_a1b2c3d4e5f6",
"email": "ie_a1b2c3d4e5f6@import.casparser.in",
"reference": "user_12345",
"callback_url": "https://api.yourapp.com/webhooks/cas-email",
"allowed_sources": [
"cdsl",
"nsdl"
],
"status": "active",
"metadata": {
"plan": "premium"
},
"created_at": "2025-02-21T10:30:00Z",
"updated_at": "2025-02-21T10:30:00Z"
}