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
API areas, their endpoints and the scope each needs
AreaEndpoints, relative to /api/v1Scope
Render and exportPOST /renderPOST /render/elementsrender
Printer commandsPOST /commandsrender
BarcodesGET /barcodes/symbologiesPOST /barcodes/encodePOST /barcodes/validaterender
TemplatesGET, POST /templatesGET /templates/{id}/versionsPOST /templates/{id}/publishPUT /templates/{id}/drafttemplates.read, templates.write
Print jobsPOST /print-jobsGET /print-jobs/{id}POST /print-jobs/{id}/cancelprint
PrintersGET, POST /printersGET /printers/{id}/statusprint for reads, printers.manage for writes
AgentsGET /agentsPOST /agents/enrollmentsprinters.manage
Batch jobsPOST /jobsGET /jobs/{id}/outputrender
AssetsGET, POST /assets/fontsGET, POST /assets/imagesassets.write
Data and expressions/data-sourcesPOST /data-sources/infer-schemaGET, POST /sequencesPOST /expressions/validatetemplates.write, print
AdministrationGET, POST /api-keysGET /audit-eventsGET /usageGET, PUT /tenant/settingsadmin

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.

HTTPJSON
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": "…" }
  1. POST /api/v1/print-jobsQueue labels for printing. Paths are relative to /api/v1, and this endpoint needs the print scope.
  2. Idempotency-KeyThe sample sends an idempotency key with the request. The API honors one on print jobs, batch jobs and sequence allocation.
  3. labelSetsEach label set names a template, the data to bind into it and the number of copies.
  4. onErrorHow the job reacts to an error. This sample uses stop.
  5. 422 Unprocessable ContentData the API cannot process returns typed problem details, localized to the caller.
  6. 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

Templates stored by two tenants, as tenant A sees them
TenantTemplateResult
AShipping label 4×6Returned
BCustoms invoiceNot visible
APallet labelReturned
BReturns slipNot visible
ACarton labelReturned
Illustrative. A query with no tenant in context returns zero rows.
  • 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.

Security practice

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.