REST API
The label engine as a REST API.
A multi-tenant API under /api/v1 with an OpenAPI document and a hand-written typed .NET client. It runs on the API server you install, on your own infrastructure. Everything the editor does, it does through this API, so you can too.
What is available now and what is not yet is on the status page.
Want to see what the engine draws first? Try a template in the online playground.
- /api/v1Versioned in the URL. Additive changes only within a version.
- OpenAPIA generated document and a hand-written typed .NET client.
- 4 ways inUsers, API keys, OAuth2 client credentials and agents.
- IdempotentPrint jobs, batch jobs and sequence allocation honor an idempotency key.
01 Endpoints
What you can call.
Every path is relative to /api/v1. Each area names the scope a credential needs.
Samples and conventions Print jobs from a server| Area | Endpoints, relative to /api/v1 | Scope |
|---|---|---|
| Render and export | POST /renderPOST /render/elements | render |
| Printer commands | POST /commands | render |
| Barcodes | GET /barcodes/symbologiesPOST /barcodes/encodePOST /barcodes/validate | render |
| Templates | GET, POST /templatesGET /templates/{id}/versionsPOST /templates/{id}/publishPUT /templates/{id}/draft | templates.read, templates.write |
| Print jobs | POST /print-jobsGET /print-jobs/{id}POST /print-jobs/{id}/cancel | |
| Printers | GET, POST /printersGET /printers/{id}/status | print for reads, printers.manage for writes |
| Agents | GET /agentsPOST /agents/enrollments | printers.manage |
| Batch jobs | POST /jobsGET /jobs/{id}/output | render |
| Assets | GET, POST /assets/fontsGET, POST /assets/images | assets.write |
| Data and expressions | /data-sourcesPOST /data-sources/infer-schemaGET, POST /sequencesPOST /expressions/validate | templates.write, print |
| Administration | GET, POST /api-keysGET /audit-eventsGET /usageGET, PUT /tenant/settings | admin |
02 Access
Four ways to authenticate.
The tenant is never a parameter. It comes from the credential, so one credential can only ever see its own tenant.
Credentials
- Users through the editor's backend, with OIDC sign-in.
- Machine clients with API keys that carry scopes, an expiry and an optional IP allow-list.
- Service clients with OAuth2 client credentials.
- Agents with signed assertions.
Roles and scopes
- TenantAdmin
- Designer
- Operator
- Integrator
Scopes: render, print, templates.read, templates.write, assets.write, printers.manage, templates.raw, admin.
03 Behavior
Predictable under load. Safe to retry.
The conventions a client needs to behave well are part of the contract: idempotency, concurrency, errors and limits.
Predictable under load
- Small renders answer inline. Bigger ones return a job with progress, cancel and a signed webhook on completion.
- Per-tenant rate limits answer 429 with a Retry-After header.
- Lists page with a cursor and a limit, capped at 200.
Safe to retry
- Print jobs, batch jobs and sequence allocation honor an idempotency key.
- Template updates use ETag and If-Match, so two editors cannot silently overwrite each other.
- Errors are typed problem details, localized to the caller.
Conventions at a glance
/api/v1Versioned in the URL. Additive changes only within a version.OpenAPIA generated document, plus a hand-written typed .NET client.Idempotency-KeyHonored on print jobs, batch jobs and sequence allocation.ETag, If-MatchSafe concurrent edits to templates.Problem detailsTyped errors with a code and trace id, localized to the caller.429, Retry-AfterPer-tenant rate limits. A 429 response carries a Retry-After header.
One request, annotated
One print job request and the error response a request with data the API cannot process gets, with the numbers in the sample explained below.
POST /api/v1/print-jobs Idempotency-Key: 6b0f… Content-Type: application/json { "labelSets": [ { "template": …, "data": { … }, "copies": 2 } ], "onError": "stop" } // Data the API cannot process returns problem details: HTTP/1.1 422 Unprocessable Content Content-Type: application/problem+json { "type": "https://…", "code": "BX####", "title": "…", "status": 422, "detail": "…", "errors": [ … ], "traceId": "…" }
POST /api/v1/print-jobsQueue labels for printing. Paths are relative to /api/v1, and this endpoint needs the print scope.Idempotency-KeyThe sample sends an idempotency key with the request. The API honors one on print jobs, batch jobs and sequence allocation.labelSetsEach label set names a template, the data to bind into it and the number of copies.onErrorHow the job reacts to an error. This sample uses stop.422 Unprocessable ContentData the API cannot process returns typed problem details, localized to the caller.code, traceIdEvery error carries a code and a trace id. The code shown is a placeholder.
Illustrative only.
04 Multi-tenant security
Multi-tenant by design
Tenant isolation is a database rule, not a habit. One API server can serve many of your own customers, each in its own tenant. Isolation is enforced in layers, and tested on every change.
Signed in as tenant A
| Tenant | Template | Result |
|---|---|---|
| A | Shipping label 4×6 | Returned |
| B | Customs invoice | Not visible |
| A | Pallet label | Returned |
| B | Returns slip | Not visible |
| A | Carton label | Returned |
Row-level security on every tenant table
SQL Server policies filter and block at the database, with a second layer of query filters in the application.
Identity only from the credential
The tenant comes from the token, key or agent record. A forged header is ignored.
Every endpoint is probed
CI calls every endpoint with another tenant's identifiers and expects not found. A new endpoint without a probe fails the build.
Append-only audit log
Every state-changing call and security event writes an audit row in the same transaction. The application cannot update or delete it.
Encrypted, then purged
TLS in transit, encryption at rest, and per-tenant keys for print payloads, which are deleted after a retention period.
Controls are designed around common security practice. This is not a certification or an attestation report. Security in your deployment
Next step
Wire it in.
See the HTTP sample, the SDK layers and the quick-start outline, or talk to us about your labels, printers and volumes.