Skip to content

List available printers

List printers visible through connected CloudPrint agents and select a stable printer ID for a workflow.

GET/api/v1/printersAPI version: v1operationId: listPrintersView as Markdown

What this endpoint does

List printers visible through connected CloudPrint agents and select a stable printer ID for a workflow.

Authentication

Send a short-lived access token in Authorization: Bearer <access_token>.

Required scopes: printers:read

Request

Production base URL: https://public-api.cloudprint.me/api/v1/printers

Parameters

NameLocationTypeRequiredDescriptionConstraints
limitqueryintegernoMaximum number of printers to return.min: 1; max: 100; default: 100
cursorquerystring | nullnoCursor from the previous response next_cursor field.

Request body

This endpoint has no request body.

Example requests

cURL

bash
curl -sS 'https://public-api.cloudprint.me/api/v1/printers?limit=100' \
  -H "Authorization: Bearer $ACCESS_TOKEN"

Response

HTTP status: 200 — Account printers

Response fields

NameTypeRequiredDescriptionConstraints
printersarrayyesPrinters discovered through agents connected to the current account.
next_cursorstring | nullyesOpaque cursor for the next result page; send it back unchanged.

Example response

json
{
  "printers": [
    {
      "printer_id": "11111111-1111-4111-8111-111111111111",
      "agent_id": "11111111-1111-4111-8111-111111111111",
      "local_identifier": "zebra-zd421-usb-001",
      "name": "Warehouse Label Printer",
      "status": "online",
      "last_seen_at": null,
      "agent_name": "Warehouse PC agent",
      "agent_hostname": "warehouse-pc",
      "agent_status": "online",
      "agent_last_seen_at": null,
      "capabilities": {
        "backend": "windows_native",
        "language_profiles": [
          null
        ],
        "supports_custom_media": false,
        "supports_orientation": false,
        "supports_copies": false,
        "supports_duplex": false,
        "supports_color": false,
        "supports_scaling": false,
        "supports_offsets": false,
        "supports_printable_area": false,
        "supported_dpi": [
          null
        ],
        "supported_media_sizes": [
          null
        ],
        "supported_feed_types": [
          "gap"
        ],
        "darkness_min": 0,
        "darkness_max": 30,
        "speed_min": 1,
        "speed_max": 14
      },
      "endpoint": {
        "system_print_available": false,
        "raw_passthrough_available": false,
        "configuration_issue": null,
        "os": "linux",
        "driver_name": "CUPS",
        "port_name": "ipp://printer.local/ipp/print",
        "print_processor": "cups",
        "data_type": "RAW",
        "connection_type": "cups",
        "default_media_profile_id": null,
        "default_media_profile": null
      }
    }
  ],
  "next_cursor": null
}

Errors

HTTP statusDescription
401OAuth bearer token is missing or invalid
403OAuth bearer token does not include printers:read
422Pagination parameters are invalid
429Rate limit exceeded
500Unexpected error

Integration guidance

  • Persist printer_id; a local queue name is display text and can change.
  • Check status, capabilities and endpoint data before offering RAW, duplex, color, media-size or DPI options.

Guides for integrating CloudPrint, connecting the local agent and operating print workflows.