Overview
Client-mode REST API connectors for BarTender label printing: print BarTender documents with data from MQTT through the BarTender 2022+ Actions API (on-premises or BarTender Cloud) or Print Portal, follow the print script status and variables, and list printers and Print Portal libraries. This is one of the templates in the BarTender (Seagull Scientific) label printing REST API app (bartender-label-printing). Deploy it alongside the other connectors of that app when they depend on each other (for example a token connector plus an API connector).
Auth
- BarTenderActions: Windows authentication (Negotiate) on the REST service; not sent by the connector (reverse proxy needed, unverified)
- BarTenderCloud: Authorization: Bearer {value.json.access_token}
- BarTenderPrintPortal: POST /BarTender/api/v1/Authenticate {userName,password} -> token; Authorization: Bearer {value.json.token}
- secret: [“BARTENDER_PORTAL_USERNAME”, “BARTENDER_PORTAL_PASSWORD”]
Template parameters
BASE_ADDRESS default: http://YOUR_BARTENDER_HOST:5159.
Events
Deploy
Get the template card (JSON withtemplate and metadata) from the broker, then deploy the connector:
BASE_ADDRESS already filled in:
-addConnector (do not include ADD METADATA).
Usage example
CallSubmitScript by publishing a JSON payload to its request topic, and read the reply on the response topic:

