Receiving Letters
Option 1: Importing letters as emails with attachments
This solution is recommended if a scanning service is used that converts incoming letters into emails with the letters as an attachment (e.g., PDF). The following steps are necessary to connect letters:- Connect the mailbox as described here: Connect Emails
- Ensure that the emails are recognized as letters. Enneo recognizes an email as a letter if the following criteria are met:
- The sender of the email is the scanning service. The email address of the sender can be specified in the letter settings.
- The subject of the email contains only the word “LETTER”. If you prefer a different keyword, this can be adapted in the letter settings.
Option 2: Importing letters via the REST API
- When importing letters via the API, the
channelattribute must be set to “letter”. Enneo does the rest. - An example of a request with minimal parameters:
- The
processparameter can be set tobatch(default),realtime, orfalse. In all cases the API response returns immediately after the ticket is saved — AI processing runs in the background. The difference is when it starts: withbatchthe ticket is queued and picked up by the next available worker; withrealtimeAI processing is triggered immediately in its own background process, without waiting in the queue — useful when a ticket should be processed as soon as possible; withfalsethe ticket is created without any AI processing. - Attachments can either be uploaded as base64-encoded files via the
base64parameter or provided via a URL with theurlparameter. - All ticket attributes defined in the API specification can also be specified. This is useful for transmitting metadata such as a contract ID, tags, or a creation date.
Supported file formats
Enneo supports the automatic conversion of attachments in the following formats:- PNG
- JPG
- TIFF
Sending letters
Enneo delivers a JSON object with the relevant information such as receiver, subject and text content, when a letter is to be shipped, to your usercode. From there, you can call a printing service of your choice via API. This is configured under Settings -> Letters -> (Select mailbox) -> Webhooks -> Send letter. Here is example code for sending letters:- Python
Validation of Postal Addresses
Enneo validates postal addresses to prevent letters from being sent to invalid addresses and returned as return post. These are described here: Address ValidationUsing Addresses Stored in ERP
Instead of the sender identified by AI, Enneo can also reply to a postal address you have stored. For this, the variableletterAddress must be set in the Response Format of the Contract Data, e.g. "letterAddress": "Laura Ludwig, Main Street 29, 20249 Hamburg".