A production-grade, multi-tenant logistics operations platform. Manage shipments, automate workflows, track escalations, and maintain a complete audit trail โ all through a unified REST API.
Complete data isolation via x-tenant-id header. Separate workflows, audit logs, and users per organisation.
Event-driven automation with log, notify, escalate, condition, and delay step types. Chain steps with success/failure branches.
Full lifecycle management with carrier, status transitions, estimated delivery, and event-bus integration.
Route critical events to the right team with severity levels. Assign, resolve, and audit the full escalation history.
Every platform event is recorded to Postgres. Query filtered logs by tenant, event type, and time range.
8-hour access tokens with 7-day refresh token rotation. Roles: tenant_admin, ops_agent, viewer.
Exchange credentials for an 8-hour access token and 7-day refresh token. Contact admin@magnetarai.online to get a tenant account.
curl -X POST \
https://magnetarai.online/products/magnetar-Opsmesh/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"you@org.com","password":"..."}'
# Response:
{
"token": "eyJhbGci...",
"refreshToken": "eyJhbGci...",
"tenantId": "tenant-acme",
"role": "tenant_admin"
}
All data endpoints require Bearer token + x-tenant-id. The gateway routes to the correct microservice automatically.
TOKEN="eyJhbGci..."
TENANT="tenant-acme"
BASE="https://magnetarai.online/products/magnetar-Opsmesh/api"
# Create a shipment
curl -X POST $BASE/shipments \
-H "Authorization: Bearer $TOKEN" \
-H "x-tenant-id: $TENANT" \
-H "Content-Type: application/json" \
-d '{
"trackingNumber": "TRK-001",
"carrier": "DHL",
"origin": {"city":"London"},
"destination": {"city":"Berlin"}
}'