Print Hive Order Stream Grants API

Order Watch Link grant management and public resolve

GitHub OpenAPI

Operations 6

POST /v1/orders/{orderId}/stream-grants Mint an Order Stream Grant and Order Watch Link for an order #
GET /v1/orders/{orderId}/stream-grants List Order Stream Grants for an order #
GET /v1/order-stream-grants/{grantId} Get one Order Stream Grant #
POST /v1/order-stream-grants/{grantId}/revoke Revoke an Order Stream Grant #
POST /v1/order-stream-grants/{grantId}/rotate Rotate an Order Stream Grant token #
POST /v1/public/order-streams/resolve Resolve an Order Stream Grant token to its Stream Window state #

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-order-stream-grants-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-order-stream-grants-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Print Hive API Documentation Order Stream Grants 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: Order Stream Grants
  description: Order Watch Link grant management and public resolve
paths:
  /v1/orders/{orderId}/stream-grants:
    post:
      summary: Mint an Order Stream Grant and Order Watch Link for an order
      tags:
      - Order Stream Grants
      description: Creates a revocable Order Stream Grant for the order and returns the raw token once. A retry with the same Idempotency-Key replays the stored grant without a token.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organizationId:
                  type: string
                  format: uuid
                label:
                  type:
                  - string
                  - 'null'
                expiresAt:
                  type: string
                  format: date-time
                maxConcurrentViewers:
                  type: integer
                  minimum: 1
                  maximum: 50
                postTerminalGraceSeconds:
                  type: integer
                  minimum: 0
                  maximum: 86400
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: orderId
        required: true
      - schema:
          type: string
          minLength: 1
          maxLength: 200
        in: header
        name: idempotency-key
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1OrdersByOrderIdStreamGrants
      x-operation-id-source: derived
    get:
      summary: List Order Stream Grants for an order
      tags:
      - Order Stream Grants
      description: Lists the Order Stream Grants minted for the order in the verified organization. Token hashes and raw tokens never leave this boundary.
      parameters:
      - schema:
          type: string
          format: uuid
        in: query
        name: organizationId
        required: false
      - schema:
          type: string
          format: uuid
        in: path
        name: orderId
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1OrdersByOrderIdStreamGrants
      x-operation-id-source: derived
  /v1/order-stream-grants/{grantId}:
    get:
      summary: Get one Order Stream Grant
      tags:
      - Order Stream Grants
      description: Returns the Order Stream Grant summary for the grant in the verified organization. Token hashes and raw tokens never leave this boundary.
      parameters:
      - schema:
          type: string
          format: uuid
        in: query
        name: organizationId
        required: false
      - schema:
          type: string
          format: uuid
        in: path
        name: grantId
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1OrderStreamGrantsByGrantId
      x-operation-id-source: derived
  /v1/order-stream-grants/{grantId}/revoke:
    post:
      summary: Revoke an Order Stream Grant
      tags:
      - Order Stream Grants
      description: Revokes the grant, disconnects live Share Sockets through the Pulse kick endpoint, and makes the token resolve to the uniform not-found response.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organizationId:
                  type: string
                  format: uuid
                reason:
                  type:
                  - string
                  - 'null'
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: grantId
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1OrderStreamGrantsByGrantIdRevoke
      x-operation-id-source: derived
  /v1/order-stream-grants/{grantId}/rotate:
    post:
      summary: Rotate an Order Stream Grant token
      tags:
      - Order Stream Grants
      description: Revokes the current grant and mints a replacement token for the same order. Returns the new raw token once and kicks viewers on the old grant.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organizationId:
                  type: string
                  format: uuid
      parameters:
      - schema:
          type: string
          format: uuid
        in: path
        name: grantId
        required: true
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1OrderStreamGrantsByGrantIdRotate
      x-operation-id-source: derived
  /v1/public/order-streams/resolve:
    post:
      summary: Resolve an Order Stream Grant token to its Stream Window state
      tags:
      - Order Stream Grants
      description: 'Public endpoint: the token is the credential. Malformed, unknown, revoked, and expired tokens all return the same 404 so the route is not a validity oracle.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
              - token
              properties:
                token:
                  type: string
                  minLength: 8
                  maxLength: 256
      responses:
        '200':
          description: Default Response
        default:
          description: Unexpected error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1PublicOrderStreamsResolve
      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