Skip to main content

API Reference

The Haltless REST API provides programmatic access to all platform features. This reference documents every endpoint, request/response schema, and authentication requirement.

Base URL

https://api.haltless.io/api/v1

API version

The current API version is v1. All endpoints are prefixed with /api/v1/.

v1

Authentication

Most endpoints require authentication via one of:

MethodHeaderUse case
JWT BearerAuthorization: Bearer <token>Interactive users, dashboards
API KeyX-API-Key: <key>Edge agents, automation

See Authentication for details.

Request format

  • Content-Type: application/json for all request bodies
  • Character encoding: UTF-8
  • Timestamps: ISO 8601 format in UTC (e.g., 2026-04-04T10:30:00Z)
  • UUIDs: All resource IDs are v4 UUIDs

Response format

All responses return JSON with appropriate HTTP status codes:

CodeMeaning
200Success
201Created
204No content (successful delete)
207Multi-status (batch operations)
400Bad request (validation error)
401Unauthorized
402Payment required
403Forbidden (insufficient role)
404Not found
409Conflict (duplicate resource)
422Unprocessable entity
429Rate limit exceeded
500Internal server error

Pagination

List endpoints support pagination:

ParameterTypeDefaultMax
pageinteger1-
page_sizeinteger20100

Response includes pagination metadata:

{
"items": [...],
"total": 150,
"page": 1,
"page_size": 20,
"total_pages": 8
}

Rate limiting

Every response includes rate limit headers:

X-RateLimit-Limit: 300
X-RateLimit-Remaining: 298

When exceeded, you'll receive 429 with:

Retry-After: 12
X-RateLimit-Reset: 1712234567

See Rate Limiting for tier-specific limits.

Endpoint catalog

Core Resources

EndpointDescription
/machinesRegister and manage your machine fleet
/machines/{id}/readingsIngest and query sensor time-series
/alertsThreshold alerts and acknowledgment
/alert-rulesConfigure alert thresholds

Operations

EndpointDescription
/maintenanceMaintenance event scheduling
/work-ordersWork order lifecycle management
/machines/{id}/downtimeDowntime tracking and analysis
/oeeOverall Equipment Effectiveness
/shiftsShift definitions and logging
/work-orders/{id}/signoffsDigital sign-off and compliance
/inventorySpare parts and stock management

Intelligence

EndpointDescription
/fleetFleet status, site KPIs, cross-site comparison
/machines/{id}/predictionAI-powered RUL and anomaly detection
/reportsPDF/CSV report generation

Integration

EndpointDescription
/erpSAP, Dynamics 365, Oracle integration
/notification-channelsEmail, Slack, Teams, webhook notifications
/ws/dashboardReal-time WebSocket streaming

Administration

EndpointDescription
/settingsAPI keys, permissions, AI config
/auditAudit trail for all actions
/billingSubscription and checkout management