Use Case
Parse inbound email with Postkit
Receive, parse, and process incoming emails programmatically. Postkit handles MIME parsing and attachment storage — you just read the API.
Get Started FreeThe problem
Building inbound email processing from scratch means dealing with MIME parsing, encoding quirks, attachment handling, and storage. Most email APIs are send-only.
The Postkit solution
Postkit receives inbound email via your custom domain, parses the full MIME structure, stores attachments on EU-hosted S3-compatible storage, and exposes everything through the REST API and webhooks.
read-inbound.ts
// List recent inbound emails
const res = await fetch("https://api.postkit.eu/v1/inbound-emails?limit=10", {
headers: { Authorization: "Bearer pk_live_..." },
});
const { data } = await res.json();
for (const email of data) {
console.log(`From: ${email.from}`);
console.log(`Subject: ${email.subject}`);
console.log(`Body: ${email.plain_body?.substring(0, 200)}`);
console.log(`Attachments: ${email.attachments.length}`);
}