Print Hive API Keys API

API key management endpoints

GitHub OpenAPI

Operations 8

POST /v1/auth-codes Generate auth code #
GET /v1/auth-codes/verify/{code} Exchange auth code for API key #
POST /v1/auth-codes/verify Check auth code status #
POST /v1/api-keys Create API key #
GET /v1/api-keys List API keys #
PATCH /v1/api-keys/{id} Update API key #
DELETE /v1/api-keys/{id} Delete API key #
GET /v1/api-keys/{id}/logs Get API key logs #

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-api-keys-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-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Print Hive API Documentation API Keys 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: API Keys
  description: API key management endpoints
paths:
  /v1/auth-codes:
    post:
      summary: Generate auth code
      tags:
      - API Keys
      description: Generate a temporary authentication code for linking a hive-link bridge. The device keeps `device_secret` and sends it as the `x-pairing-secret` header when it exchanges the code.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties: {}
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  expires_at:
                    type: string
                  device_secret:
                    type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      operationId: postV1AuthCodes
      x-operation-id-source: derived
  /v1/auth-codes/verify/{code}:
    get:
      summary: Exchange auth code for API key
      tags:
      - API Keys
      description: Exchange a temporary authentication code for an API key. Requires the `x-pairing-secret` header returned by `POST /auth-codes`. Unknown, expired, used, and wrong-secret codes all return the same 404.
      parameters:
      - schema:
          type: string
        in: path
        name: code
        required: true
      - schema:
          type: string
        in: header
        name: x-pairing-secret
        required: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  key:
                    type: string
                  name:
                    type: string
                  organization_id:
                    type: string
                  created_at:
                    type: string
                  expires_at:
                    type:
                    - string
                    - 'null'
                  enabled:
                    type: boolean
                  scopes:
                    type: array
                    items:
                      type: string
                  verified:
                    type: boolean
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      operationId: getV1AuthCodesVerifyByCode
      x-operation-id-source: derived
  /v1/auth-codes/verify:
    post:
      summary: Check auth code status
      tags:
      - API Keys
      description: Check the status of a temporary authentication code
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - code
              properties:
                code:
                  type: string
                organizationId:
                  type: string
                  description: Organization to attach the device to. Defaults to the caller's JWT org. Lets a multi-org user pair from the org they're viewing.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  code:
                    type: string
                  status:
                    type: string
                    enum:
                    - pending
                    - verified
                    - used
                    - expired
                  verified_at:
                    type:
                    - string
                    - 'null'
                  verified_by:
                    type:
                    - string
                    - 'null'
                  used_at:
                    type:
                    - string
                    - 'null'
                  used_by:
                    type:
                    - string
                    - 'null'
                  expires_at:
                    type: string
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1AuthCodesVerify
      x-operation-id-source: derived
  /v1/api-keys:
    post:
      summary: Create API key
      tags:
      - API Keys
      description: Create a new API key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              - scopes
              properties:
                name:
                  type: string
                scopes:
                  type: array
                  items:
                    type: string
                expires_at:
                  type: string
                  format: date-time
      responses:
        '409':
          description: The organization already has an API key with this name.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                description: The organization already has an API key with this name.
      operationId: postV1ApiKeys
      x-operation-id-source: derived
    get:
      summary: List API keys
      tags:
      - API Keys
      description: List API keys for the verified organization. Returns metadata only. The secret key is never listed.
      parameters:
      - schema:
          type: string
          format: uuid
        in: query
        name: organizationId
        required: false
      - schema:
          type: integer
        in: query
        name: page
        required: false
      - schema:
          type: integer
        in: query
        name: limit
        required: false
      - schema:
          type: string
        in: query
        name: sort
        required: false
      - schema:
          type: string
        in: query
        name: order
        required: false
      - schema:
          type: string
        in: query
        name: search
        required: false
      - schema:
          type: string
        in: query
        name: access
        required: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                - apiKeys
                - pagination
                properties:
                  apiKeys:
                    type: array
                    items:
                      type: object
                      required:
                      - id
                      - name
                      - organizationId
                      - createdAt
                      - enabled
                      - scopes
                      additionalProperties: false
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        organizationId:
                          type: string
                        createdAt:
                          type: string
                        expiresAt:
                          type:
                          - string
                          - 'null'
                        lastUsedAt:
                          type:
                          - string
                          - 'null'
                        enabled:
                          type: boolean
                        scopes:
                          type: array
                          items:
                            type: string
                  pagination:
                    type: object
                    required:
                    - page
                    - limit
                    - total
                    - totalPages
                    - hasNext
                    - hasPrev
                    properties:
                      page:
                        type: integer
                      limit:
                        type: integer
                      total:
                        type: integer
                      totalPages:
                        type: integer
                      hasNext:
                        type: boolean
                      hasPrev:
                        type: boolean
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                  requestId:
                    type: string
                  code:
                    type: string
        '422':
          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: getV1ApiKeys
      x-operation-id-source: derived
  /v1/api-keys/{id}:
    patch:
      summary: Update API key
      tags:
      - API Keys
      description: Update an existing API key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                enabled:
                  type: boolean
                expires_at:
                  type: string
                  format: date-time
                scopes:
                  type: array
                  items:
                    type: string
                organizationId:
                  type: string
                  format: uuid
      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'
      operationId: patchV1ApiKeysById
      x-operation-id-source: derived
    delete:
      summary: Delete API key
      tags:
      - API Keys
      description: Delete an API key
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      - schema:
          type: string
        in: path
        name: organizationId
        required: true
      responses:
        '204':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties: {}
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  error:
                    type: string
      operationId: deleteV1ApiKeysById
      x-operation-id-source: derived
  /v1/api-keys/{id}/logs:
    get:
      summary: Get API key logs
      tags:
      - API Keys
      description: Get usage logs for an API key
      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'
      operationId: getV1ApiKeysByIdLogs
      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