Skip to content

Start typing to search the documentation.

↑↓to navigateto open

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 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.
Access profileCapabilitiesUse
Queue reportingqueue:readQueue completion estimates
Read printersprinters:readPrinter status and loaded materials
Read jobs and historyjobs:read, queue:readJobs, queue contents, lifecycle events, history, and estimates
Read materialsmaterials:readMaterial variants, types, brands, and colors
Read sitessites:readSite details
Fleet reportingprinters:read, jobs:read, queue:read, materials:read, sites:readAll fleet reporting endpoints
Slicer uploadsfiles:uploadUpload files through the OctoPrint-compatible interface
Read usersusers:readUser directory
Create and update usersusers:read, users:writeUser provisioning and ID number assignment
Manage users and role assignmentsusers:read, users:write, roles:writeUser provisioning and role changes
Read automations, runs and deliveriesworkflows:read, deliveries:readAutomations, run history with condition traces, “why was this sent”, exports and the delivery log
Run manual automationsworkflows:read, workflows:runStart automations that are run by hand
Draft, import and run automationsworkflows:read, workflows:write, workflows:run, deliveries:readCreate 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.

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.

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.

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.

Last updated