Print Hive Training API

Training data collection and management endpoints

GitHub OpenAPI

Operations 8

GET /v1/training/stats Get training data statistics #
GET /v1/training/frames List training frames #
POST /v1/training/frames/{id}/review Review a training frame #
GET /v1/training/export Export training data #
DELETE /v1/training/frames/{id} Delete a training frame #
GET /v1/training/review-queue Get prioritized review queue #
GET /v1/training/opt-in Get training data opt-in status #
POST /v1/training/opt-in Update training data opt-in status #

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-training-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-training-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Print Hive API Documentation Training 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: Training
  description: Training data collection and management endpoints
paths:
  /v1/training/stats:
    get:
      summary: Get training data statistics
      tags:
      - Training
      description: Returns statistics about collected training data for the user's organization
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Training data statistics
          content:
            application/json:
              schema:
                description: Training data statistics
                type: object
                properties:
                  totalFrames:
                    type: number
                  labelCounts:
                    type: object
                    additionalProperties:
                      type: number
                  reviewedCount:
                    type: number
                  pendingReviewCount:
                    type: number
                  framesByDay:
                    type: array
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                        count:
                          type: number
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                description: Unauthorized
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
      operationId: getV1TrainingStats
      x-operation-id-source: derived
  /v1/training/frames:
    get:
      summary: List training frames
      tags:
      - Training
      description: Returns paginated list of training frames for review
      parameters:
      - schema:
          type: number
          default: 1
        in: query
        name: page
        required: false
      - schema:
          type: number
          default: 50
          maximum: 100
        in: query
        name: pageSize
        required: false
      - schema:
          type: string
        in: query
        name: label
        required: false
      - schema:
          type: boolean
        in: query
        name: reviewed
        required: false
      - schema:
          type: string
          default: created_at
        in: query
        name: sortBy
        required: false
      - schema:
          type: string
          enum:
          - asc
          - desc
          default: desc
        in: query
        name: sortOrder
        required: false
      security:
      - bearerAuth: []
      responses:
        '200':
          description: List of training frames
          content:
            application/json:
              schema:
                description: List of training frames
                type: object
                properties:
                  frames:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        printerId:
                          type: string
                        jobId:
                          type:
                          - number
                          - 'null'
                        frameUrl:
                          type: string
                        frameTimestamp:
                          type: string
                        printProgress:
                          type:
                          - number
                          - 'null'
                        layerNumber:
                          type:
                          - number
                          - 'null'
                        printerModel:
                          type:
                          - string
                          - 'null'
                        label:
                          type: string
                        labelSource:
                          type: string
                        labelConfidence:
                          type:
                          - number
                          - 'null'
                        verificationEventType:
                          type:
                          - string
                          - 'null'
                        failureReason:
                          type:
                          - string
                          - 'null'
                        reviewed:
                          type: boolean
                        reviewerId:
                          type:
                          - string
                          - 'null'
                        reviewedAt:
                          type:
                          - string
                          - 'null'
                        correctedLabel:
                          type:
                          - string
                          - 'null'
                        createdAt:
                          type: string
                        fileSize:
                          type:
                          - number
                          - 'null'
                        resolution:
                          type:
                          - string
                          - 'null'
                        qualityScore:
                          type:
                          - number
                          - 'null'
                        qualityFlags:
                          type:
                          - object
                          - 'null'
                          additionalProperties: true
                        priority:
                          type:
                          - string
                          - 'null'
                        modelConfidence:
                          type:
                          - number
                          - 'null'
                        modelPredictedLabel:
                          type:
                          - string
                          - 'null'
                        modelVersion:
                          type:
                          - string
                          - 'null'
                  pagination:
                    type: object
                    properties:
                      total:
                        type: number
                      page:
                        type: number
                      pageSize:
                        type: number
                      totalPages:
                        type: number
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                description: Unauthorized
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
      operationId: getV1TrainingFrames
      x-operation-id-source: derived
  /v1/training/frames/{id}/review:
    post:
      summary: Review a training frame
      tags:
      - Training
      description: Submit a review for a training frame, optionally correcting the label
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                correctedLabel:
                  type:
                  - string
                  - 'null'
                  description: Corrected label if original was wrong
                reviewed:
                  type: boolean
                  description: Whether the frame has been reviewed
              required:
              - reviewed
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
        description: Training frame ID
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Review submitted successfully
          content:
            application/json:
              schema:
                description: Review submitted successfully
                type: object
                properties:
                  success:
                    type: boolean
                  frame:
                    type: object
                    properties:
                      id:
                        type: string
                      label:
                        type: string
                      reviewed:
                        type: boolean
                      correctedLabel:
                        type:
                        - string
                        - 'null'
                      modelConfidence:
                        type:
                        - number
                        - 'null'
                      modelPredictedLabel:
                        type:
                        - string
                        - 'null'
                      modelVersion:
                        type:
                        - string
                        - 'null'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                description: Unauthorized
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                description: Forbidden
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '404':
          description: Not found
          content:
            application/json:
              schema:
                description: Not found
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
      operationId: postV1TrainingFramesByIdReview
      x-operation-id-source: derived
  /v1/training/export:
    get:
      summary: Export training data
      tags:
      - Training
      description: Export labeled training data in various formats for model training
      parameters:
      - schema:
          type: string
          enum:
          - yolo
          - json
          default: json
        in: query
        name: format
        required: false
        description: Export format (json for raw data, yolo for YOLO annotation format)
      - schema:
          type: string
        in: query
        name: label
        required: false
        description: Filter by specific label
      - schema:
          type: boolean
        in: query
        name: reviewed
        required: false
        description: Only include reviewed frames
      - schema:
          type: number
          default: 1000
          maximum: 10000
        in: query
        name: limit
        required: false
        description: Maximum number of frames to export
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Exported training data
          content:
            application/json:
              schema:
                description: Exported training data
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                description: Unauthorized
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
      operationId: getV1TrainingExport
      x-operation-id-source: derived
  /v1/training/frames/{id}:
    delete:
      summary: Delete a training frame
      tags:
      - Training
      description: Delete a training frame from the database and storage
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
        description: Training frame ID
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Frame deleted successfully
          content:
            application/json:
              schema:
                description: Frame deleted successfully
                type: object
                properties:
                  success:
                    type: boolean
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                description: Unauthorized
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                description: Forbidden
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '404':
          description: Not found
          content:
            application/json:
              schema:
                description: Not found
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
      operationId: deleteV1TrainingFramesById
      x-operation-id-source: derived
  /v1/training/review-queue:
    get:
      summary: Get prioritized review queue
      tags:
      - Training
      description: Returns training frames ordered by review priority
      parameters:
      - schema:
          type: number
          default: 1
        in: query
        name: page
        required: false
      - schema:
          type: number
          default: 50
          maximum: 100
        in: query
        name: pageSize
        required: false
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1TrainingReviewQueue
      x-operation-id-source: derived
  /v1/training/opt-in:
    get:
      summary: Get training data opt-in status
      tags:
      - Training
      description: Get the organization's training data collection opt-in status
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Opt-in status
          content:
            application/json:
              schema:
                description: Opt-in status
                type: object
                properties:
                  optIn:
                    type: boolean
                  consentAt:
                    type:
                    - string
                    - 'null'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                description: Unauthorized
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
      operationId: getV1TrainingOptIn
      x-operation-id-source: derived
    post:
      summary: Update training data opt-in status
      tags:
      - Training
      description: Update the organization's training data collection opt-in status
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                optIn:
                  type: boolean
                  description: Whether to opt in to training data collection
              required:
              - optIn
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Opt-in status updated
          content:
            application/json:
              schema:
                description: Opt-in status updated
                type: object
                properties:
                  success:
                    type: boolean
                  optIn:
                    type: boolean
                  consentAt:
                    type:
                    - string
                    - 'null'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                description: Unauthorized
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                description: Forbidden
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
      operationId: postV1TrainingOptIn
      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