REST API v1 • Model Context Protocol (MCP)

Automate Custom 30 Mil PVC ID Badges from Your App or AI Agent

Discover curated templates, populate front & back text, QR codes, portraits (with automatic face crop & background removal), and full-bleed backgrounds, then stage orders for instant checkout—authenticated with a single API key.

REST API Base URL
https://www.easyidcard.com/api/v1
MCP Streamable HTTP Endpoint
https://www.easyidcard.com/api/mcp
Authentication Header
Authorization: Bearer eic_live_...

1. Unified Authentication (REST + MCP)

One eic_live_... key authenticates both the REST API (/api/v1/*) and the remote MCP server (/api/mcp). Generate, label, or revoke keys anytime from your Account → API / MCP Keys panel.

Human-in-the-Loop Order Safety: AI agents and scripts can stage orders freely via POST /api/v1/orders/stage without charging your card. Every staged order appears immediately under Staged Orders (AI / API) in your account dashboard—and Stripe Checkout links always require a human to complete payment in the browser.

2. AI Agent Integration (Model Context Protocol)

Connect Claude Desktop, Claude Code, Cursor, or any MCP-compatible agent to https://www.easyidcard.com/api/mcp to expose all 11 badge design, template inspection, and order staging tools.

Step 1 • Endpoint & Transport
Transport: Streamable HTTP (JSON-RPC 2.0)
URL: https://www.easyidcard.com/api/mcp
Header: Authorization: Bearer eic_live_...
Step 2 • Add to Your AI Client
Paste the JSON config into Cursor (.cursor/mcp.json), Claude Code (.mcp.json), or Claude Desktop (claude_desktop_config.json) and restart your client.
{
  "mcpServers": {
    "easyidcard": {
      "url": "https://www.easyidcard.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_EIC_LIVE_API_KEY"
      }
    }
  }
}

Registered MCP Tools (11)

Tool Name Description
check_credits_and_trackingInspect account flags (open_invoice_enabled, tax_exempt), custom rates, or look up order status (ST... / OI...).
get_pricingFetch live front/back unit rates, slot punch & hologram fees, shipping tiers, and accessories catalog.
list_templatesList your saved cards (card_id, back_info) and curated public templates (template_id).
get_templateInspect a public template's editable fields (field_name, side: front/back, kind, max_chars_hint).
get_cardInspect an existing saved card's editable fields, current values, and back_info.
create_cardCreate a saved 30 Mil PVC card from template_id or source_card_id with dual-sided text, QR/barcodes, photos, and backgrounds.
update_cardUpdate fields, photos, barcodes, or front/back backgrounds on an existing saved card.
stage_badge_orderCalculate card subtotal, automatic back-print cost, shipping, and ZIP sales tax; saves a staged order for checkout.
list_staged_ordersList active staged orders waiting for confirmation or Stripe payment.
discard_staged_orderCancel/discard a staged order by stage_id.
confirm_badge_orderSubmit an Open Invoice (OI...) order or generate a Stripe Checkout URL for payment.

3. REST API Quickstart (Create Dual-Sided Card → Stage Order)

Create a print-ready card from any template or saved design, then stage an order in two HTTP calls.

# 1. Create a dual-sided badge from Template 628
curl -X POST "https://www.easyidcard.com/api/v1/cards" \
  -H "Authorization: Bearer YOUR_EIC_LIVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template_id": 628,
    "name": "Jordan Taylor - Consultant",
    "fields": {
      "Full Name": "Jordan Taylor",
      "Certification #": "HCEC-8842",
      "Organization": "APEX CLINICAL PARTNERS",
      "QR Code": "https://www.easyidcard.com/verify/8842"
    },
    "photo_url": "https://example.com/portraits/jordan.jpg"
  }'

# 2. Stage an order using the returned card_id
curl -X POST "https://www.easyidcard.com/api/v1/orders/stage" \
  -H "Authorization: Bearer YOUR_EIC_LIVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cards": [{ "card_id": 2420514, "quantity": 2 }],
    "slot_punch": true,
    "shipping_method": "standard",
    "po_number": "PO-2026-104",
    "shipping_address": {
      "name": "Jordan Taylor",
      "company": "Apex Clinical Partners",
      "street1": "100 Main Street",
      "city": "Bayport",
      "state": "NY",
      "zip": "11705"
    }
  }'

4. REST API Endpoint Reference

All endpoints accept and return application/json. Download the machine-readable schema at /api/openapi.json.

Method Endpoint Purpose
GET /api/v1/credits Return account flags (open_invoice_enabled, tax_exempt, economy_shipping_enabled) and custom unit rates.
GET /api/v1/pricing Return live card rates, option fees (slot_punch, hologram), shipping tiers, and accessories.
GET /api/v1/templates List user saved cards (saved_cards), curated public templates (public_templates), and categories.
GET /api/v1/templates/{tid} Inspect editable fields (field_name, side, kind, max_chars_hint) on a public template.
GET /api/v1/cards/{cardId} Inspect editable fields, current values, and back_info ("0", "1", "2") of a saved card.
POST /api/v1/cards Create a new saved card from template_id or source_card_id with dual-sided fields, portraits, and backgrounds.
PATCH /api/v1/cards/{cardId} Modify text, QR/barcodes, front/back photos, or backgrounds on an existing saved card.
GET /api/v1/orders/staged List active staged orders on your account.
POST /api/v1/orders/stage Stage an order, compute automatic back-print pricing, shipping, and ZIP tax without charging.
DELETE /api/v1/orders/{stageId} Discard a staged order.
POST /api/v1/orders/{stageId}/confirm Confirm a staged order: submit Open Invoice (OI...) or return a Stripe Checkout URL.
GET /api/v1/orders/{txnId} Check status and billing details of a submitted order (ST... or OI...).
Onboarding & Volume Rates

Request API Access or Enterprise Volume Pricing

Need API key provisioning, Net 30 Open Invoice (Purchase Order) billing, or custom per-card pricing for 50+ badges/month? Send us your details here—or open the full Contact Us page.

  • Same-Day US Production: 30 Mil CR80 PVC badges printed & dispatched from New York
  • Unified Key: One eic_live_... key works for REST v1 & MCP
  • Human-in-the-Loop Checkout: Stage orders via API/MCP and approve in your dashboard
Direct engineering & sales desk: +1 (631) 699-5330 • office@easyidcard.com