Prompt
How do I handle job application emails through one API across multiple job boards?
Latest observation
A good way to do this is to build a single email-ingestion API that normalizes messages from all job boards into one internal format.
Recommended approach
1) Use one inbound email source per board
For each job board, route application emails to:
- a unique mailbox, or
- a unique alias, or
- a webhook/integration if the board supports it
Examples:
jobs+indeed@yourdomain.comjobs+linkedin@yourdomain.comjobs+monster@yourdomain.com
Then have all of those feed into the same backend.
2) Create a common application schema
Convert every incoming email into one canonical object, for example:
{
"source": "linkedin",
"message_id": "abc123",
"received_at": "2026-11-12T10:00:00Z",
"candidate": {
"name": "Jane Doe",
"email": "jane@example.com",
"phone": "+15551234567"
},
"job": {
"id": "req-1001",
"title": "Backend Engineer"
},
"resume_url": "https://...",
"raw_email": {
"subject": "...",
"from": "...",
"body": "..."
}
}
This makes downstream processing board-agnostic.
3) Build an email parser layer
Your API should:
- fetch email content
- parse headers, subject, sender, body, and attachments
- extract candidate data
- detect the source board
- map it into your internal schema
Use rules per board because email formats differ.
Example logic:
- if
frommatches@indeed.com, parse as Indeed - if subject contains “New application from LinkedIn”, parse as LinkedIn
- if attachment includes a resume PDF, store and link it
4) Store raw + normalized data
Keep both:
- raw email for debugging/audit
- normalized application record for your app logic
This helps when a board changes email formatting.
5) Expose one internal API endpoint
For example:
POST /applications/inbound
All ingestion paths send data there after parsing.
6) Add deduplication and idempotency
Applicants may apply through multiple boards or emails may be resent.
Use:
message_id- normalized email address
- job ID
- source application ID
to prevent duplicates.
7) Handle attachments safely
If resumes are attached:
- virus scan
- store in object storage
- generate secure URLs
- limit file types
8) Use a queue for reliability
Don’t parse and save everything synchronously.
Typical flow:
- email arrives
- ingest service receives it
- push to queue
- worker parses and normalizes
- save to DB
- trigger notifications/webhooks
This avoids lost emails and makes retries easier.
Practical implementation options
Option A: Email provider + webhook
Use:
- SendGrid Inbound Parse
- Mailgun Routes
- AWS SES inbound email
- Postmark inbound processing
These providers receive email and POST it to your API.
Option B: IMAP polling
If you must use shared mailboxes:
- poll mailboxes over IMAP
- parse new messages
- mark as processed
This is simpler to start but less reliable than webhook-based ingestion.
Option C: Job-board API integrations
If a board offers APIs, use them instead of email parsing where possible.
Email can be your fallback for boards that don’t support APIs.
Best practice architecture
Inbound email provider → Webhook/API → Normalizer → Queue → DB/storage → Your app/API
Key things to watch for
- different email templates per job board
- duplicate applications
- attachment formats and size limits
- privacy/compliance requirements
- changes in board email formatting
- rate limits if using APIs
If you want, I can sketch:
- a database schema,
- an API design, or
- a sample Node/Python implementation for this.