Print Hive Loop Runs API

Loop run management for iterative printing

GitHub OpenAPI

Operations 8

POST /v1/loop-runs Create loop runs #
GET /v1/loop-runs Get loop runs #
GET /v1/loop-runs/{id} Get loop runs by id #
POST /v1/loop-runs/{id}/start Create loop runs by id start #
POST /v1/loop-runs/{id}/pause Create loop runs by id pause #
POST /v1/loop-runs/{id}/resume Create loop runs by id resume #
POST /v1/loop-runs/{id}/cancel Create loop runs by id cancel #
POST /v1/loop-runs/{id}/complete-iteration Create loop runs by id complete iteration #

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-loop-runs-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-loop-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Print Hive API Documentation Loop Runs 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: Loop Runs
  description: Loop run management for iterative printing
paths:
  /v1/loop-runs:
    post:
      tags:
      - Loop Runs
      description: Create a new loop run
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                total_iterations:
                  type: number
                  minimum: 1
                cooldown_between_iterations_seconds:
                  type: number
                  minimum: 0
                failure_policy:
                  type: string
                verify_bed_clear:
                  type: boolean
                printer_id:
                  type: string
                print_job_id:
                  type: string
                model_file_id:
                  type: string
                config:
                  type: object
              required:
              - printer_id
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      summary: Create loop runs
      x-summary-source: derived
      operationId: postV1LoopRuns
      x-operation-id-source: derived
    get:
      tags:
      - Loop Runs
      description: List loop runs
      parameters:
      - schema:
          type: string
        in: query
        name: printer_id
        required: false
      - schema:
          type: string
        in: query
        name: status
        required: false
      - schema:
          type: number
        in: query
        name: limit
        required: false
      - schema:
          type: number
        in: query
        name: offset
        required: false
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      summary: Get loop runs
      x-summary-source: derived
      operationId: getV1LoopRuns
      x-operation-id-source: derived
  /v1/loop-runs/{id}:
    get:
      tags:
      - Loop Runs
      description: Get a loop run by ID
      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'
      summary: Get loop runs by id
      x-summary-source: derived
      operationId: getV1LoopRunsById
      x-operation-id-source: derived
  /v1/loop-runs/{id}/start:
    post:
      tags:
      - Loop Runs
      description: Start a loop run (stub)
      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'
      summary: Create loop runs by id start
      x-summary-source: derived
      operationId: postV1LoopRunsByIdStart
      x-operation-id-source: derived
  /v1/loop-runs/{id}/pause:
    post:
      tags:
      - Loop Runs
      description: Pause a running loop run
      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'
      summary: Create loop runs by id pause
      x-summary-source: derived
      operationId: postV1LoopRunsByIdPause
      x-operation-id-source: derived
  /v1/loop-runs/{id}/resume:
    post:
      tags:
      - Loop Runs
      description: Resume a paused loop run
      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'
      summary: Create loop runs by id resume
      x-summary-source: derived
      operationId: postV1LoopRunsByIdResume
      x-operation-id-source: derived
  /v1/loop-runs/{id}/cancel:
    post:
      tags:
      - Loop Runs
      description: Cancel a loop run (stub)
      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'
      summary: Create loop runs by id cancel
      x-summary-source: derived
      operationId: postV1LoopRunsByIdCancel
      x-operation-id-source: derived
  /v1/loop-runs/{id}/complete-iteration:
    post:
      tags:
      - Loop Runs
      description: Mark the current iteration complete and advance to the next (or complete the loop run)
      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'
      summary: Create loop runs by id complete iteration
      x-summary-source: derived
      operationId: postV1LoopRunsByIdCompleteIteration
      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