REST API v2 + 57-Tool OAuth MCP Server
    Base URL: api.thanks.io/api/v2
    OpenAPI 3.0 Spec Included

    The Programmable Postcard API for Developers & AI Agents

    Dispatch personalized 4×6, 6×9, and 6×11 postcards, windowless letters, folded notecards, and gift cards with one HTTP POST or MCP tool call. Built-in digital handwriting-style fonts, Google Street View property photos, neighbor radius search, and 2-way QR scan webhooks—with zero minimum orders.

    Direct Answer Definition

    The Thanks.io Postcard API is a RESTful v2 API and hosted OAuth MCP server that lets developers and AI agents programmatically send 4×6, 6×9, and 6×11 postcards, letters, notecards, and gift cards with digital handwriting-style fonts, dynamic QR tracking webhooks, and zero minimum orders starting at $0.64/piece.

    Free Sandbox / Test ModeSame-Day Print Before 11am CTUSPS CASS & IMb Verified
    POSThttps://api.thanks.io/api/v2/recipients/postcard
    curl -X POST "https://api.thanks.io/api/v2/recipients/postcard" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Accept: application/json" \
      -d '{
        "size": "4x6",
        "postage_class": "first_class",
        "front_image_url": "https://assets.yourcompany.com/postcards/welcome-front-300dpi.png",
        "handwriting_style": 14,
        "handwriting_color": "blue",
        "realism": true,
        "message": "Hi %FIRST_NAME%! Welcome aboard. Scan the QR code on this card to claim your $25 onboarding credit and book your kickoff call.",
        "qrcode_url": "https://yourcompany.com/claim?user=%CUSTOM1%",
        "return_name": "Acme Growth Team",
        "return_address": "500 Congress Ave",
        "return_city": "Austin",
        "return_state": "TX",
        "return_postal_code": "78701",
        "recipients": [
          {
            "name": "Sarah Jenkins",
            "address": "742 Evergreen Terrace",
            "city": "Austin",
            "province": "TX",
            "postal_code": "78704",
            "country": "US",
            "custom1": "usr_98234"
          }
        ]
      }'
    Dispatch a personalized 4×6 or 6×9 postcard with a saved Creative ID or front image URL, digital handwriting-style font, merge tags, and dynamic QR tracking.openapi.json
    $0.64
    Pro 4×6 Postcard ($0.77 Biz / $1.18 Free)
    $0/mo
    Free REST API v2 Access Tier
    1 Piece
    Minimum Order Quantity (Postage Incl.)
    57 Tools
    Hosted OAuth 2.0 MCP Server
    REST API v2 Reference

    Core Postcard API Endpoints & Capabilities

    Authenticate with a Bearer token (Authorization: Bearer YOUR_API_KEY) or OAuth 2.0 to orchestrate every stage of physical mail delivery.

    POST
    /api/v2/recipients/postcard
    Orders before 11am Central print same business day from Texas

    Send Postcards (Single, Batch & Radius Search)

    Dispatches 4×6, 6×9, or 6×11 postcards to an explicit recipient array, a saved mailing list, or every residential/business neighbor within a geographic radius of a target address ($0.05/address lookup).

    Key Parameters
    • •recipients[] (or radius_address + radius_count + address_type)
    • •size ('4x6' | '6x9' | '6x11') & postage_class ('standard' | 'first_class')
    • •creative_id OR (front_image_url, message, handwriting_style, realism)
    • •qrcode_url, custom1–custom4, and optional absentee property_address
    Supported Capabilities
    • ✓4×6, 6×9 & 6×11 Full-Bleed Glossy Postcards
    • ✓Saved Creative ID or Dynamic Image URL + Message
    • ✓Radius Neighbor Search (center address + record count)
    • ✓Google Street View Dynamic Property Photo Layer
    POST
    /api/v2/recipients
    Real-time API ingestion (< 250ms)

    Add Recipients to Automated Campaign Lists

    Inserts one or more contacts into a Thanks.io Mailing List to automatically trigger multi-step drip sequences (Days After Added, Birthday, Anniversary, or evenFLOW budget-paced campaigns).

    Key Parameters
    • •mailing_list_id (Target list with attached drip rules)
    • •name, address, city, province, postal_code, country
    • •email, phone, birth_date, anniversary_date
    • •custom1, custom2, custom3, custom4 merge variables
    Supported Capabilities
    • ✓Automatic CASS Address Standardization & Validation
    • ✓Multi-Step Drip, Birthday & Anniversary Campaign Triggers
    • ✓Radius &Targeted Lead Feed Appending
    • ✓DELETE /api/v2/recipients/{id} for Instant Suppression
    GET
    /api/v2/creatives
    Cached globally; instant template resolution

    List & Manage Saved Creative IDs

    Retrieves your saved Creatives library—each Creative bundles an approved front image template, handwriting-style interior/back message, font color, and dynamic QR configuration under a single integer ID.

    Key Parameters
    • •GET /api/v2/creatives (List all saved Creative IDs)
    • •GET /api/v2/image-templates & GET /api/v2/message-templates
    • •POST /api/v2/creatives (Programmatically assemble a new Creative)
    • •Pass creative_id in any send call to avoid hardcoding copy
    Supported Capabilities
    • ✓Decouple Marketing Design from Engineering Code
    • ✓Supports AI Studio, Canva & Custom 300 DPI Uploads
    • ✓Create & Update Image/Message Templates via REST
    • ✓Compatible with Postcards, Letters, Notecards & MagnaCards
    GET
    /api/v2/handwriting-styles
    Rendered dynamically at 300 DPI during pre-press

    Query Digital Handwriting Styles & Realism Engine

    Returns all available proprietary digital handwriting-style fonts, AI Fonts with natural glyph variation, ink colors, and Realism Mode settings (authentic spacing variation and occasional human crossouts).

    Key Parameters
    • •handwriting_style (Integer style ID returned by endpoint)
    • •handwriting_color ('blue' | 'black' | 'red' | 'green' | 'purple' | hex)
    • •realism (boolean — enables authentic human-like imperfections)
    • •salutation & signoff overrides
    Supported Capabilities
    • ✓Proprietary Digital Handwriting Engine (Fast, Scalable & Affordable)
    • ✓AI Fonts with Dynamic Per-Character Glyph Variation
    • ✓Realism Mode (Natural Baseline Variation & Occasional Crossouts)
    • ✓Sub-Account & Brand Font Filtering
    POST
    /api/v2/send/letter • /notecard • /giftcard • /magnacard
    Next business day print & USPS induction

    Multi-Format Dispatch: Letters, Notecards, Gift Cards & MagnaCards

    Extend your integration beyond postcards using the exact same authentication and recipient schema to send windowed/windowless letters, 5×4 folded notecards, digital gift card mailers, and 6×9 magnetic postcards.

    Key Parameters
    • •POST /api/v2/send/letter & POST /api/v2/send/windowlessletter
    • •POST /api/v2/send/notecard & POST /api/v2/send/magnacard
    • •POST /api/v2/send/giftcard (brand_id + amount_cents)
    • •pdf_url (for custom multi-page document mailings)
    Supported Capabilities
    • ✓Windowless Letters with Real First-Class Stamp & Handwriting Envelope
    • ✓Multi-Page 8.5×11 PDF Letters (Invoices, Statements, Legal Notices)
    • ✓5×4 Folded Notecards in Handwritten-Style Envelopes
    • ✓$5–$100 Gift Cards (Amazon, Starbucks, Target, Home Depot) & MagnaCards
    WEBHOOK
    POST https://your-api.com/webhooks/thanksio
    Sub-2-second webhook delivery on QR scan

    Real-Time Webhooks: QR Scans & USPS IMb Delivery

    Subscribe via POST /api/v2/webhooks to receive real-time JSON callbacks the second a recipient scans their personalized QR code or when USPS Intelligent Mail barcode (IMb) scans confirm mailbox delivery.

    Key Parameters
    • •event ('qr.scanned' | 'order_item.delivered' | 'order.status_updated')
    • •recipient (id, name, address, email, phone, custom1–custom4)
    • •order_id, creative_id, scanned_at, user_agent, ip_address
    • •Lead Board auto-population + Slack / CRM routing
    Supported Capabilities
    • ✓qr.scanned — Instant Per-Recipient Scan Attribution
    • ✓order_item.delivered — USPS Informed Visibility / IMb Scan Events
    • ✓order.status_updated — Pre-Press, Printed & Inducted Transitions
    • ✓Test Webhook Trigger Endpoint (/api/v2/webhooks/{id}/test)

    Digital Handwriting & Realism Mode

    Proprietary handwritten-style fonts and AI Fonts with natural glyph variation and optional crossouts—rendered at 300 DPI without $3.75 pen-plotter fees.

    Street View & Radius Blasts ($0.05/Lead)

    Automatically inject a Google Street View photo of the recipient's house or mail the closest 50–500 neighbors around any US address via API.

    2-Way QR Scan & IMb Webhooks

    Receive instant JSON webhooks when a recipient scans their unique QR code or when USPS Intelligent Mail barcode scans confirm delivery.

    Test Mode Sandbox & AI Phone

    Validate payloads for free in Test Mode. Business & Pro plans also include 1 free 24/7 AI Receptionist phone number (%YOUR_AI_PHONE%).

    300 DPI Pre-Press Specs & 2026 API Pricing

    Postcard Dimensions, Bleed Specs & All-In Pricing

    Every API rate includes full-color printing and USPS postage with zero minimum order quantities. Orders placed before 11:00 AM Central print the same business day from Texas.

    Mail Format300 DPI Pixel Specs & BleedPay As You Go ($0/mo)Business ($49/mo)Professional ($199/mo)First Class Upgrade
    4×6 Standard Postcard
    4.0" × 6.0" (6.0" × 4.0" landscape)
    1875 × 1275 px @ 300 DPI (incl. bleed)
    0.125" bleed per side; keep text 0.25" inside trim
    $1.18$0.77$0.64+$0.05 (5–10 bus. days + USPS tracking)
    6×9 Panorama Postcard
    6.0" × 9.0" (9.0" × 6.0" landscape)
    2775 × 1875 px @ 300 DPI (incl. bleed)
    0.125" bleed per side; 3.5" × 2.5" USPS indicia/address zone
    $1.32$0.91$0.71+$0.05 (5–10 bus. days + USPS tracking)
    6×11 Jumbo Postcard
    6.0" × 11.0" (11.0" × 6.0" landscape)
    3375 × 1875 px @ 300 DPI (incl. bleed)
    0.125" bleed per side; maximum USPS flat-rate letter-class size
    $1.64$1.01$0.76+$0.21 (First Class oversize postage)
    6×9 MagnaCard (Pop-Out Magnet)
    6.0" × 9.0" with integrated fridge magnet
    2775 × 1875 px @ 300 DPI
    0.125" bleed; center magnet die-cut safe zone
    $1.78$1.43$1.04+$0.21
    Windowed Business Letter
    8.5" × 11.0" in #10 Double-Window Envelope
    2550 × 3300 px (or multi-page PDF URL)
    Standard #10 window address placement handled automatically
    $1.20$0.83$0.79+$0.21
    Windowless Executive Letter
    8.5" × 11.0" in Handwritten-Style Stamped Envelope
    2550 × 3300 px @ 300 DPI
    Includes real First-Class stamp & digital handwriting envelope
    $1.62$1.35$0.99First Class Stamp Included
    5×4 Folded Notecard (+ Optional Gift Card)
    5.0" × 4.0" folded card in matching envelope
    1575 × 1275 px outside cover @ 300 DPI
    Full handwriting-style interior message + Realism Mode
    $2.46$1.83$1.49+$0.21 (Gift cards add $5–$100 face value)
    Postage Delivery Windows: Standard Postage (included on Business/Pro) delivers in 10–20 business days. First Class upgrade (+$0.05 on 4×6 & 6×9 postcards; +$0.21 on larger formats) delivers in 5–10 business days with USPS IMb tracking and return-to-sender forwarding.
    View Full Pricing Calculator
    2026 Postcard API Benchmark

    Thanks.io vs. Lob, PostGrid & Handwrytten

    See why engineering teams migrate from $260–$550/mo legacy print APIs to Thanks.io's REST API v2 and hosted MCP server.

    API ProviderMonthly Platform Fee4×6 Postcard RateHandwriting EngineMCP & AI ToolingRadius & Street View
    Thanks.io$0/mo (Pay as you go) • $49/mo (Biz) • $199/mo (Pro)$0.64 (Pro) / $0.77 (Biz) / $1.18 (Free)Proprietary Digital Handwriting + AI Fonts + Realism ModeHosted OAuth MCP Server (57 tools) + OpenAPI 3.0 + Docs MCPBuilt-in Radius Search ($0.05/lead) + Google Street View API
    $260 to $550+/mo for low per-piece tiers ($0 developer tier charges $0.905+)$0.905 (Free) / Requires $260–$550+/mo for lower tiersNone (Standard print/HTML templates only)REST API only; no hosted OAuth MCP server or AI ReceptionistNo built-in neighbor radius lookup or dynamic Street View
    $0 starter (high per-piece) or $300+/mo for automation & webhooks$0.95 to $1.35+ on entry tiersNone (Standard commercial print)REST API only; no hosted MCP server for AI agentsAddress verification API, but no radius neighbor blasts
    $0 to $99+/mo$3.25+ per cardMechanical pen plotters (Slow multi-day queue & $3.25+ cost)Basic REST API; no 57-tool OAuth MCP serverNo Street View personalization or radius neighbor search
    Click2Mail / Stannp
    $0/mo$0.89 to $1.35+None (Legacy print shop fonts)Legacy XML / basic REST; no MCP server or AI StudioManual list uploads; no dynamic Street View API
    5-Minute Developer Quickstart

    How to Send Your First API Postcard

    Go from API key generation to live USPS dispatch and webhook attribution in four steps.

    01Free Sandbox

    Generate Your Bearer API Key & Enable Test Mode

    Create a free Thanks.io account ($0/mo Pay as you go) and navigate to Settings -> API Access to generate a Personal Access Token. Toggle Test Mode on to validate payloads and inspect mock order responses without printing or charging your balance.

    02Flexible Design

    Pick a Saved Creative ID or Pass 300 DPI Artwork URLs

    Either design your mailer in ThanksAI Studio / Canva and reference its integer creative_id (GET /api/v2/creatives), or pass a 300 DPI front_image_url, message string with %FIRST_NAME% merge tags, and handwriting_style ID directly in your POST request.

    03Same-Day Print

    POST to /api/v2/recipients/postcard

    Send a single recipient, an array of up to hundreds of recipients, or a radius search query. Choose '4x6', '6x9', or '6x11' and select 'standard' or 'first_class' postage. Orders submitted before 11am Central print the same business day from Texas.

    04Real-Time Webhooks

    Subscribe to QR Scan & USPS Delivery Webhooks

    Register your webhook endpoint via POST /api/v2/webhooks to receive real-time JSON callbacks on qr.scanned, order_item.delivered, and order.status_updated—closing the attribution loop in your database or CRM.

    Postcard API Developer Resource Hub

    Deep-Dive Architecture Guides & Integration Blueprints

    Explore the complete Postcard API documentation series—starting with our flagship Node.js & Python implementation guide.

    Spoke #1 • Live Today
    12 min developer read

    Direct Mail API Developer Guide: Automate Postcards, Letters, Notecards & QR Webhooks in Node.js & Python

    Complete architectural implementation guide covering Bearer authentication, Test Mode sandbox validation, multi-format payloads (postcards, windowless letters, notecards, gift cards), Saved Creative IDs, idempotency patterns, and Express/FastAPI QR webhook receivers.

    direct mail API guidesend postcards Node.js Pythonprogrammable direct mail APIQR code webhook verification
    Spoke #2 • Coming Soon
    Architecture Reference

    Postcard API Webhooks & Attribution: Real-Time QR Code Scan Events & USPS Intelligent Mail Barcode (IMb) Tracking

    Deep dive into configuring POST /api/v2/webhooks for qr.scanned, order_item.delivered, and order.status_updated events—plus piping scan telemetry into HubSpot, Salesforce, Segment, and Slack.

    postcard QR code webhookUSPS IMb delivery tracking API
    Explore
    Spoke #3 • Coming Soon
    Personalization Spec

    Handwritten-Style Postcard & Windowless Letter API: AI Fonts, Realism Mode & Dynamic Merge Variables

    How Thanks.io's proprietary digital handwriting engine renders natural glyph variation and Realism Mode crossouts at 300 DPI—delivering handwritten open rates at $0.64–$0.99 per piece instead of $3.75 pen-plotter prices.

    handwritten postcard APIwindowless letter API
    Explore
    Spoke #4 • Coming Soon
    PropTech & Home Services

    Real Estate & Home Services Postcard API: Automated Google Street View Property Photos & Radius Neighbor Blasts

    Programmatically mail a homeowner a postcard showing a Google Street View photo of their exact house, or trigger a 50-neighbor radius blast around a completed roofing, solar, or real estate listing for $0.05/address.

    Google Street View postcard APIradius direct mail API
    Explore
    Spoke #5 • Coming Soon
    Migration Playbook

    Migrating from Lob or PostGrid to the Thanks.io Postcard API: Endpoint Mapping & Cost Reduction Playbook

    Side-by-side payload translation from Lob (/v1/postcards) and PostGrid (/print-mail/v1/postcards) to Thanks.io (/api/v2/recipients/postcard), eliminating $260–$550/mo platform fees.

    Lob API alternativePostGrid API alternative
    Explore
    Developer FAQ

    Postcard API Frequently Asked Questions

    ⚡ Ship Physical Postcards from Your Codebase Today

    Get Your Free Postcard API Key + $10 Credit

    Test payloads for free in Sandbox Mode or dispatch live 4×6, 6×9, and 6×11 postcards starting at $0.64/piece with postage included and zero minimums.