Send a postcard (COSTS MONEY)
lob_create_postcard⚠️ SENDS A REAL POSTCARD and charges your Lob account (use a test_ key to avoid real mail/charges). to and from accept an existing address id (adr_…) or an inline address object. front/back accept an HTML string, a hosted asset URL, or a template id (tmpl_…). Cancelable only before send_date. Lob API: POST /v1/postcards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Either an existing address id (adr_…) or an inline address object. | |
| back | Yes | Back artwork: HTML string, asset URL, or template id (tmpl_…). | |
| from | No | Return address (id or inline object). Optional. | |
| size | No | Postcard size. Default 4x6. | |
| front | Yes | Front artwork: HTML string, asset URL, or template id (tmpl_…). | |
| mail_type | No | USPS mail class. | |
| send_date | No | ISO-8601 date/time to schedule the send (future). Cancelable until then. | |
| description | No | Internal label. | |
| merge_variables | No | Key/value data merged into HTML templates. |