840 B
840 B
GET /labeltemplate
Protected. Requires a valid session cookie (credentials: 'include').
List label templates
Lists all ZPL label templates for the selected company. The thumb field is returned as a base64-encoded PNG string when present. The content field is omitted to reduce payload size (use GET /labeltemplate/{id} for it).
Response 200
List of label templates
{
"labeltemplates": [
{
"id": 1,
"name": "…",
"width": 1,
"height": 1,
"dpi": 1,
"type": "…",
"content": {},
"thumb": "…"
}
]
}
Errors
| Status | Description |
|---|---|
| 400 | No company selected — {"error":"…"} |
| 401 | Unauthorized — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.