🚀 Welcome! Spot an issue or have feedback? Let us know.
POST /parser/{mailbox_id}/upload
POST /email
--http1.1
can help if cURL negotiates HTTP/2 incorrectly.{
"message": "OK",
"attachments": [
{
"name": "file.pdf",
"DocumentID": "1e2e34cba5c678a9012f3e456c789a0f"
}
]
}
Save DocumentID
if you need to correlate the upload with parsed results later using the DocumentID Metadata field.
/email
. Use body_html
for HTML content or body_plain
for text (HTML takes precedence if both are present).{
"subject": "The title of your document, or email subject",
"from": "Sender Name <sender.name@example.com>",
"recipient": "mailbox.name@in.parseur.com",
"body_html": "<html><body>Document content as HTML. This one has priority over text content if both are present.</body></html>",
"body_plain": "Document content as text. This one is only used if body_html is empty.",
"message_headers": [
[
"Standard-SMTP-Header",
"Any usual email header goes here"
],
[
"X-Envelope-From",
"<original.sender@corporate.email>"
]
]
}
to
, cc
, and bcc
fields in the payload.recipient
, to
, cc
, or bcc
.{
"subject": "The title of your document, or email subject",
"from": "Sender Name <sender.name@example.com>",
"recipient": "mailbox.name@in.parseur.com",
"to": "to.name@example.com, Another Name <another.name@example.com>",
"cc": "cc.name@example.com",
"bcc": "mailbox.name@in.parseur.com",
[... rest of the request...]
}
file.pdf
and once successfully processed, the keys user.name
and user.age
will get added to the result for this file.{
"user.account_number": 123456,
"user.role": "admin"
}
{
"user.account_number": 123456,
"user.role": "admin",
"user.name": "John",
"user.age": "42"
}
/upload
endpoint only)
{
"user": {
"account_number": 123456,
"role": "admin",
"name": "John",
"age": "42"
}
}
{
"user": {
"names": ["John", "Jo", "Johnny"]
}
}
Authorization
header or putting the key in the URL/body.application/json
for /email.POST /parser/{mailbox_id}/upload
(multipart with file=@...)POST /email
(JSON payload)Authorization: <YOUR_API_KEY>