epost_download_letter
Download a single Swiss ePost letter to output_dir by list index or letter ID, returning the saved PDF or EML file path.
Instructions
Download one letter to output_dir, addressed by list index or by letter_id. Returns the saved path, written 0600: YYYY-MM-DD_ePost_.pdf over the API (.eml for a letter that came through IncaMail, which is an e-mail), and _.pdf over the portal fallback, which has no id to name it by — an index is a position in a list that renumbers itself after every store, so two calls a day apart can mean two different letters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| letter_id | No | instead of index; needs the public API | |
| output_dir | Yes |