Printago API

Webhooks

Receive HTTP POST callbacks when events occur in your Printago account. Webhooks let you react to printer status changes, print job updates, and order events in realtime.

Overview

When you configure a webhook, Printago sends an HTTP POST request to your URL each time a subscribed event occurs. Webhooks are configured via the Notification Settings API or the Printago dashboard under Settings → Notifications.

Tip: You can also receive notifications via Discord, Slack, Pushover, and Telegram. Webhooks give you the most control over how you process events.

Delivery Format

Every webhook is delivered as an HTTP POST request with a JSON body. Your endpoint must respond with a 2xx status code to acknowledge receipt.

Method
POST
Content-Type
application/json
X-API-Key
The API key you provided when configuring the webhook. Use this to verify that the request came from Printago.

Payload Schema

All webhook payloads share a common envelope format:

Webhook Payload
{
  "id": string,          // Identifies this delivery; the same on every retry of it
  "event": string,       // The event name (e.g. "onJobCompleted")
  "occurredAt": string,  // ISO 8601 timestamp of when the event happened
  "timestamp": string,   // ISO 8601 timestamp of when this request was sent
  "data": {
    "printer": Printer | null,     // Included for printer and job events
    "printJob": PrintJob | null    // Included for job events
  }
}

The data object contains the full Printer and/or PrintJob resource depending on the event type. These are the same objects returned by the GET /v1/printers/{id} and GET /v1/print-jobs/{id} endpoints respectively.

Printer Events

These events fire when a printer's status changes. The data.printer field contains the full Printer object.

Event Description
onPrinterOnline A printer has come online and is connected.
onPrinterOffline A printer has gone offline and is no longer connected.
onPrinterHmsError A printer health monitoring system (HMS) error has been detected.
onPrinterHmsWarning A printer health monitoring system (HMS) warning has been detected.
onPrinterContinuousPrintDisabled Continuous print mode has been automatically disabled on a printer.
Example: Printer Online
{
  "id": "d9c41e07b2a85f3d16e0c7a4",
  "event": "onPrinterOnline",
  "occurredAt": "2026-03-13T14:30:00.000Z",
  "timestamp": "2026-03-13T14:30:00.210Z",
  "data": {
    "printer": {
      "id": "cm7abc123def456ghi",
      "name": "Bambu X1C #1",
      "model": "X1C",
      "status": "idle",
      "isOnline": true,
      ...
    },
    "printJob": null
  }
}

Print Job Events

These events fire when a print job changes status. The data.printJob field contains the full PrintJob object, and data.printer contains the printer the job is assigned to (if available).

Event Description
onJobStarted A print job has started printing.
onJobCompleted A print job has completed successfully. (In the Notification Settings API, the setting that turns this event on is onJobSucceeded.)
onJobFailed A print job has failed.
onJobCancelled A print job has been cancelled.
Example: Job Completed
{
  "id": "d4f1c2a9e83b07d65a1e2c4f",
  "event": "onJobCompleted",
  "occurredAt": "2026-03-13T16:45:00.000Z",
  "timestamp": "2026-03-13T16:45:00.280Z",
  "data": {
    "printer": {
      "id": "cm7abc123def456ghi",
      "name": "Bambu X1C #1",
      "model": "X1C",
      "status": "idle",
      "isOnline": true,
      ...
    },
    "printJob": {
      "id": "cm7xyz789ghi012jkl",
      "status": "completed",
      "partName": "Benchy",
      "assignedPrinterId": "cm7abc123def456ghi",
      "attemptNumber": 1,
      "printingStartedAt": "2026-03-13T14:30:00.000Z",
      "printingCompletedAt": "2026-03-13T16:45:00.000Z",
      ...
    }
  }
}

Order Events

These events fire when orders are created, cancelled, or closed. Order events do not include printer or printJob data in the payload.

Event Description
onOrderCreatedManual A new order was created manually.
onOrderCreatedRetail A new order was created from a retail integration (Shopify, eBay, TikTok Shop).
onOrderCancelled An order has been cancelled.
onOrderClosed An order has been closed (all items fulfilled).
onOrdersAutoPrinted One or more orders were automatically sent to print via auto-print rules.
Example: Order Created (Retail)
{
  "event": "onOrderCreatedRetail",
  "timestamp": "2026-03-13T10:15:00.000Z",
  "data": {
    "printer": null,
    "printJob": null
  }
}

Configuration

Configure webhooks via the API or the Printago dashboard.

1. Enable the webhook channel

POST /v1/settings/notifications
{
  "channel": "webhook",
  "data": {
    "webhookUrl": "https://your-server.com/webhook",
    "apiKey": "your-secret-key-at-least-32-characters-long"
  }
}

2. Subscribe to events

PATCH /v1/settings/notifications/{id}/configure
{
  "onJobSucceeded": true,
  "onJobFailed": true,
  "onPrinterOffline": true,
  "onOrderCreatedRetail": true
}
URL Requirements
Must use https://. Localhost and private IP addresses are not allowed.
API Key
Minimum 32 characters. Sent in the X-API-Key header of every webhook request for you to verify.

Retries

Respond within 10 seconds. If an attempt fails, Printago tries again: the first retry comes 2 seconds later, and each wait after that doubles (4 s, 8 s, 16 s, and so on) up to 2 minutes between attempts. Printago keeps trying for 15 minutes, about 14 attempts in all.

Retried
Connection failures, dropped connections, DNS errors, no response within 10 seconds, 408, 429, and any 5xx.
Not retried
Any other 4xx (400, 401, 403, 404, …). Your endpoint rejected the request, and the same request would be rejected again.

Delivery is at least once. A retry can arrive after your endpoint accepted an earlier attempt, if Printago never saw the response, so treat a repeated id as a delivery you have already handled. Deliveries are independent and can arrive out of order (a retried onJobStarted can land after the same job's onJobCompleted); order them by occurredAt.

If the webhook is switched off, removed, or unsubscribed from the event while a delivery is retrying, the retries stop.

Failure Handling

A delivery fails when Printago stops trying: your endpoint answered with a 4xx that is not retried, or 15 minutes of retries all failed. That event is not sent again. A failed delivery counts once toward auto-disable, however many attempts it took. If 10 or more deliveries fail within a 24-hour window, the webhook is automatically disabled to prevent further failed deliveries.

Warning: Once auto-disabled, you must manually re-enable the webhook from the dashboard or API. Check your endpoint health and re-enable when the issue is resolved.