MakeIntelligent has two HTTP APIs.
| API | Base path | Who uses it | Access |
|---|
| Console API | /api/v2 | The web UI, scripts and AI tools that sign in as a user | Read and write. Governed by roles. |
| Public API | /api/public/v1 | Programs and reports with an API key | Read-only, GET only. |
The Console API is the same API the web UI uses. API keys cannot call it; they get 403 "this route is not available to an API key".
The /api/v2 routes serve the Console UI. Fields can grow between releases. The public API has an OpenAPI 3.1 description at GET /api/public/v1/openapi.json (needs a key). Check the version with GET /api/v2/version.
Authentication
Sign in and use a token
curl -s -X POST https://<console>/api/v2/auth/login \
-H 'Content-Type: application/json' \
-d '{"username":"admin","password":"..."}'
The answer contains token (a signed JWT, valid 1 hour), expiresAt and sessionExpiresAt. Send the token on every request:
Authorization: Bearer <token>
| Endpoint | Purpose |
|---|
POST /api/v2/auth/login | Sign in. After 5 failures the account is locked for 15 minutes. |
POST /api/v2/auth/refresh | Renew the token. A session ends 12 hours after the original sign-in. |
POST /api/v2/auth/logout | Sign out. |
POST /api/v2/auth/password | Change your own password. |
GET /api/v2/auth/me | Who you are and your roles. |
Other credentials
| Credential | Format | Works on |
|---|
| Console token | JWT | /api/v2 (all routes your roles allow), /api/v2/mcp |
| Agent credential | mii_ac_... | /api/v2/mcp and the reads and proposals it is allowed. It cannot approve, execute, change a password, refresh or log out. |
| API key | mii_pk_... | /api/public/v1 only |
| Runtime token | mi_runtime_... | Runtime-facing routes (heartbeat, desired state, relay, write queue) |
Every request gets an X-Request-ID response header. Quote it when you ask for support; it is also stored in the audit detail as requestId.
Errors
Errors use one envelope:
{
"error": {
"code": "MI-1002",
"class": "config",
"message": "configuration failed validation",
"details": {}
}
}
code is a stable code. See Error codes.
class is config, transport, protocol, permission, license or internal.
details is optional. For approval policy refusals, details.reason is one of approvals, window, clock, role, approved, emergency, unavailable. For fleet joins it can be replay, identity_conflict, identity_revoked, identity_unknown, schema_unsupported, payload_rejected, wrong_fleet, wrong_mode, token_invalid, already_enrolled or not_licensed.
- The HTTP status follows the code (for example
MI-1003 is 404, MI-4002 is 403, MI-4003 is 429).
429 responses carry Retry-After in seconds.
The public API uses the same envelope with code and message.
Pagination, limits and formats
There is no single paging scheme. Each route documents its own:
| Where | How |
|---|
| Audit events | limit 1 to 500 (default 100) |
| Public API history table | limit 1 to 5000, offset |
| Public API alarms journal | limit 1 to 5000 |
| Public API graph edges | limit 1 to 1000, offset |
| MCP | nextCursor and cursor; a result with truncation is incomplete |
| History series | A time window (from, to), optional step and agg. Public API: at most 31 days; MCP: at most 7 days per call. |
Times are RFC 3339 (UTC). Request bodies are JSON; unknown fields are refused with MI-1001, and a body over the limit gives MI-1013. Plant paths use the form DEMOFOODS/IZMIR/BOTTLING/LINE1/FILLER/Speed.
Public API: 300 requests per minute per key; selectors (ids or paths) at most 100 per request.
Console API endpoints
Permissions in brackets are the capability a route needs (see Users and roles). In general GET needs read_config, history reads need read_history, and each write needs the capability of its area. Scoped users see only the parts of the plant they may access.
| Method | Path | Notes |
|---|
| GET | /health, /api/v2/health | Liveness. No sign-in. |
| GET | /ready | Readiness. |
| GET | /metrics, /api/v2/metrics | Prometheus metrics. See Security model. |
| GET | /api/v2/version | Console version. |
| GET | /api/v2/edition | Edition (free, lite, enterprise) and features. |
| GET | /api/v2/license | Licence state. |
| PUT | /api/v2/license | Upload a licence. |
| GET | /api/v2/ops/license-summary, /api/v2/ops/system, /api/v2/ops/change-log | Operations views. |
Auth, users and access
| Method | Path | Notes |
|---|
| POST | /api/v2/auth/login, /auth/refresh, /auth/logout, /auth/password | See above. |
| GET | /api/v2/auth/me | |
| GET | /api/v2/auth/oidc/status, /auth/oidc/login, /auth/oidc/callback | Single sign-on. |
| GET, POST | /api/v2/users | [manage_users] |
| PATCH, DELETE | /api/v2/users/{id} | [manage_users] |
| GET | /api/v2/access/me | Your own access. |
| GET, PUT | /api/v2/access/users/{id} | Scoped access of a user. |
| GET | /api/v2/access/users/{id}/preview | What the user can see. |
| GET, PUT | /api/v2/access/group-grants | Directory groups to places. |
| GET, POST | /api/v2/agent-credentials | [manage_users] |
| GET, PATCH, DELETE | /api/v2/agent-credentials/{id} | [manage_users] |
| GET, POST | /api/v2/api-keys | [manage_users] |
| POST | /api/v2/api-keys/{id}/rotate | |
| DELETE | /api/v2/api-keys/{id} | |
Settings
| Method | Path | Notes |
|---|
| GET, PUT | /api/v2/settings/ldap | [manage_identity] |
| POST | /api/v2/settings/ldap/test | |
| GET, PUT | /api/v2/settings/oidc | [manage_identity] |
| GET, PUT | /api/v2/settings/smtp | |
| POST | /api/v2/settings/smtp/test | |
| GET, PUT | /api/v2/settings/historian | [manage_historian] |
| POST | /api/v2/settings/historian/test | |
| GET, PUT | /api/v2/settings/historian/retention | |
| POST | /api/v2/settings/historian/retention/preview | |
| GET | /api/v2/settings/historian/retention/runs, /retention/requests | |
| POST | /api/v2/settings/historian/retention/resume | |
| POST | /api/v2/settings/historian/retention/requests/{id}/approve, /requests/{id}/cancel | |
| GET, PUT | /api/v2/settings/historian/rollups | |
| POST | /api/v2/historian/series/soft-delete | |
| GET, POST, PUT, DELETE | /api/v2/alert-webhooks, /api/v2/alert-webhooks/{id} | Alerts. |
| POST | /api/v2/alert-webhooks/{id}/test | |
| GET | /api/v2/config/export | [export_config]. Secrets only with secrets=1. |
| POST | /api/v2/config/import | [import_config]. Body mode merge or replace, and bundle. |
| Method | Path | Notes |
|---|
| GET | /api/v2/catalog/protocols, /api/v2/catalog/data-types | Protocol and data type catalogue. |
| GET | /api/v2/plugins | Installed plugins. |
| GET, POST | /api/v2/devices | |
| GET, PUT, PATCH, DELETE | /api/v2/devices/{id} | |
| POST | /api/v2/devices/probe | Test a connection. |
| POST | /api/v2/devices/browse | Browse an address space. |
| POST | /api/v2/devices/{id}/groups/{groupId}/tags/batch | Batch upsert of tags. |
| POST | /api/v2/devices/{id}/tags/bind, /tags/unbind | Bind tags to the plant model. |
| POST | /api/v2/devices/{id}/tags/{tagId}/write | Direct write [write_tags]. |
| POST | /api/v2/devices/{id}/groups/{groupId}/write | Group write [write_tags]. |
| GET, POST | /api/v2/write-queue | Queued writes; release a hold. |
Uplinks, routes, streams, rules
| Method | Path | Notes |
|---|
| GET, POST | /api/v2/applications | Uplink destinations. |
| PUT, DELETE | /api/v2/applications/{id} | |
| POST | /api/v2/applications/probe, /api/v2/endpoints/probe | Test an endpoint. |
| GET, POST | /api/v2/subscriptions | Routes. |
| PUT, DELETE | /api/v2/subscriptions/{id} | |
| GET, POST | /api/v2/collect-jobs, /api/v2/deliver-jobs | Collection and delivery jobs. |
| GET, PUT, DELETE | /api/v2/collect-jobs/{id}, /api/v2/deliver-jobs/{id} | |
| GET, POST | /api/v2/streams, /api/v2/sinks | |
| DELETE | /api/v2/streams/{id}, /api/v2/sinks/{id} | |
| GET, POST | /api/v2/rules | [configure_rules] for writes. |
| PUT, DELETE | /api/v2/rules/{id} | |
| GET | /api/v2/rules/{id}/status | |
| POST | /api/v2/rules/validate, /rules/test, /rules/migrate | |
| GET, POST | /api/v2/certificates | [manage_certificates] |
| PUT, DELETE | /api/v2/certificates/{id} | |
Site Runtimes and fleet
| Method | Path | Notes |
|---|
| GET, POST | /api/v2/site-runtimes | |
| GET, DELETE | /api/v2/site-runtimes/{id} | |
| POST | /api/v2/site-runtimes/{id}/rotate-token | |
| GET, POST | /api/v2/site-runtimes/{id}/enrollment-tokens | One-time enrollment tokens. |
| DELETE | /api/v2/site-runtimes/{id}/enrollment-tokens/{tokenId} | |
| GET | /api/v2/site-runtimes/{id}/certs | Runtime certificates. |
| POST | /api/v2/site-runtimes/{id}/certs/{serial}/revoke | |
| GET | /api/v2/site-runtimes/{id}/inventory, /samples, /plugins, /uplink-metrics | |
| POST | /api/v2/site-runtimes/{id}/windows.exe | Windows runtime download. |
| GET | /api/v2/runtime-install | Install snippets. |
| GET | /api/v2/fleet/samples, /api/v2/fleet/drivers | |
| GET, PATCH, DELETE | /api/v2/fleet-link | Join and leave a fleet. |
| GET | /api/v2/fleet-link/report | The exact report that would be sent. |
| POST | /api/v2/fleet-link/enroll, /enroll/request, /enroll/response, /export | |
Runtime-facing routes (used by runtimes with their own token or certificate; not for scripts):
| Method | Path |
|---|
| POST | /api/v2/runtime-enroll |
| POST | /api/v2/site-runtimes/{id}/heartbeat |
| GET | /api/v2/site-runtimes/{id}/desired-state |
| GET | /api/v2/site-runtimes/{id}/write-queue, /relay |
| POST | /api/v2/site-runtimes/{id}/write-queue/{itemId}/ack, /relay/{callId}, /cert/renew |
| GET | /downloads/runtime/{file} |
Plant model (ISA-95)
| Method | Path | Notes |
|---|
| GET | /api/v2/model/tree | The whole tree. |
| GET, PUT | /api/v2/model/enterprise, /api/v2/model/enterprises (GET only) | One enterprise per Console. |
| GET, POST | /api/v2/model/sites, /areas, /work-centers, /work-units, /equipment | |
| GET, PUT, DELETE | /api/v2/model/sites/{id}, /areas/{id}, /work-centers/{id}, /work-units/{id}, /equipment/{id} | |
| GET | /api/v2/model/sites/{id}/runtimes | |
| GET, POST | /api/v2/model/equipment/{id}/tags | |
| PUT, DELETE | /api/v2/model/equipment/{id}/tags/{tagId} | |
| GET | /api/v2/model/equipment/{id}/class-diff | |
| GET, POST | /api/v2/model/equipment-classes | |
| GET, PUT, DELETE | /api/v2/model/equipment-classes/{id} | |
| GET, POST | /api/v2/model/equipment-classes/{id}/properties | |
| DELETE | /api/v2/model/equipment-classes/{id}/properties/{propId} | |
| POST | /api/v2/model/equipment-classes/{id}/instantiate | |
| POST | /api/v2/model/move | |
| GET | /api/v2/model/impact | |
| GET | /api/v2/model/unbound-device-tags | |
| GET | /api/v2/model/unit-history, /api/v2/model/tags/{tagId}/unit-history | |
| POST | /api/v2/model/tags/{tagId}/unit-history/corrections | |
Plant graph, analysis and lineage
| Method | Path | Notes |
|---|
| GET | /api/v2/kg/vocabulary, /kg/graph, /kg/impact, /kg/lineage, /kg/migration-report | |
| GET, POST | /api/v2/kg/edges | |
| GET, PUT, DELETE | /api/v2/kg/edges/{id} | |
| GET | /api/v2/kg/equipment/{id}/state | |
| GET | /api/v2/kg/library, /kg/library/{code} | Built-in class templates. |
| POST | /api/v2/kg/library/{code}/install | |
| POST | /api/v2/kg/suggest/semantics | |
| PUT | /api/v2/kg/class-properties/{id}/semantics | |
| GET, POST, PUT, DELETE | /api/v2/context/plant-links | Plant links used by the Agent. |
| GET | /api/v2/analysis/context, /api/v2/analysis/changes | |
| GET | /api/v2/lineage | |
History, alarms, dashboards
| Method | Path | Notes |
|---|
| GET | /api/v2/history/series, /history/last, /history/table, /history/export | [read_history] |
| GET | /api/v2/alarms/active, /alarms/journal, /alarms/definitions | |
| POST | /api/v2/alarms/definitions | |
| POST | /api/v2/alarms/{id}/ack, /alarms/{id}/shelve | [ack_alarms] |
| GET, POST | /api/v2/dashboards | [configure_dashboards] for writes |
| GET, PUT, DELETE | /api/v2/dashboards/{id} | |
Production and OEE
| Method | Path | Notes |
|---|
| GET, POST | /api/v2/process/products, /process/recipes, /process/shifts, /process/orders, /process/downtime-reasons, /process/downtime-events | |
| GET, PUT, DELETE | /api/v2/process/products/{id}, /recipes/{id}, /shifts/{id}, /orders/{id}, /downtime-reasons/{id}, /downtime-events/{id} | |
| GET | /api/v2/process/shifts/current, /process/shifts/instances | |
| GET, PUT | /api/v2/process/sites/{id}/timezone | |
| POST | /api/v2/process/orders/{id}/start, /complete, /cancel | |
| POST | /api/v2/process/downtime-events/{id}/end | |
| GET | /api/v2/process/oee, /oee/current, /oee/losses, /oee/intervals, /oee/cycles, /oee/config | [read_history] |
| GET, PUT, DELETE | /api/v2/process/oee/config/{equipmentId} | |
| PUT | /api/v2/process/oee/cycles/{equipmentId} | |
| POST | /api/v2/process/oee/preview, /oee/recompute | |
Business systems
| Method | Path | Notes |
|---|
| GET | /api/v2/sor/types | |
| GET, POST | /api/v2/sor/connections | Enterprise feature sor.connectors |
| GET, PUT, DELETE | /api/v2/sor/connections/{id} | |
| PUT, DELETE | /api/v2/sor/connections/{id}/credential | |
| POST | /api/v2/sor/connections/{id}/unblock, /preview, /run | |
| GET | /api/v2/sor/connections/{id}/inbox | |
| GET, POST | /api/v2/sor/work-orders | |
| GET | /api/v2/sor/work-orders/{id} | |
| POST | /api/v2/sor/work-orders/{id}/approve, /reject, /requeue, /resolve | |
Approvals (Act)
| Method | Path | Notes |
|---|
| GET | /api/v2/act/proposals, /act/proposals/{id} | |
| POST | /api/v2/act/proposals/{id}/{action} | action is approve, reject, execute, resolve or emergency. People only. |
| GET | /api/v2/act/audit | |
| GET, PUT | /api/v2/act/policies | Enterprise feature hitl.policies for saving. |
Governance, audit, MCP
| Method | Path | Notes |
|---|
| GET, PUT | /api/v2/model/governance/settings | |
| GET | /api/v2/model/governance/effective | |
| GET, PATCH | /api/v2/model/governance/nodes/{kind}/{id} | |
| GET | /api/v2/governance/completeness, /governance/withheld, /governance/catalog/export | |
| GET | /api/v2/audit-events | [read_audit] |
| GET | /api/v2/audit-events/verify, /audit-events/export | |
| GET, POST, DELETE | /api/v2/mcp | The MCP endpoint (POST JSON-RPC, GET catalogue, DELETE ends a session). |
| GET, PUT | /api/v2/mcp/settings | Kill switch [manage_users]. |
| POST | /api/v2/mcp/sessions/revoke | |
| GET | /api/v2/mcp/usage, /api/v2/mcp/usage/calls | [read_audit] |
MCP OAuth (parked)
The Console contains OAuth routes for MCP (/.well-known/oauth-*, /api/v2/oauth/*, /api/v2/settings/mcp-oauth*). They are not a supported way to connect today: the Console UI states that OAuth is not offered. Use Bearer credentials. See MCP server.
Public API endpoints (/api/public/v1)
All routes are GET. Scopes and parameters are described on API keys.
| Path | Scope |
|---|
/key, /openapi.json | any key |
/sites, /areas, /work-centers, /equipment, /equipment/{id}/tags | model:read |
/values/last | values:read |
/history/series, /history/table, /oee, /oee/losses | history:read |
/alarms/active, /alarms/journal | alarms:read |
/kg/vocabulary, /kg/graph, /kg/edges, /kg/impact | kg:read |
/kg/equipment/{id}/state | kg:read and values:read |
curl -H "Authorization: Bearer $MII_API_KEY" \
"https://<console>/api/public/v1/sites"
Examples
Create a device and read live values as a signed-in user:
TOKEN=$(curl -s -X POST https://<console>/api/v2/auth/login \
-H 'Content-Type: application/json' \
-d '{"username":"admin","password":"..."}' | jq -r .token)
curl -s -H "Authorization: Bearer $TOKEN" https://<console>/api/v2/devices
curl -s -H "Authorization: Bearer $TOKEN" \
"https://<console>/api/v2/alarms/active"
For anything beyond a quick test, create an API key and use the public API. It is read-only, scoped and has its own audit.