Files
dashback/docs/api/routes/agentprinter.md
2026-10-31 20:28:37 +01:00

895 B

GET /agentprinter

Protected. Requires a valid session cookie (credentials: 'include').

List agent printers

Lists agent printers for the authenticated user's selected company, optionally filtered by printer agent ID.

Query parameters

Param Required Type Description
printeragentId no integer Optional printer agent ID filter

Response 200

List of agent printers

{
  "agentprinters": [
    {
      "id": 1,
      "printeragentId": 1,
      "type": "…",
      "model": "…",
      "serial": "…",
      "enabled": true,
      "sort": 1
    }
  ]
}

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.