---
title: "Export and import"
description: "Move automations, notification changes and connections between Pluraprint deployments, such as staging to production, without secrets or anything going live."
url: https://pluraprint.com/docs/automations/import-export
---
# Export and import

Move automations, notification changes and connections between Pluraprint deployments, such as staging to production, without secrets or anything going live.

You can export your automations to a file and import it into another Pluraprint deployment, for example to build and test on a staging deployment and then bring the result to production.

## Exporting

Open **Admin → Automations** and select **More → Export**. Pluraprint downloads a JSON file with:

- Every automation that is not archived: its published version and any unpublished draft.
- Your changes to shipped notifications, and the instance setting for email to unverified addresses (with notifications view permission).
- Your connections and their event subscriptions (with connections view permission).

The file never contains a secret. Connections travel without signing secrets, tokens or passwords, and without anything else that can hold a credential: only the origin of the endpoint URL (such as `https://hooks.example.com/`, without its path, query or user name and password) and the names of custom headers, without their values. It refers to everything by a name that means the same thing on another deployment, never by an internal id: sites by name, people by email address, roles, restriction policies, printer reservations and stations by name, pickup bins by code, connections by type and name, and automations by their key. Two connections of the same type with the same name are told apart in the file, but an import cannot match either of them to an existing connection. Give them different names first. The file does contain those email addresses, and the addresses your messages send to, so store it like any other administrative export.

Exporting needs automations view permission and is recorded in the audit log.

## Importing

Select **More → Import…** and choose an export file. Before anything changes, Pluraprint checks the file and shows what each item will become:

| Shown as | Means |
| --- | --- |
| New | An automation is created, paused, with its published version, ready for you to review and resume |
| Draft | An automation is created as a draft only, because something it needs is missing here (see below) |
| Copy | An automation with the same key exists; a copy comes in beside it |
| Update | A shipped notification gets your changes, or a setting changes |
| Uses existing | A connection with the same type and name exists, and imported automations use it |
| Skipped | Nothing is written for this item, with the reason |

It also lists everything the file refers to that this deployment does not have, such as a site, a person or a role.

Select **Import** to apply. Everything is written together, or nothing is: if any item has a problem that stops the import, such as an automation limited to a site that does not exist here, nothing is imported. Create or rename the missing site and try again.

Importing needs permission to manage automations. Creating connections also needs permission to manage connections, changing shipped notifications needs permission to manage notifications, and changing the setting needs permission to update settings. Without them, those items are skipped. An import through an [API key](https://pluraprint.com/docs/reference/api#import-automations) brings in automations as drafts only and skips connections, shipped notifications and settings. Each import is recorded in the audit log.

## Nothing imported is live

- **Automations** arrive **paused** (marked “imported”) or as **drafts**. Review each one, then resume or publish it.
- **Connections** start **turned off** with a new signing secret. Enter the full endpoint URL and the custom header values again (the connection cannot be turned on until you save them), enter any credentials the receiver needs, rotate the signing secret to copy it into the receiver, then turn the connection on. Subscriptions always arrive signed (Standard Webhooks), even if the source used the legacy unsigned format, and events this deployment does not have are left out.
- **Shipped notifications** that are off here get your changes as their published version and stay off. A shipped notification that is on here gets them as a draft instead. Publish it from **Admin → Notifications**. Notifications stay held until the upgrade’s conversion, as always.

Publishing during an import checks each step’s permissions against you, as publishing in the builder does. An automation whose steps need permissions you do not have arrives as a draft.

## When something is missing

An automation that refers to something this deployment does not have (a person, a role, a connection, a restriction policy, a printer reservation, a station, a pickup bin or another automation) arrives as a draft with that reference left empty, and the check lists what was not found. A name that matches more than one thing here counts as not found. A condition on something that has no name to match by, such as one particular print job or printer, is also left empty. Choose the replacement in the builder, then publish. The same happens when an automation uses something this deployment does not offer, such as a pickup trigger while the pickup module is turned off.

## When it already exists

An automation is matched by its key. Keys that Pluraprint itself uses for shipped notifications and for the upgrade’s conversion are stored with an `imported.` prefix, so an import never stands in for them. A file that repeats a key, or whose keys are not in the format Pluraprint writes, is refused. Choose what happens when the key exists here:

- **Leave it and skip the import** (the default) keeps the existing automation, and imported automations that refer to it use it.
- **Import a copy beside it** creates a new automation named “(imported)” with a new key.

Exporting what an import created gives back the same file, apart from when it was made, which automations were on, and which connections were turned on.
