Print Hive Filament lifecycle API

The Filament lifecycle API from Print Hive — 5 operation(s) for filament lifecycle.

GitHub OpenAPI

Operations 7

GET /v1/filament-lifecycle-settings Get organization filament lifecycle settings #
PUT /v1/filament-lifecycle-settings Update organization filament lifecycle settings #
GET /v1/printers/{id}/filament-lifecycle-settings Get a printer's filament lifecycle settings #
PUT /v1/printers/{id}/filament-lifecycle-settings Update a printer's filament lifecycle overrides #
GET /v1/printers/{id}/filament-load-prompts List a printer's pending filament load prompts #
POST /v1/printers/{id}/filament-load-prompts/{promptId}/resolve Resolve a filament load prompt #
GET /v1/printers/{id}/next-job-material-match Match a printer's loaded filament to its next job #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/printhiv3d-com:printhiv3d-com-filament-lifecycle-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

printhiv3d-com-filament-lifecycle-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Print Hive API Documentation Filament lifecycle API
  description: 'REST API for the Print Hive print farm management platform: printers, print jobs, models, materials, inventory, smart queue, and integrations.'
  version: 1.0.0
servers:
- url: https://api.printhiv3d.com
  description: Production
tags:
- name: Filament lifecycle
paths:
  /v1/filament-lifecycle-settings:
    get:
      summary: Get organization filament lifecycle settings
      tags:
      - Filament lifecycle
      description: Automatic sync on load, automatic clear on unload, and the clear window in seconds, with the layer that set each value.
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1FilamentLifecycleSettings
      x-operation-id-source: derived
    put:
      summary: Update organization filament lifecycle settings
      tags:
      - Filament lifecycle
      description: Organization admins only. Send any of auto_sync_on_load, auto_clear_on_unload, and clear_window_seconds (30 to 1800).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: putV1FilamentLifecycleSettings
      x-operation-id-source: derived
  /v1/printers/{id}/filament-lifecycle-settings:
    get:
      summary: Get a printer's filament lifecycle settings
      tags:
      - Filament lifecycle
      description: The organization values, the printer's overrides (null inherits), and the effective settings for the printer.
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1PrintersByIdFilamentLifecycleSettings
      x-operation-id-source: derived
    put:
      summary: Update a printer's filament lifecycle overrides
      tags:
      - Filament lifecycle
      description: Organization admins only. Send any of auto_sync_on_load, auto_clear_on_unload, and clear_window_seconds. Send null to inherit the organization value.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: putV1PrintersByIdFilamentLifecycleSettings
      x-operation-id-source: derived
  /v1/printers/{id}/filament-load-prompts:
    get:
      summary: List a printer's pending filament load prompts
      tags:
      - Filament lifecycle
      description: 'What Hive asks the operator after filament arrives in an empty position while the printer is idle: sync a saved assignment, a material read from the spool tag, or which material was loaded. Reading sends nothing to the printer.'
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1PrintersByIdFilamentLoadPrompts
      x-operation-id-source: derived
  /v1/printers/{id}/filament-load-prompts/{promptId}/resolve:
    post:
      summary: Resolve a filament load prompt
      tags:
      - Filament lifecycle
      description: 'Send { "resolution": "synced" } after the operator ran Sync, or { "resolution": "dismissed" } when they turn the prompt away. Resolving a prompt that already left pending succeeds. Sends nothing to the printer.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: id
        required: true
      - schema:
          type: string
          format: uuid
        in: path
        name: promptId
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1PrintersByIdFilamentLoadPromptsByPromptIdResolve
      x-operation-id-source: derived
  /v1/printers/{id}/next-job-material-match:
    get:
      summary: Match a printer's loaded filament to its next job
      tags:
      - Filament lifecycle
      description: 'Names the job the printer would take next: one assigned to it, else the highest-priority queued job it is eligible for on every Smart Queue rule except filament. Reports whether the printer''s saved filament and presence satisfy that job, with a load plan grouped by toolhead, extruder and AMS unit when they do not. Reading sends nothing to the printer and claims nothing.'
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1PrintersByIdNextJobMaterialMatch
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      description: 'Consistent Print Hive API error body: a machine-readable error code and a human-readable message.'
      properties:
        error:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable explanation of the failure.
      required:
      - error
      - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    apiKey:
      type: apiKey
      in: header
      name: x-api-key