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 statusGET /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 ordersPOST /orders— create a new orderGET /orders/:id— order details with linked jobsPATCH /orders/:id— update order status
Analytics:
GET /analytics/utilization— fleet utilization dataGET /analytics/costs— production cost summariesGET /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
- Generate an API key in ODIN's settings
- Test with a simple curl command:
curl -H 'Authorization: Bearer YOUR_KEY' http://odin-server/api/v1/printers - Review the API documentation in ODIN's docs portal
- Build your integration using any HTTP client library (axios, requests, fetch)