Print Hive Debug API
The Debug API from Print Hive — 3 operation(s) for debug.
The Debug API from Print Hive — 3 operation(s) for debug.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/printhiv3d-com:printhiv3d-com-debug-api"
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.
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: 3.2.0
info:
title: Print Hive API Documentation Debug 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: Debug
paths:
/v1/filament-consumption/trigger:
post:
summary: Trigger filament consumption recording
tags:
- Debug
description: 'Triggers filament consumption recording for an existing print job or all eligible jobs. Use `trigger_all: true` to queue all jobs without consumption records. Jobs can be re-triggered to update existing consumption data (e.g., after correcting material mappings). Worker uses upsert logic to prevent duplicates. Useful for testing and backfilling consumption data. For users in multiple organizations, specify organizationId to select which organization''s jobs to trigger.'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
organizationId:
type: string
format: uuid
description: Organization ID to trigger jobs for. User must be a member of the organization. Defaults to user's first organization if not specified.
print_job_id:
type: number
description: The print job ID to record consumption for (required if trigger_all is false)
status_override:
type: string
enum:
- COMPLETED
- FAILED
- CANCELLED
description: Override the job status (uses actual job status if not provided)
trigger_all:
type: boolean
default: false
description: If true, queue all eligible jobs without consumption records
backfill_unknown:
type: boolean
default: false
description: If true, re-queue jobs that have consumption records with null material_id (Unknown Material). Uses upsert to update existing records.
limit:
type: number
minimum: 1
maximum: 10000
default: 100
description: Maximum number of jobs to queue when trigger_all is true
security:
- bearerAuth: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
queue_job_id:
type: string
print_job_id:
type: number
queued:
type: number
failed:
type: number
jobs:
type: array
items:
type: object
properties:
print_job_id:
type: number
queue_job_id:
type:
- 'null'
- string
error:
type: string
'400':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: string
message:
type: string
'404':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: string
message:
type: string
'503':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: string
message:
type: string
operationId: postV1FilamentConsumptionTrigger
x-operation-id-source: derived
/v1/filament-consumption/jobs/{id}:
get:
summary: Get consumption job status
tags:
- Debug
description: Returns the status of a filament consumption recording job in the queue.
parameters:
- schema:
type: string
in: path
name: id
required: true
description: Queue job ID returned from /trigger endpoint
security:
- bearerAuth: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
id:
type: string
state:
type: string
result:
type: object
properties:
success:
type: boolean
recordsInserted:
type: number
totalGramsConsumed:
type: number
error:
type: string
skipped:
type: boolean
skipReason:
type: string
failedReason:
type: string
'404':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: string
message:
type: string
'503':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: string
message:
type: string
operationId: getV1FilamentConsumptionJobsById
x-operation-id-source: derived
/v1/filament-consumption/candidates:
get:
summary: List candidate jobs for consumption recording
tags:
- Debug
description: Lists completed, failed, or cancelled print jobs that don't have filament consumption records yet. Useful for finding jobs to backfill. For users in multiple organizations, specify organizationId to select which organization's data to retrieve.
parameters:
- schema:
type: string
format: uuid
in: query
name: organizationId
required: false
description: Organization ID to retrieve data for. User must be a member of the organization. Defaults to user's first organization if not specified.
- schema:
type: number
minimum: 1
maximum: 100
default: 20
in: query
name: limit
required: false
- schema:
type: string
enum:
- COMPLETED
- FAILED
- CANCELLED
in: query
name: status
required: false
description: Filter by job status
security:
- bearerAuth: []
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
id:
type: number
name:
type:
- 'null'
- string
status:
type:
- 'null'
- string
progress:
type:
- 'null'
- number
model_file_id:
type:
- 'null'
- string
printer_id:
type:
- 'null'
- string
updated_at:
type:
- 'null'
- string
total:
type: number
'500':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: string
message:
type: string
operationId: getV1FilamentConsumptionCandidates
x-operation-id-source: derived
components:
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