PrintBase
  • Product
  • Pricing
  • Docs
  • Resources
PrintBase/Guides/Printing use cases

Print from a cloud app to an office without a VPN

An app on AWS or Azure can print to a branch office by posting a job. The office runs the agent. You do not merge the networks for printing.

For IT teams who only need printing, not a site-to-site VPN

Overview

A site-to-site VPN is the usual way to let a cloud server open port 9100 on a branch printer. For printing, you can skip that path. The branch PC runs the agent and connects outbound. The cloud app posts HTTPS to the API.

The branch still needs a PC that stays on, with the printer installed. A locked-down network must allow the agent outbound to the API host. It does not need an inbound rule.

Map each branch to printer codes in your app. The API does not know your office codes.

Create the job with POST /v1/print-jobs, an Authorization: Bearer header, printer_code, content_type pdf or raw, and exactly one of content or content_url. The free plan is 100 jobs a month on one computer.

Integration steps

  1. 01

    Decide the printer before the click

    Map the station, store, or line to a printer_code from GET /v1/printers. Do not ask the operator to pick a dialog.

  2. 02

    Create the document in your system

    PDF for driver printers, raw ZPL or ESC/POS when the device speaks that language.

  3. 03

    POST when the business event happens

    Pack, pay, check-in, or scan. Not on every autosave. Use the business id as Idempotency-Key.

  4. 04

    Show the job result where the work is

    queued is not done. Surface AGENT_OFFLINE and PRINT_ERROR to the person at the bench.

Node.js

// Branch office document
const res = await fetch('https://api.printbase.cloud/v1/print-jobs', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PRINTBASE_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': idempotencyKey,
  },
  body: JSON.stringify({
    printer_code: Number(process.env.PRINTER_CODE),
    content_type: 'pdf',
    content: pdf.toString('base64'),
    copies: 1,
  }),
});
if (!res.ok) throw new Error(`PrintBase ${res.status}: ${await res.text()}`);
const job = await res.json();
// { id: "job_abc", status: "queued" }

Details for this setup

What the VPN might still be for

File shares and directory services are unrelated. This removes the VPN only as a printer path.

Choose the API host

Default is https://api.printbase.cloud. The desktop app can select https://cn.api.printbase.cloud for the China node. Same paths.

Questions

Does the printer get a public IP?

No. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.

Can a serverless function print?

Yes, if it can do HTTPS and has the key. It never connects to the office LAN.

How do we audit?

Keep the job id in the business system. GET returns status, not the document body.

Agent identity?

The agent signs in with an API key or an account on that organization. Use separate keys per branch if you need to revoke one.

Related guides

  • Print from AWS to a printer behind a firewall

    A server on AWS does not need a path to the printer's private IP. The office agent connects outbound and your server posts a job.

  • Print from cloud-hosted SAP without a site-to-site VPN

    Send a SAP document PDF to an on-prem printer without a VPN to that printer. Your integration layer calls the API; the agent connects outbound.

  • Add printing to a multi-tenant SaaS

    Each customer site prints to its own printer_code. The API key stays on your server. Enterprise accounts can isolate customers in child organizations.

  • Google Cloud Print replacement for developers: an API and an agent

    Google Cloud Print stopped on December 31, 2020. A Google Cloud Print replacement for server-side printing is an agent plus a REST API, not a browser dialog.

Free plan: 100 jobs a month on one computer, no card.

Create a free accountRead the API docs
PrintBase

PrintBase connects your applications to physical printers anywhere - securely, reliably, and in real time.

Product
Receipt PrintingLabel PrintingDashboardDevicesWebhooks
Resources
DocsBlogStatusAPI ReferenceDownloadPrintBase vs PrintNodePrintNode PricingFAQ
Guides
All guidesIntegrationsPrintersCode samplesComparisonsUse casesTroubleshooting
Company
ContactSecurityPrivacy

© 2026 Aveniq Technologies OÜ. All rights reserved. PrintBase is a service of Aveniq Technologies OÜ.

PrivacyTermsRefunds