A parserkit inbox is an email address that parses each message, up to 25 MiB, and posts the result to your webhook. Inboxes need Pro ($29 a month); the API is $0.02 a page, 50 pages free.
Email inboxes
Each inbox has a daily page cap, 500 by default, and an account can have up to 20 live inboxes. Create one with a single request, choose who may send to it, and read a log of what was dropped.
Updated
How inboxes work
An inbox is an address like acme-ap@parserkit.com. Every message sent to it, up to 25 MiB, becomes one job with source set to inbox: the body, the attachments and any ZIPs inside are parsed as documents. Each inbox parses with one preset or one saved schema_id. Results go to the inbox's webhook_url, or else the account's default webhook URL, as the usual webhook events. Inbox jobs always try your account's saved PDF passwords from the vault.
Creating and changing inboxes requires the Pro plan, which costs $29 a month with 1,500 pages included. Reading and deleting inboxes works on any plan.
Create an inbox
Send POST /v1/inboxes with a local_part and a preset or schema_id. The local_part must be 3 to 40 characters of a-z, 0-9 and -, not starting or ending with -. Leave it out and you get a free address such as acme-ap-7k2. Reserved names like admin, postmaster, abuse, support, billing or noreply answer 400, and a taken address answers 409.
curl https://api.parserkit.com/v1/inboxes \
-H "Authorization: Bearer $PARSERKIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"local_part": "acme-ap", "preset": "invoice", "allowed_domains": ["vendor.example"]}'On Pro the answer is 201 Created with the inbox, fields below. Other plans get 403 PLAN_REQUIRED.
The example above comes from an account without Pro. The request takes these fields:
| Field | Type | What it does |
|---|---|---|
local_part | string | The part before @parserkit.com: 3 to 40 characters of a-z, 0-9 and -, not starting or ending with -. Leave it out for a free address. |
preset or schema_id | string | What to parse each message with. Send one. |
webhook_url | string | Where results go. Defaults to the account's webhook URL. |
allowed_senders | array | Up to 100 sender addresses. |
allowed_domains | array | Up to 100 sender domains. |
accept_anyone | boolean | Take mail from any sender, within daily_page_cap. |
daily_page_cap | integer | Pages a UTC day for mail from anyone and the forwarding address: 1 to 10,000, default 500. |
The 201 body has these fields:
| Field | Type | What it holds |
|---|---|---|
id | string | The inbox id, ibx_.... |
address | string | The address to send or forward mail to. |
local_part | string | The part before the @. |
forwarding_address | string or null | A private address for mail forwarding rules, such as Gmail's. |
preset | string or null | The preset messages are parsed with. |
schema_id | string or null | The saved schema messages are parsed with. |
webhook_url | string or null | Where results go. |
allowed_senders | array | Sender addresses the inbox takes mail from. |
allowed_domains | array | Sender domains the inbox takes mail from. |
accept_anyone | boolean | Whether any sender gets through. |
daily_page_cap | integer | Pages a UTC day for open mail. |
status | string | active or paused. |
last_verification | object or null | The last forwarding confirmation: received_at, source, link, code, via. |
created_at | string | When the inbox was created, UTC ISO-8601. |
Choose who can send
Until you set allowed_senders, allowed_domains or accept_anyone, an inbox only takes Gmail forwarding confirmations, mail from your account's verified addresses, and mail sent to its forwarding_address. Named senders must pass DKIM for their From domain. Mail from unapproved senders is dropped and never billed.
Every inbox also has a private forwarding_address, such as acme-ap+k3xq2m7zb5ncdfh4jw6p@parserkit.com, for mail forwarding rules. accept_anyone and the forwarding address share daily_page_cap, which takes 1 to 10,000 pages a UTC day and defaults to 500. A failed job keeps its pages counted against the cap and still costs nothing.
Forward from Gmail
Point your Gmail forwarding rule at the inbox's forwarding_address. When Gmail sends its forwarding confirmation, parserkit catches it, stores it in last_verification (received_at, source, link, code, via) and sends the inbox.verification_received webhook. You can confirm forwarding from that payload by opening the link or reading the code, without reading the confirmation mail yourself.
See dropped mail
GET /v1/inboxes/{id}/events lists the inbox's dropped mail from the last 30 days, newest first, returning id, from_domain, reason and created_at for each event.
| Reason | What happened |
|---|---|
unauthenticated | The message had no single From address, or no DKIM signature that matches its From domain. |
sender_not_allowed | The sender is not in allowed_senders or allowed_domains. |
replayed | A message with the same signature arrived before. |
daily_cap | Mail from anyone or the forwarding address reached daily_page_cap for the UTC day. |
malformed | The message could not be read. |
refusals | Mail from anyone is paused for the day after too many documents the model refused. |
If the model refuses 20 documents in a UTC day, the inbox stops taking mail from senders you did not name and from the forwarding address. 100 refusals across the account do this for every inbox. Named senders still get through.
Change, pause and delete
PATCH /v1/inboxes/{id} changes any create field except local_part. You can also set status to active or paused, or pass rotate_forwarding_address: true. DELETE answers { id, deleted: true }. An account can have at most 20 live inboxes and 100 addresses over its lifetime; past that, the API returns 409 CONFLICT with limit. Inbound mail is limited to 120 messages a minute per inbox and per sender.
Questions
Do I need Pro for inboxes?
Yes, you need Pro to create or change an inbox. Reading and deleting inboxes works on any plan.
What happens to mail from an unknown sender?
Mail from unapproved senders is dropped and never billed. You can list dropped messages and their drop reasons with GET /v1/inboxes/{id}/events.
Can I forward invoices from Gmail?
Yes. Forward mail to the inbox's forwarding_address; parserkit catches Gmail's confirmation and sends you the confirmation link by webhook.
How big can an emailed invoice be?
A message can be up to 25 MiB, attachments included, and becomes one job.
How many inboxes can I have?
An account can have up to 20 live inboxes and 100 addresses over its lifetime.
Your first $1 is free, 50 pages with every check and export.