Runtime HTTP API routes
The routes of the eaxPLC runtime API, served by plc-runtime and plc-server and also reachable over NATS (plc.<id>.api) with the same rules. Every /api/ route except the public ones needs a valid PLC token or eaxScada session at the role level shown.
How to read this page
Section titled “How to read this page”- Methods: the methods the handler implements. “any” means the handler does not look at the method; “other: default” means every other method reaches the handler’s default branch.
- Role: who may call the route. “GET, HEAD” and “other methods” give separate rules for reads and for every other method; a list of methods gives the rule for those methods.
- Role levels follow the role hierarchy: operator (Shift_Operator, 40), supervisor (Process_Supervisor, 60), engineer (Lead_Engineer, 80), administrator (100). A higher level includes the lower ones.
- Source: where the route is registered. The method and role annotations sit on the line above each registration (
// route:).
Pages and static files
Section titled “Pages and static files”| Methods | Path | Role | Source |
|---|---|---|---|
| any | / |
public (no sign-in) | eaxPLC/pkg/plcrt/server.go |
| GET | /metrics |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
/api/assistant
Section titled “/api/assistant”| Methods | Path | Role | Source |
|---|---|---|---|
| any | /api/assistant/ |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
/api/audit
Section titled “/api/audit”| Methods | Path | Role | Source |
|---|---|---|---|
| any | /api/audit |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
| any | /api/audit/verify |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
/api/auth
Section titled “/api/auth”| Methods | Path | Role | Source |
|---|---|---|---|
| any | /api/auth/config |
public (no sign-in) | eaxPLC/pkg/plcauth/middleware.go |
| POST | /api/auth/login |
public (no sign-in) | eaxPLC/pkg/plcauth/middleware.go |
| any | /api/auth/logout |
public (no sign-in) | eaxPLC/pkg/plcauth/middleware.go |
| POST | /api/auth/password |
any signed-in user | eaxPLC/pkg/plcauth/localusers_http.go |
| GET, POST | /api/auth/prefs |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
| any | /api/auth/session |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcauth/middleware.go |
| POST | /api/auth/token |
public (no sign-in) | eaxPLC/pkg/plcauth/middleware.go |
/api/browser
Section titled “/api/browser”| Methods | Path | Role | Source |
|---|---|---|---|
| POST | /api/browser |
operator or above | eaxPLC/pkg/plcrt/server.go |
/api/cloud
Section titled “/api/cloud”| Methods | Path | Role | Source |
|---|---|---|---|
| GET, POST, DELETE | /api/cloud |
GET, HEAD: any signed-in user other methods: administrator |
eaxPLC/pkg/plcrt/server.go |
/api/compile
Section titled “/api/compile”| Methods | Path | Role | Source |
|---|---|---|---|
| POST | /api/compile/check |
engineer or above | eaxPLC/pkg/plcrt/server.go |
| GET | /api/compile/library |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
/api/control
Section titled “/api/control”| Methods | Path | Role | Source |
|---|---|---|---|
| POST | /api/control |
operator or above | eaxPLC/pkg/plcrt/server.go |
/api/deploy
Section titled “/api/deploy”| Methods | Path | Role | Source |
|---|---|---|---|
| POST | /api/deploy |
engineer or above + e-signature | eaxPLC/pkg/plcrt/server.go |
| POST | /api/deploy/ai-mark |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
| POST | /api/deploy/ai-status |
engineer or above | eaxPLC/pkg/plcrt/server.go |
| GET, POST | /api/deploy/policy |
GET, HEAD: any signed-in user other methods: engineer or above + e-signature |
eaxPLC/pkg/plcrt/server.go |
| POST | /api/deploy/review-approval |
engineer or above | eaxPLC/pkg/plcrt/server.go |
| POST | /api/deploy/review-request |
engineer or above | eaxPLC/pkg/plcrt/server.go |
| GET, POST | /api/deploy/safety-targets |
GET, HEAD: any signed-in user other methods: engineer or above + e-signature |
eaxPLC/pkg/plcrt/server.go |
| POST | /api/deploy/safety-targets/signed |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
/api/diagnostics
Section titled “/api/diagnostics”| Methods | Path | Role | Source |
|---|---|---|---|
| GET | /api/diagnostics/events |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
/api/fieldbus
Section titled “/api/fieldbus”| Methods | Path | Role | Source |
|---|---|---|---|
| GET, PUT | /api/fieldbus |
GET, HEAD: any signed-in user other methods: engineer or above + e-signature |
eaxPLC/pkg/plcrt/server.go |
| POST | /api/fieldbus/descriptor |
engineer or above | eaxPLC/pkg/plcrt/server.go |
| POST | /api/fieldbus/descriptor/dcf |
engineer or above | eaxPLC/pkg/plcrt/server.go |
| POST | /api/fieldbus/discover |
engineer or above | eaxPLC/pkg/plcrt/server.go |
| any | /api/fieldbus/export |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
| POST | /api/fieldbus/mqtt/browse |
engineer or above | eaxPLC/pkg/plcrt/server.go |
| POST | /api/fieldbus/mqtt/test |
engineer or above | eaxPLC/pkg/plcrt/server.go |
| POST | /api/fieldbus/validate |
engineer or above | eaxPLC/pkg/plcrt/server.go |
/api/force
Section titled “/api/force”| Methods | Path | Role | Source |
|---|---|---|---|
| GET, POST | /api/force |
GET, HEAD: any signed-in user other methods: any signed-in user + the plc.force right (Lead_Engineer, Administrator; never the AI co-pilot), no e-signature |
eaxPLC/pkg/plcrt/server.go |
/api/io-map
Section titled “/api/io-map”| Methods | Path | Role | Source |
|---|---|---|---|
| GET | /api/io-map |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
/api/ladder
Section titled “/api/ladder”| Methods | Path | Role | Source |
|---|---|---|---|
| GET, POST | /api/ladder |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
/api/licence
Section titled “/api/licence”| Methods | Path | Role | Source |
|---|---|---|---|
| GET, POST, PUT, DELETE | /api/licence |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
/api/live
Section titled “/api/live”| Methods | Path | Role | Source |
|---|---|---|---|
| GET | /api/live |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
/api/metrics
Section titled “/api/metrics”| Methods | Path | Role | Source |
|---|---|---|---|
| GET | /api/metrics/snapshot |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
/api/mqtt
Section titled “/api/mqtt”| Methods | Path | Role | Source |
|---|---|---|---|
| GET, POST | /api/mqtt |
GET, HEAD: any signed-in user other methods: engineer or above + e-signature |
eaxPLC/pkg/uns/mqtt_http.go |
| POST | /api/mqtt/test |
engineer or above | eaxPLC/pkg/uns/mqtt_http.go |
/api/plc
Section titled “/api/plc”| Methods | Path | Role | Source |
|---|---|---|---|
| POST, other: default | /api/plc/audit/config |
GET, HEAD: any signed-in user other methods: engineer or above + e-signature |
eaxPLC/pkg/plcrt/server.go |
| any | /api/plc/audit/cycle |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
| any | /api/plc/audit/export |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
| any | /api/plc/audit/range |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
| any | /api/plc/audit/status |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
| any | /api/plc/audit/timeline |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
| GET, POST | /api/plc/config |
GET, HEAD: any signed-in user other methods: engineer or above + e-signature |
eaxPLC/pkg/plcrt/server.go |
| POST, other: default | /api/plc/watchdog |
GET, HEAD: any signed-in user other methods: engineer or above + e-signature |
eaxPLC/pkg/plcrt/server.go |
/api/pous
Section titled “/api/pous”| Methods | Path | Role | Source |
|---|---|---|---|
| any | /api/pous |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
/api/project
Section titled “/api/project”| Methods | Path | Role | Source |
|---|---|---|---|
| GET | /api/project |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/compare |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/deploy |
engineer or above + e-signature | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/exchange/plcopen |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/exchange/plcopen |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/import-running |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/libraries |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/libraries |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/libraries/export |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| DELETE | /api/project/libraries/{name} |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/link |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/online |
any signed-in user | eaxPLC/pkg/plcrt/online_http.go |
| POST | /api/project/online/accept |
engineer or above + e-signature | eaxPLC/pkg/plcrt/online_http.go |
| GET | /api/project/online/base |
any signed-in user | eaxPLC/pkg/plcrt/online_http.go |
| POST | /api/project/online/cancel |
engineer or above | eaxPLC/pkg/plcrt/online_http.go |
| POST | /api/project/online/impact |
engineer or above | eaxPLC/pkg/plcrt/online_http.go |
| GET | /api/project/online/markers |
any signed-in user | eaxPLC/pkg/plcrt/online_http.go |
| POST | /api/project/online/takeover |
engineer or above + e-signature | eaxPLC/pkg/plcrt/online_http.go |
| POST | /api/project/online/test |
engineer or above + e-signature | eaxPLC/pkg/plcrt/online_http.go |
| POST | /api/project/online/untest |
engineer or above | eaxPLC/pkg/plcrt/online_http.go |
| POST | /api/project/pous |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/pous/{name} |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
| PUT | /api/project/pous/{name} |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| DELETE | /api/project/pous/{name} |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/pous/{name}/break |
engineer or above + e-signature | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/pous/{name}/checkout |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| PUT | /api/project/pous/{name}/draft |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/pous/{name}/help |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/pous/{name}/history |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/pous/{name}/release |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/pous/{name}/seal |
engineer or above + e-signature | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/pous/{name}/take |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/pous/{name}/unseal |
engineer or above + e-signature | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/presence |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/refactor/promote |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/search |
any signed-in user | eaxPLC/pkg/plcrt/project_search.go |
| POST | /api/project/search/preview |
engineer or above | eaxPLC/pkg/plcrt/project_search.go |
| POST | /api/project/search/replace |
engineer or above | eaxPLC/pkg/plcrt/project_search.go |
| GET | /api/project/search/undo |
any signed-in user | eaxPLC/pkg/plcrt/project_search.go |
| POST | /api/project/search/undo |
engineer or above | eaxPLC/pkg/plcrt/project_search.go |
| PUT | /api/project/settings |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/tagdoc/{pou} |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
| PUT | /api/project/tagdoc/{pou} |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/tags |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/tags/edit |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/tags/export |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
| POST | /api/project/tags/import |
engineer or above | eaxPLC/pkg/plcrt/project_http.go |
| GET | /api/project/trendsets |
any signed-in user | eaxPLC/pkg/plcrt/trendsets.go |
| PUT | /api/project/trendsets/{name} |
engineer or above | eaxPLC/pkg/plcrt/trendsets.go |
| DELETE | /api/project/trendsets/{name} |
engineer or above | eaxPLC/pkg/plcrt/trendsets.go |
| GET | /api/project/types |
any signed-in user | eaxPLC/pkg/plcrt/project_http.go |
/api/registry
Section titled “/api/registry”| Methods | Path | Role | Source |
|---|---|---|---|
| any | /api/registry |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
/api/rollback
Section titled “/api/rollback”| Methods | Path | Role | Source |
|---|---|---|---|
| POST | /api/rollback |
engineer or above + e-signature | eaxPLC/pkg/plcrt/server.go |
/api/source
Section titled “/api/source”| Methods | Path | Role | Source |
|---|---|---|---|
| any | /api/source |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
/api/stats
Section titled “/api/stats”| Methods | Path | Role | Source |
|---|---|---|---|
| any | /api/stats |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
| any | /api/stats/latency |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
| POST | /api/stats/latency/reset |
operator or above | eaxPLC/pkg/plcrt/server.go |
/api/symbols
Section titled “/api/symbols”| Methods | Path | Role | Source |
|---|---|---|---|
| any | /api/symbols |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
/api/tasks
Section titled “/api/tasks”| Methods | Path | Role | Source |
|---|---|---|---|
| GET, POST | /api/tasks |
GET, HEAD: any signed-in user other methods: engineer or above + e-signature |
eaxPLC/pkg/plcrt/server.go |
| POST | /api/tasks/timing |
engineer or above + e-signature | eaxPLC/pkg/plcrt/server.go |
/api/telemetry
Section titled “/api/telemetry”| Methods | Path | Role | Source |
|---|---|---|---|
| GET | /api/telemetry |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
/api/users
Section titled “/api/users”| Methods | Path | Role | Source |
|---|---|---|---|
| GET, POST, DELETE | /api/users |
administrator | eaxPLC/pkg/plcauth/localusers_http.go |
| any | /api/users/lock |
administrator | eaxPLC/pkg/plcauth/localusers_http.go |
| any | /api/users/password |
administrator | eaxPLC/pkg/plcauth/localusers_http.go |
| any | /api/users/role |
administrator | eaxPLC/pkg/plcauth/localusers_http.go |
/api/versions
Section titled “/api/versions”| Methods | Path | Role | Source |
|---|---|---|---|
| any | /api/versions |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
| any | /api/versions/ |
GET, HEAD: any signed-in user other methods: engineer or above |
eaxPLC/pkg/plcrt/server.go |
/api/write
Section titled “/api/write”| Methods | Path | Role | Source |
|---|---|---|---|
| POST | /api/write |
operator or above + the plc.write right (Shift_Operator and above; never the auditor or the AI co-pilot), no e-signature | eaxPLC/pkg/plcrt/server.go |
/api/xref
Section titled “/api/xref”| Methods | Path | Role | Source |
|---|---|---|---|
| GET | /api/xref |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
| GET | /api/xref/checks |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
| GET | /api/xref/symbol |
any signed-in user | eaxPLC/pkg/plcrt/server.go |
Routes: 122.