Files
dashback/docs/api/routes/labeltemplate/list.md
2026-10-03 23:13:36 +02:00

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.