Skip to main content
POST

Overview

Quotes one letter or postcard and renders a proof of it. Nothing is printed or charged. Both addresses are validated first. A letter’s price counts its PDF pages. Free. Rendering can take a moment: the quote comes back with status: "rendering" and no price. Poll Get a quote until status is ready, then show preview.url and total_usdc to the person who approves. A quote expires 30 minutes after it is created.

Authentication

X-Agent-ID plus a signed x-agent-proof with scope: "write", or an access token. See proof authentication. 60 requests a minute per agent.

Request Body

object
required
Recipient address: name, address_line1, address_line2 (optional), address_city, address_state (two letters), address_zip (5 or 9 digits), address_country (optional, US). See Validate an address.
object
required
Return address, same shape as to
object
required
Letter: { "kind": "letter", "file": "<asset_id of a PDF>", "color": false, "double_sided": false }. color and double_sided default to false. Postcard: { "kind": "postcard", "front": "<asset_id>", "back": "<asset_id>" }. Asset IDs come from Upload artwork.

Response

The quote. Its fields are listed on Get a quote.

Errors