---
title: "API keys"
description: "Create API keys so scripts and integrations can report on printers, jobs, queues and materials, provision users or upload files without signing in as a person."
url: https://pluraprint.com/docs/account/api-keys
---
# API keys

Create API keys so scripts and integrations can report on printers, jobs, queues and materials, provision users or upload files without signing in as a person.

API keys let scripts, integrations, and other systems authenticate with Pluraprint without signing in as a person. Use them to report on printers, jobs, queues, materials, and sites, provision users, or upload sliced files. The [API reference](https://pluraprint.com/docs/reference/api) documents every REST endpoint, its required access, and its request and response fields.

## Creating an API key

1. Open **Admin** in the sidebar, then choose **API keys** under **People & access**.
2. Select **Create API key**.
3. Give the key a **name** that says what it is for, such as “User provisioning” or “Reporting dashboard”.
4. Choose **Access** using the profiles below. Each key gets only the capabilities in that profile, so choose the smallest one that covers your integration.
5. Choose an **expiration**: 30 days, 90 days, 1 year, or a future custom date.
6. Select **Create**.

Caution

Your new API key is shown **once**, immediately after creation. Copy it into a password manager or secrets store. Pluraprint can’t show it again.

| Access profile | Capabilities | Use |
| --- | --- | --- |
| Queue reporting | `queue:read` | Queue completion estimates |
| Read printers | `printers:read` | Printer status and loaded materials |
| Read jobs and history | `jobs:read`, `queue:read` | Jobs, queue contents, lifecycle events, history, and estimates |
| Read materials | `materials:read` | Material variants, types, brands, and colors |
| Read sites | `sites:read` | Site details |
| Fleet reporting | `printers:read`, `jobs:read`, `queue:read`, `materials:read`, `sites:read` | All fleet reporting endpoints |
| Slicer uploads | `files:upload` | Upload files through the OctoPrint-compatible interface |
| Read users | `users:read` | User directory |
| Create and update users | `users:read`, `users:write` | User provisioning and ID number assignment |
| Manage users and role assignments | `users:read`, `users:write`, `roles:write` | User provisioning and role changes |
| Read automations, runs and deliveries | `workflows:read`, `deliveries:read` | Automations, run history with condition traces, “why was this sent”, exports and the delivery log |
| Run manual automations | `workflows:read`, `workflows:run` | Start automations that are run by hand |
| Draft, import and run automations | `workflows:read`, `workflows:write`, `workflows:run`, `deliveries:read` | Create and edit drafts, import exports as drafts, and run manual automations |

Role changes embedded in user creation or updates, including bulk requests and an empty `roles` array, require `roles:write` as well as `users:write`.

Reporting access covers the whole deployment. A `siteId` filter selects a location, but it doesn’t restrict the key to that site. Job reporting exposes job names and owner IDs, so grant it only to integrations allowed to read that information.

Automation access acts as the person who created the key, and that person must still hold the matching permission (view, manage or run automations; view connections for the delivery log). A key can create and edit drafts and import exports. It can’t publish, resume or turn on an automation. Imports arrive paused or as drafts, and a person turns them on in Pluraprint. See [Export and import](https://pluraprint.com/docs/automations/import-export).

Slicer uploads belong to the person who created the key. That person must still have upload permission, and uploaded jobs go through the normal preparation and approval process. See [Submitting a print job](https://pluraprint.com/docs/print-jobs/submitting-a-print-job#uploading-from-orcaslicer).

## Managing existing keys

The **API keys** page lists every key created for your organization, showing:

- Its name and capabilities
- When it expires
- When it was last used

You can search the list by name. To revoke a key that is no longer needed or may have leaked, select **Delete**. Any system using that key loses access immediately.

## Good practices

- Create a separate key for each integration, so you can revoke one system’s access without affecting the others.
- Rotate keys before their required expiration date.
- Treat API keys like passwords: never commit them to source control or share them over unencrypted channels.

Creating, viewing and deleting API keys each need a permission. See [Roles and permissions](https://pluraprint.com/docs/team/roles-and-permissions).

## Replacing legacy keys

Keys created before scoped API keys existed are disabled and labeled **Legacy key — replace before use**. Create a replacement with the minimum access, update the integration, then delete the old key. Pluraprint can’t convert an old key to the new format.

Send the key as `Authorization: Bearer <key>` or `X-API-Key: <key>` over HTTPS. Missing, invalid, and expired keys return HTTP 401. Insufficient capabilities return HTTP 403. Authorized REST operations record the key’s public identity and issuing user in the audit trail.
