Skip to content

Does ODIN have an API for integration?

Yes, ODIN provides a REST API for integrating with external systems. The API exposes endpoints for printer status, job management, order tracking, and production analytics. Common integrations include connecting ODIN to Shopify or WooCommerce for automated job creation from customer orders, feeding production data into business intelligence tools, and triggering notifications through custom channels. The API uses standard JSON responses with API key authentication.

ODIN API: Integration Capabilities

ODIN's REST API enables integration with any external system that can make HTTP requests. This is essential for farms that want to connect print management with their broader business operations.

API Overview

Base URL: http://your-odin-server:port/api/v1/

Authentication: API key passed in the Authorization header

Format: JSON request and response bodies

Key Endpoint Categories:

Printers:

  • GET /printers — list all printers with status
  • GET /printers/:id — detailed printer status (temperatures, progress, etc.)
  • POST /printers/:id/command — send commands (pause, resume, cancel)
  • GET /printers/:id/camera — get camera snapshot

Jobs:

  • GET /jobs — list all jobs (queued, printing, completed)
  • POST /jobs — create a new job (upload G-code, assign to printer or queue)
  • GET /jobs/:id — job details (status, progress, cost)
  • DELETE /jobs/:id — cancel/remove a job

Orders:

  • GET /orders — list all orders
  • POST /orders — create a new order
  • GET /orders/:id — order details with linked jobs
  • PATCH /orders/:id — update order status

Analytics:

  • GET /analytics/utilization — fleet utilization data
  • GET /analytics/costs — production cost summaries
  • GET /analytics/failures — failure rate data

Common Integration Patterns

E-commerce → ODIN (automated job creation):

Shopify order placed
  → Webhook fires to your middleware
  → Middleware calls ODIN API: POST /orders + POST /jobs
  → Job enters ODIN queue
  → Print completes → webhook notifies middleware
  → Middleware updates Shopify order status

ODIN → Business Intelligence:

Cron job runs hourly
  → Calls GET /analytics/utilization
  → Calls GET /analytics/costs
  → Pushes data to Google Sheets, Grafana, or custom dashboard
  → Weekly/monthly reports generated automatically

ODIN → Custom Notifications:

ODIN webhook fires on events (print complete, failure detected)
  → Your endpoint receives the event
  → Routes to Slack, Teams, custom SMS, or customer email
  → Different events go to different channels

Webhook Events

ODIN can send webhooks on:

  • Print started
  • Print completed
  • Print failed (including failure type if detected by Vigil AI)
  • Printer offline
  • Filament low
  • Order status change

Use Cases

Small business:

  • Etsy/Shopify integration for automatic order-to-print pipeline
  • Google Sheets dashboard for daily production summary
  • Discord webhooks for print completion notifications

Service bureau:

  • Custom web portal for customer order submission
  • Automated quoting engine using printer and material cost data
  • Customer status page showing real-time order progress

Enterprise:

  • ERP integration (SAP, NetSuite) for production tracking
  • MES (Manufacturing Execution System) integration
  • Custom quality management system data feeds
  • Automated compliance reporting from production logs

Getting Started with the API

  1. Generate an API key in ODIN's settings
  2. Test with a simple curl command: curl -H 'Authorization: Bearer YOUR_KEY' http://odin-server/api/v1/printers
  3. Review the API documentation in ODIN's docs portal
  4. Build your integration using any HTTP client library (axios, requests, fetch)

Related Questions