Print Hive Model Files API

The Model Files API from Print Hive — 11 operation(s) for model files.

GitHub OpenAPI

Operations 12

GET /v1/model-files/live-operations Hydrate active and unresolved failed Model File operations #
GET /v1/model-files List active or deleted model files for one model #
GET /v1/model-files/counts Count active and deleted model files for one model #
GET /v1/model-files/{fileId} Get one model file (active or deleted) for the workspace detail pane #
GET /v1/model-files/{id}/recent-prints Get model files by id recent prints #
PATCH /v1/model-files/{fileId}/filament-labels Update the sliced filament part labels for one active model file #
POST /v1/model-files/{fileId}/reprocess Queue an active model file for authenticated reprocessing #
GET /v1/model-files/{fileId}/reprocess/{commandId} Read a durable model-file reprocess receipt #
GET /v1/model-files/{fileId}/overview Get the file-scoped operator overview for the workspace detail pane #
PATCH /v1/model-files/{fileId}/tags Replace model file tags #
GET /v1/model-files/{id}/part-mappings List part mappings for a model file #
PUT /v1/model-files/{id}/part-mappings Upsert part mappings for a model file #

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-model-files-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-model-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Print Hive API Documentation Model Files 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: Model Files
paths:
  /v1/model-files/live-operations:
    get:
      summary: Hydrate active and unresolved failed Model File operations
      tags:
      - Model Files
      description: Returns a read-only organization snapshot from the existing Model File and processing-generation authorities.
      security:
      - bearerAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1ModelFilesLiveOperations
      x-operation-id-source: derived
  /v1/model-files:
    get:
      summary: List active or deleted model files for one model
      tags:
      - Model Files
      description: Active listing excludes soft-deleted rows. Deleted listing returns tombstones intentionally and never piggybacks on the active response. Filter options are computed on the first page and omitted when offset is greater than zero.
      parameters:
      - schema:
          type: string
          format: uuid
        in: query
        name: modelId
        required: true
      - schema:
          type: string
          enum:
          - active
          - deleted
        in: query
        name: view
        required: true
      - schema:
          type: string
          maxLength: 120
        in: query
        name: search
        required: false
      - schema:
          type: string
          maxLength: 80
          pattern: ^(printing|queued|has_makes|missing_label)(,(printing|queued|has_makes|missing_label))*$
        in: query
        name: filters
        required: false
      - schema:
          type: string
          maxLength: 4096
        in: query
        name: tags
        required: false
      - schema:
          type: string
          maxLength: 4096
        in: query
        name: printer_profiles
        required: false
      - schema:
          type: string
          maxLength: 4096
        in: query
        name: file_types
        required: false
      - schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 100
        in: query
        name: limit
        required: false
      - schema:
          type: integer
          minimum: 0
          default: 0
        in: query
        name: offset
        required: false
      security:
      - bearerAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1ModelFiles
      x-operation-id-source: derived
  /v1/model-files/counts:
    get:
      summary: Count active and deleted model files for one model
      tags:
      - Model Files
      description: Returns exact partition counts without loading either model-file row collection.
      parameters:
      - schema:
          type: string
          format: uuid
        in: query
        name: modelId
        required: true
      security:
      - bearerAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1ModelFilesCounts
      x-operation-id-source: derived
  /v1/model-files/{fileId}:
    get:
      summary: Get one model file (active or deleted) for the workspace detail pane
      tags:
      - Model Files
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: fileId
        required: true
      security:
      - bearerAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1ModelFilesByFileId
      x-operation-id-source: derived
  /v1/model-files/{id}/recent-prints:
    get:
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Model Files
      summary: Get model files by id recent prints
      x-summary-source: derived
      operationId: getV1ModelFilesByIdRecentPrints
      x-operation-id-source: derived
  /v1/model-files/{fileId}/filament-labels:
    patch:
      summary: Update the sliced filament part labels for one active model file
      tags:
      - Model Files
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - labels
              additionalProperties: false
              properties:
                labels:
                  type: object
                  maxProperties: 64
                  additionalProperties:
                    type: string
                    maxLength: 120
      parameters:
      - schema:
          type: string
          minLength: 1
        in: path
        name: fileId
        required: true
      security:
      - bearerAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: patchV1ModelFilesByFileIdFilamentLabels
      x-operation-id-source: derived
  /v1/model-files/{fileId}/reprocess:
    post:
      summary: Queue an active model file for authenticated reprocessing
      tags:
      - Model Files
      parameters:
      - schema:
          type: string
          minLength: 1
        in: path
        name: fileId
        required: true
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1ModelFilesByFileIdReprocess
      x-operation-id-source: derived
  /v1/model-files/{fileId}/reprocess/{commandId}:
    get:
      summary: Read a durable model-file reprocess receipt
      tags:
      - Model Files
      parameters:
      - schema:
          type: string
          minLength: 1
        in: path
        name: fileId
        required: true
      - schema:
          type: string
          minLength: 1
        in: path
        name: commandId
        required: true
      security:
      - bearerAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1ModelFilesByFileIdReprocessByCommandId
      x-operation-id-source: derived
  /v1/model-files/{fileId}/overview:
    get:
      summary: Get the file-scoped operator overview for the workspace detail pane
      tags:
      - Model Files
      description: One typed read model combining core file metadata, Printing/Queued/Batches/Makes counts, the source-filament summary, SKU summary, and normalized action capabilities.
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: fileId
        required: true
      security:
      - bearerAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1ModelFilesByFileIdOverview
      x-operation-id-source: derived
  /v1/model-files/{fileId}/tags:
    patch:
      summary: Replace model file tags
      tags:
      - Model Files
      description: Replace all tags on one organization model file. Pass the full list. Omit a tag to unassign it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - tags
              additionalProperties: false
              properties:
                tags:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 100
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: fileId
        required: true
      security:
      - bearerAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                - id
                - tags
                properties:
                  id:
                    type: string
                  tags:
                    type: array
                    items:
                      type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
      operationId: patchV1ModelFilesByFileIdTags
      x-operation-id-source: derived
  /v1/model-files/{id}/part-mappings:
    get:
      summary: List part mappings for a model file
      tags:
      - Model Files
      parameters:
      - schema:
          type: string
        in: query
        name: organizationId
        required: false
      - schema:
          type: string
          format: uuid
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1ModelFilesByIdPartMappings
      x-operation-id-source: derived
    put:
      summary: Upsert part mappings for a model file
      tags:
      - Model Files
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - organizationId
              - mappings
              properties:
                organizationId:
                  type: string
                save_scope:
                  type: string
                  enum:
                  - current_order
                  - reusable
                  - draft
                  default: reusable
                source_context:
                  type: object
                  additionalProperties: true
                mappings:
                  type: array
                  items:
                    type: object
                    required:
                    - product_sku_id
                    properties:
                      part_name:
                        type:
                        - string
                        - 'null'
                      quantity_per_unit:
                        type: integer
                        minimum: 1
                        default: 1
                      make_model_file_id:
                        type:
                        - string
                        - 'null'
                        format: uuid
                      recipe_mode:
                        type: string
                        enum:
                        - single_sku
                        - grouped_sku
                        - mixed_sku
                        default: single_sku
                      product_sku_id:
                        type: string
                        format: uuid
                      shopify_location_id:
                        type:
                        - string
                        - 'null'
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  saved:
                    type: number
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: putV1ModelFilesByIdPartMappings
      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