Runnable examples in Python for the beA.expert API.
| Script | What it shows |
|---|---|
simpleclient.py |
login, list the postboxes and folders, fetch and decrypt the messages, read the confirmations |
example_save_and_send_message.py |
save and send a message with attachments |
example_draft_save_message.py |
create a draft and save it |
example_eeb_reply.py |
answer an eEB (elektronisches Empfangsbekenntnis) |
cleanup_delete_all.py |
delete ALL messages of the own postbox: only for test postboxes |
- a beA.expert API account: bea.expert/api/
- the Python library, version 3.0: put
bex_api.pyof bea-api-python beside the scripts - a file
private.config.inibeside the scripts with the software token and its PIN (see the head of each script)
The scripts were written for the earlier library versions and fit version 3.0 without changes (every library call checked against the 3.0 functions on 26.11.2026).
GPL-2.0 or BSD-3-Clause, at your option: see LICENSE.