Skip to main content

API reference

MakeIntelligent has two HTTP APIs.

APIBase pathWho uses itAccess
Console API/api/v2The web UI, scripts and AI tools that sign in as a userRead and write. Governed by roles.
Public API/api/public/v1Programs and reports with an API keyRead-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".

Stability

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>
EndpointPurpose
POST /api/v2/auth/loginSign in. After 5 failures the account is locked for 15 minutes.
POST /api/v2/auth/refreshRenew the token. A session ends 12 hours after the original sign-in.
POST /api/v2/auth/logoutSign out.
POST /api/v2/auth/passwordChange your own password.
GET /api/v2/auth/meWho you are and your roles.

Other credentials​

CredentialFormatWorks on
Console tokenJWT/api/v2 (all routes your roles allow), /api/v2/mcp
Agent credentialmii_ac_.../api/v2/mcp and the reads and proposals it is allowed. It cannot approve, execute, change a password, refresh or log out.
API keymii_pk_.../api/public/v1 only
Runtime tokenmi_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:

WhereHow
Audit eventslimit 1 to 500 (default 100)
Public API history tablelimit 1 to 5000, offset
Public API alarms journallimit 1 to 5000
Public API graph edgeslimit 1 to 1000, offset
MCPnextCursor and cursor; a result with truncation is incomplete
History seriesA 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.

Health, version, meta​

MethodPathNotes
GET/health, /api/v2/healthLiveness. No sign-in.
GET/readyReadiness.
GET/metrics, /api/v2/metricsPrometheus metrics. See Security model.
GET/api/v2/versionConsole version.
GET/api/v2/editionEdition (free, lite, enterprise) and features.
GET/api/v2/licenseLicence state.
PUT/api/v2/licenseUpload a licence.
GET/api/v2/ops/license-summary, /api/v2/ops/system, /api/v2/ops/change-logOperations views.

Auth, users and access​

MethodPathNotes
POST/api/v2/auth/login, /auth/refresh, /auth/logout, /auth/passwordSee above.
GET/api/v2/auth/me
GET/api/v2/auth/oidc/status, /auth/oidc/login, /auth/oidc/callbackSingle sign-on.
GET, POST/api/v2/users[manage_users]
PATCH, DELETE/api/v2/users/{id}[manage_users]
GET/api/v2/access/meYour own access.
GET, PUT/api/v2/access/users/{id}Scoped access of a user.
GET/api/v2/access/users/{id}/previewWhat the user can see.
GET, PUT/api/v2/access/group-grantsDirectory 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​

MethodPathNotes
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.

Devices, tags and writes​

MethodPathNotes
GET/api/v2/catalog/protocols, /api/v2/catalog/data-typesProtocol and data type catalogue.
GET/api/v2/pluginsInstalled plugins.
GET, POST/api/v2/devices
GET, PUT, PATCH, DELETE/api/v2/devices/{id}
POST/api/v2/devices/probeTest a connection.
POST/api/v2/devices/browseBrowse an address space.
POST/api/v2/devices/{id}/groups/{groupId}/tags/batchBatch upsert of tags.
POST/api/v2/devices/{id}/tags/bind, /tags/unbindBind tags to the plant model.
POST/api/v2/devices/{id}/tags/{tagId}/writeDirect write [write_tags].
POST/api/v2/devices/{id}/groups/{groupId}/writeGroup write [write_tags].
GET, POST/api/v2/write-queueQueued writes; release a hold.
MethodPathNotes
GET, POST/api/v2/applicationsUplink destinations.
PUT, DELETE/api/v2/applications/{id}
POST/api/v2/applications/probe, /api/v2/endpoints/probeTest an endpoint.
GET, POST/api/v2/subscriptionsRoutes.
PUT, DELETE/api/v2/subscriptions/{id}
GET, POST/api/v2/collect-jobs, /api/v2/deliver-jobsCollection 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​

MethodPathNotes
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-tokensOne-time enrollment tokens.
DELETE/api/v2/site-runtimes/{id}/enrollment-tokens/{tokenId}
GET/api/v2/site-runtimes/{id}/certsRuntime 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.exeWindows runtime download.
GET/api/v2/runtime-installInstall snippets.
GET/api/v2/fleet/samples, /api/v2/fleet/drivers
GET, PATCH, DELETE/api/v2/fleet-linkJoin and leave a fleet.
GET/api/v2/fleet-link/reportThe 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):

MethodPath
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)​

MethodPathNotes
GET/api/v2/model/treeThe 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​

MethodPathNotes
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-linksPlant links used by the Agent.
GET/api/v2/analysis/context, /api/v2/analysis/changes
GET/api/v2/lineage

History, alarms, dashboards​

MethodPathNotes
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​

MethodPathNotes
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​

MethodPathNotes
GET/api/v2/sor/types
GET, POST/api/v2/sor/connectionsEnterprise 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)​

MethodPathNotes
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/policiesEnterprise feature hitl.policies for saving.

Governance, audit, MCP​

MethodPathNotes
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/mcpThe MCP endpoint (POST JSON-RPC, GET catalogue, DELETE ends a session).
GET, PUT/api/v2/mcp/settingsKill 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.

PathScope
/key, /openapi.jsonany key
/sites, /areas, /work-centers, /equipment, /equipment/{id}/tagsmodel:read
/values/lastvalues:read
/history/series, /history/table, /oee, /oee/losseshistory:read
/alarms/active, /alarms/journalalarms:read
/kg/vocabulary, /kg/graph, /kg/edges, /kg/impactkg:read
/kg/equipment/{id}/statekg: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"
tip

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.