Skip to main content
POST /api/postcards/preview returns an image of the card exactly as the robot will write it. Use it to show customers a proof, or to check that dynamic text fits before you place an order.
The response is 200 OK with Content-Type: image/png:
The PNG returned by the preview endpoint: a handwritten card with the message and signature.

Request body

The preview takes the card fields from Create a postcard. It doesn’t need a recipient or address.

Good to know

  • Free. Previews never create a postcard or use a credit, in either mode.
  • Card only. The preview shows the handwritten side. The envelope preview is available in the editor.
  • Text that doesn’t fit is rejected, as on create. The preview returns the same 422 card_fit error as Create a postcard, so a 200 preview means the order will fit.
  • Mistakes are repeatable. With mistake: true, the same message always crosses out the same word, so the preview matches the final card.
  • Cached for 10 minutes. Identical requests return the same image quickly.
  • Rate limited. 30 previews per minute. See Rate limits.
Send exactly the same content, signature or signature_id, font_id, and mistake when you create the postcard, so the card matches what you approved.