Input Parameters
| Field | Type | Required / Default | Description & Constraints |
|---|---|---|---|
template |
string |
Default: "avery_5160" |
Print stock layout: 'avery_5160' (3x10 US Letter 8.5x11in, 30/page), 'zebra_4x6' (4x6in shipping/pallet thermal), or 'zebra_2x1' (2x1in retail/shelf thermal). (enum: avery_5160 | zebra_4x6 | zebra_2x1) |
items |
array |
Required | 1 to 200 barcode/QR label definitions to render onto print-ready sheets. (minItems: 1, maxItems: 200) |
startOffset |
integer |
Default: 0 |
Blank cells to skip on page 1 for partially used Avery 5160 sheets. (min: 0, max: 29) |
includeBarcodeText |
boolean |
Optional | Render human-readable text inside each barcode SVG (defaults to true for 1D, false for QR). |
includePng |
boolean |
Default: false |
Also include lossless base64 PNGs alongside each label's inline SVG. |
foreground |
string |
Optional | Foreground bar/module hex color (#RGB or #RRGGBB, default '#000000'). (maxLength: 16) |
background |
string |
Optional | Background hex color (#RGB or #RRGGBB, default '#FFFFFF'). (maxLength: 16) |
REST Example (curl)
curl -X POST "https://barcode-pass.apikeg.com/v1/generate-label-sheet" \
-H "Content-Type: application/json" \
-d '{
"template": "avery_5160",
"startOffset": 0,
"items": [
{
"format": "ean13",
"value": "4006381333931",
"title": "Neon Highlighter Yellow",
"subtitle": "$3.49",
"sku": "HL-YLW-01",
"quantity": 15
},
{
"format": "upca",
"value": "036000291452",
"title": "Cotton Tissue Pack",
"subtitle": "$5.99",
"sku": "CT-PK-12",
"quantity": 15
}
]
}'
MCP tools/call Payload
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "generate_label_sheet",
"arguments": {
"template": "avery_5160",
"startOffset": 0,
"items": [
{
"format": "ean13",
"value": "4006381333931",
"title": "Neon Highlighter Yellow",
"subtitle": "$3.49",
"sku": "HL-YLW-01",
"quantity": 15
},
{
"format": "upca",
"value": "036000291452",
"title": "Cotton Tissue Pack",
"subtitle": "$5.99",
"sku": "CT-PK-12",
"quantity": 15
}
]
}
}
}