Preview postcard mailing
spur_preview_postcard_campaignRequired step before mailing postcards. Renders the postcard with the first recipient's real data, checks which owners have mailing addresses, estimates the cost from the user's plan, and returns a confirmation_token.
Show the preview, then ask the user to approve. Only after they approve, call spur_send_postcards with the token (the widget's Send button does the same). The token expires in 30 minutes and only covers this exact template, recipient set, return address and size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Defaults to the template's size | |
| owner_ids | Yes | Owners to mail (spur_find_owners) | |
| template_id | Yes | Postcard template id (UUID from a Spur list/search tool) | |
| return_address_id | No | Defaults to the user's default return address |