The Nedject Pear API Gateway provides ultra-low-latency programmatic rendering of prepress-grade optical assets: 300 DPI QR Codes, Vector Barcodes (CODE128, EAN13, DataMatrix),CMYK Prepress Separations, and Web NFC NDEF Touches. Protected by strict Network Origin Whitelisting, SHA-256 key hashing, sliding-window rate limiters, and dynamic credit billing.
Test live product barcode labels (EAN-13), industrial shipping labels (4x5" thermal), freight master cartons (ITF-14), Level-H QR forensics, contactless NFC badges, and CMYK prepress outputs in the interactive testbench.
Navigate to your Pear API Gateway and generate a live key. Keys start with ndj_live_.... Only the SHA-256 hash is saved in our database.
Add your client domains or backends to the origin whitelist (e.g. https://store.example.com). Our threat defense blocks requests without matching whitelisted origins.
Optionally configure global prepress settings in B2B Configuration (QR Error Correction ‘H’, 300/600 DPI, CMYK separation, Barcode symbologies).
Send a POST /api/v1/generate call with your Bearer token and origin header. Receive instant vector SVG or high-DPI raster assets.
curl -X POST https://nedject.com/api/v1/generate \
-H "Authorization: Bearer ndj_live_YOUR_API_KEY" \
-H "Origin: https://store.example.com" \
-H "Content-Type: application/json" \
-d '{
"type": "qr",
"payload": "https://store.example.com/item/4921",
"format": "svg",
"options": {
"dpi": 300,
"errorCorrection": "H",
"dotShape": "sharp",
"photoQRMode": "standard",
"colorSeparation": "CMYK-FOGRA39",
"margin": 2
}
}'/api/v1/generatePrimary high-speed optical synthesis pipeline. Processes vector QR codes, prepress DPI formatting, and barcodes.
Bearer ndj_live_...https://whitelisted-domain.comapplication/jsonx-credits-remaining: Credits left in current billing cyclex-origin-verified: true if Origin header matched whitelistx-ratelimit-remaining: Requests left in 60s sliding window{
"type": "qr" | "barcode" | "photo" | "photo-dpi" | "nfc",
"payload": "https://example.com/asset-data",
"format": "svg" | "png" | "pdf",
"options": {
"dpi": 300 | 600 | 1200,
"errorCorrection": "L" | "M" | "Q" | "H",
"colorSeparation": "sRGB" | "CMYK-FOGRA39",
"dotShape": "sharp" | "square" | "dots" | "rounded" | "squircle" | "diamond" | "pill" | "classy" | "hex",
"photoQRMode": "standard" | "halftone" | "fusion" | "dither" | "silhouette" | "edge-matrix" | "microdots" | "center-logo",
"eyeFrameShape": "square" | "rounded" | "circle" | "squircle",
"eyeBallShape": "square" | "rounded" | "circle" | "diamond",
"photoContrast": 1.45,
"photoBrightness": 1.0,
"photoDotScale": 0.62,
"photoBWMode": true,
"symbology": "CODE128" | "EAN13" | "UPC" | "ITF14" | "DATAMATRIX",
"margin": 2
}
}/api/user/configRead or update a tenant's default prepress parameters programmatically, avoiding hardcoded DPI or symbology values in client code.
curl -X GET "https://nedject.com/api/user/config?userId=YOUR_USER_ID" \ -H "Authorization: Bearer YOUR_API_KEY"
| HTTP CODE | ERROR TYPE | REASON & THREAT TELEMETRY | RESOLUTION ACTION |
|---|---|---|---|
| 200 OK | SUCCESS | Origin matches whitelist and key is valid. Asset generated. | None. Output asset URL returned. |
| 401 UNAUTHORIZED | INVALID_KEY | Bearer token missing, formatted incorrectly, or revoked. | Generate or rotate API key in Pear Gateway. |
| 403 FORBIDDEN | ORIGIN_FORBIDDEN | The Origin header did not match any whitelisted origins. | Add client domain to whitelist in Pear Gateway. |
| 402 PAYMENT REQUIRED | CREDITS_EXHAUSTED | Monthly optical generation credits depleted for current tier. | Upgrade to Starter, Pro, or Enterprise in Plans. |
| 429 RATE LIMIT | RATE_LIMIT_EXCEEDED | Request volume exceeded sliding 60-second RPM ceiling. | Implement exponential backoff retry. |
When asynchronous generation batches complete or credit quotas hit low thresholds, Nedject pushes event payloads to your configured webhook URL. Every webhook includes an X-Nedject-Signature header calculated using HMAC-SHA256 and your signing secret.
// Node.js Webhook Verification Middleware
import crypto from 'crypto';
export function verifyNedjectWebhook(
rawBody: string,
signatureHeader: string,
webhookSecret: string
): boolean {
const computedHash = crypto
.createHmac('sha256', webhookSecret)
.update(rawBody)
.digest('hex');
return crypto.timingSafeEqual(
Buffer.from(signatureHeader),
Buffer.from(computedHash)
);
}/api/v1/generate route.Choose a studio asset or upload your own logo/photo — templates composite it live onto Canvas.
Inspects all 9 backend dotShape geometries supported natively by POST /api/v1/generate alongside ?raw=true SVG streaming.
Programmatic invoice sealing workflow returning crisp QR/Code-128 assets ready to drop into ERP PDF templates.
Streams raw SVG markup with embedded filtered template artwork and crisp vector finder patterns when ?raw=true is appended.
Server-side REST barcode synthesis for automated WMS picking stations and conveyor label applicators.
Asynchronous batch render completion notifications signed with HMAC-SHA256 headers and verification QR.
Generates receipt headers, loyalty QRs, and scannable EAN-13 coupon barcodes in one cloud call.