Skip to content

API Schema Reference

The primary endpoint /api/v3/label accepts a JSON array of LabelRequest objects.

Root Object: LabelRequest

FieldTypeDescription
tracking_numberStringOptional identifier for the request.
itemsArray<Item>Required. List of content elements to draw on the PDF.
pdf_paramsPdfParamsConfiguration for the PDF document itself (size, metadata, profile).

PdfParams (Document Settings)

Controls the physical properties and metadata of the generated PDF.

FieldTypeDescription
widthfloatPage width in millimeters (mm).
heightfloatPage height in millimeters (mm).
pdf_profileStringCompliance level (e.g., "pdfa-1b", "" for standard). See Profiles.
metadata_titleStringDocument title. Required for pdfa-ua1 (Trigger E003 if missing).
metadata_authorsStringAuthor name(s).
metadata_subjectStringSubject/Keywords.
metadata_producerStringSoftware producer name.
metadata_languageStringISO 639-1 code (e.g., "en"). Auto-detected if missing.

Item (Content Container)

A container for various graphical elements. All fields are optional arrays.

FieldTypeDescription
1d_paramsArray<OneDParams>Linear barcodes (Code128, Code39, EAN, etc.).
2d_paramsArray<TwoDParams>Matrix barcodes (QRCode, DataMatrix, PDF417).
text_elementsArray<TextElement>Absolute positioned text.
linesArray<Line>Vector lines.
imagesArray<ImageElement>Raster images (JPG/PNG).
rectanglesArray<Rectangle>Vector rectangles.

OneDParams (Linear Barcodes)

FieldTypeDescription
one_d_contentStringData to encode.
formatStringSymbology: Code128, Code39, EAN13, etc.
sizeBarcodeSizeObject containing width, height, module_width.
positionPositionObject containing x, y coordinates.
colorStringBarcode color (Hex, e.g., #000000).
human_readable_textHumanReadableTextText attached to the barcode.
background_colorStringBackground fill color.
quiet_zoneintQuiet zone in modules.

TwoDParams (Matrix Barcodes)

FieldTypeDescription
two_d_contentStringData to encode.
formatStringSymbology: QRCode, DataMatrix, PDF417.
module_sizefloatSize of a single module (pixel) in mm.
xfloatX coordinate.
yfloatY coordinate.

TextElement (Absolute Text)

FieldTypeDescription
contentStringText content to display.
xfloatX coordinate.
yfloatY coordinate.
font_sizefloatFont size in points (pt).
font_nameStringFont family name (must be pre-loaded).
boldboolToggle bold weight.
alignStringAlignment: Left, Center, Right.
colorStringText color (Hex).