Send a letter (COSTS MONEY)
lob_create_letter⚠️ SENDS A REAL LETTER and charges your Lob account (use a test_ key to avoid real mail/charges). to/from accept an address id (adr_…) or inline object. file accepts an HTML string, a hosted PDF/URL, or a template id (tmpl_…). color is required. Cancelable only before send_date. Lob API: POST /v1/letters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Either an existing address id (adr_…) or an inline address object. | |
| file | Yes | Letter body: HTML string, asset/PDF URL, or template id (tmpl_…). | |
| from | Yes | Return address (id or inline object). Required for letters. | |
| color | Yes | true = color printing, false = black & white. | |
| send_date | No | ISO-8601 date/time to schedule the send (future). Cancelable until then. | |
| description | No | Internal label. | |
| double_sided | No | Print on both sides. Default true. | |
| merge_variables | No | Key/value data merged into HTML templates. | |
| address_placement | No | Where the recipient address is placed. |