Just like emails, letters can also be integrated into Enneo in two ways, depending on the requirements: IMAP and API.Documentation Index
Fetch the complete documentation index at: https://docs.enneo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Receiving Letters
Option 1: Importing letters as emails with an attachment
This solution is recommended when a scan service is used that converts incoming letters into emails with the letters as attachments (e.g., PDF). To integrate letters, the following steps are necessary:- 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 scan service. The email address of the sender can be specified in the letter settings.
- The subject of the email exclusively contains the word “LETTER”. If a different keyword is preferred, it can be adjusted in the letter settings.
Option 2: Import of letters via the REST API
- When importing letters via the API, the
channelattribute must be set to “letter”. Enneo takes care of the rest. - Here is an example of a request with minimal parameters:
- The
processparameter can be set either tobatch(default) orrealtime. Withrealtime, the letter is processed instantly, not asynchronously, by the AI, which can cause the request to take a bit longer. - Attachments can be uploaded either as Base64-encoded files via the
base64parameter or provided through a URL using theurlparameter. - All ticket attributes defined in the API specification can also be included. This is helpful 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
When a letter needs to be sent, Enneo passes a JSON object with relevant data such as recipient, subject, and text content to your user code. From there, you can call a print service provider of your choice via the API. This can be configured under Settings -> Letters -> (Select mailbox) -> Webhooks -> Send letter Here is sample code for sending a letter:- Python
Validation of Postal Addresses
Enneo validates postal addresses to ensure that no letters are sent to invalid addresses and returned as returned mail. These are described here: Address ValidationUsage of addresses stored in ERP
Enneo can reply to a postal address provided by you rather than the sender identified by the AI. In the Response Format of Contract Data, theletterAddress variable must be set, e.g. "letterAddress": "Laura Ludwig, Hauptstraße 29, 20249 Hamburg"