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.
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.
URL: https://www.easyidcard.com/api/mcp
Header: Authorization: Bearer eic_live_...
{
"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_tracking | Inspect account flags (open_invoice_enabled, tax_exempt), custom rates, or look up order status (ST... / OI...). |
| get_pricing | Fetch live front/back unit rates, slot punch & hologram fees, shipping tiers, and accessories catalog. |
| list_templates | List your saved cards (card_id, back_info) and curated public templates (template_id). |
| get_template | Inspect a public template's editable fields (field_name, side: front/back, kind, max_chars_hint). |
| get_card | Inspect an existing saved card's editable fields, current values, and back_info. |
| create_card | Create a saved 30 Mil PVC card from template_id or source_card_id with dual-sided text, QR/barcodes, photos, and backgrounds. |
| update_card | Update fields, photos, barcodes, or front/back backgrounds on an existing saved card. |
| stage_badge_order | Calculate card subtotal, automatic back-print cost, shipping, and ZIP sales tax; saves a staged order for checkout. |
| list_staged_orders | List active staged orders waiting for confirmation or Stripe payment. |
| discard_staged_order | Cancel/discard a staged order by stage_id. |
| confirm_badge_order | Submit 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...). |
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