# Barcode, QR & Logistics Label Sheet Edge API (v1.0.0)

> Generate scan-verified QR Codes, GS1-128, EAN-13, UPC-A (SVG + lossless PNG) and Avery/Zebra label sheets in <15ms.

Deterministic ISO/IEC 18004 QR Code (v1-v10 GF(256) Reed-Solomon), GS1-128 (FNC1 Application Identifiers), Code-128 (auto Set B/C), EAN-13, and UPC-A encoder returning crisp SVG, lossless binary PNG, and print-ready Avery 5160 / Zebra 4x6 & 2x1 label sheets.

## Why Agents Use This API Instead of DIY
Eliminates fragile canvas/native image binaries, broken QR Reed-Solomon/mask implementations, wrong GS1 Modulo-10/103 check digits, and misaligned Avery 5160 or Zebra thermal @page CSS.

## Connection & Payment (x402 Default + Optional Bearer API Key)
- **MCP Server (Streamable HTTP):** `https://barcode-pass.apikeg.com/mcp` (Registry ID: `com.apikeg/barcode-pass` — `initialize`, `tools/list`, `resources/*`, and `prompts/*` are free)
- **OpenAPI 3.1 Spec:** [openapi.json](https://barcode-pass.apikeg.com/openapi.json)
- **Full Schema & Examples:** [llms-full.txt](https://barcode-pass.apikeg.com/llms-full.txt)
- **RFC 9727 API Catalog:** [.well-known/api-catalog](https://barcode-pass.apikeg.com/.well-known/api-catalog)
- **x402 Bazaar Manifest:** [.well-known/x402.json](https://barcode-pass.apikeg.com/.well-known/x402.json)
- **MCP Discovery Manifest:** [.well-known/mcp.json](https://barcode-pass.apikeg.com/.well-known/mcp.json)
- **A2A Agent Card:** [.well-known/agent-card.json](https://barcode-pass.apikeg.com/.well-known/agent-card.json)
- **Primary Payment (Zero Signup):** Cloudflare Monetization Gateway (`HTTP 402` / `x402` v2 with USDC on Base).
- **Optional Monthly API Key:** Pass `Authorization: Bearer ak_live_...` ($5 / $20 / $50 monthly per-product Stripe plans at [apikeg.com/account](https://apikeg.com/account)).
- **Free Preflight:** Append `?dry_run=true` (or header `X-Dry-Run: true`) to validate any request payload at `$0.00` cost.

## Tools & REST Endpoints
- [`generate_barcode`](https://barcode-pass.apikeg.com/tools/generate-barcode.md) (`POST https://barcode-pass.apikeg.com/v1/generate-barcode`) — $0.001 USD per generated barcode or QR symbol (SVG + PNG) (x402 instant micropayment): Encodes a single QR Code (ISO 18004 v1-v10), Code-128, GS1-128, EAN-13, or UPC-A symbol, validating/computing GS1 check digits and returning both crisp vector SVG and lossless binary base64 PNG.
- [`generate_label_sheet`](https://barcode-pass.apikeg.com/tools/generate-label-sheet.md) (`POST https://barcode-pass.apikeg.com/v1/generate-label-sheet`) — $0.002 base (up to $0.008 max ($0.002 base + $0.002 per 50 rendered labels, capped at $0.008 for up to 200 labels), x402 variable settlement): Batch-encodes up to 200 QR or 1D barcodes into print-ready @page HTML/SVG label sheets formatted for Avery 5160 (30-up US Letter), Zebra 4x6 shipping thermal, or Zebra 2x1 retail/bin tags.
- [`validate_gtin_check_digit`](https://barcode-pass.apikeg.com/tools/validate-gtin-check-digit.md) (`POST https://barcode-pass.apikeg.com/v1/validate-gtin-check-digit`) — $0.0005 USD per GTIN/SSCC validation request (up to 100 codes) (x402 instant micropayment): Validates or computes official GS1 Modulo-10 check digits for GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13), GTIN-14, GSIN-17, and SSCC-18 identifiers (single value or batch up to 100).

## Instant MCP Configuration
```json
{
  "mcpServers": {
    "barcode-pass": {
      "type": "streamable-http",
      "url": "https://barcode-pass.apikeg.com/mcp"
    }
  }
}
```

## Common Agent Use Cases
- generate QR code PNG SVG API without dependencies
- GS1-128 barcode generator FNC1 application identifiers
- EAN-13 UPC-A check digit validator and barcode SVG
- Avery 5160 printable barcode label sheet HTML API
- Zebra 4x6 2x1 thermal shipping barcode label MCP
