API Overview

iProTraX uses Next.js API Routes to provide a RESTful interface for all data interactions. This allows for third-party integrations (e.g., SAP, Tableau) or custom client development.

RESTful Design

Standard HTTP verbs (GET, POST, PUT) and JSON payloads.

Type-Safe

Fully typed responses aligning with the Prisma schema.

AI Enabled

Endpoints dealing with comments automatically trigger AI pipelines.

Base URL

http://localhost:3000/apiGET

iProTraX supports two primary authentication methods for API access:

Session (Browser)

Uses Secure HTTP-only cookies. Recommended for internal dashboard extensions and UI-heavy integrations.

API Token (v1)

Standard Bearer token authentication. Designed for ERP/MES synchronization, Python automation scripts, and cross-system webhooks.

v1 Architecture

The v1 API is designed for enterprise-scale data synchronization. It provides consistent, versioned endpoints that ensure backward compatibility while allowing external systems to read real-time production status and update work order progress.

Using Bearer Tokens

Authorization: Bearer ipx_...

Note: Internal APIs are subject to change. Please rely on the methods documented in the Endpoints Reference documented methods.