API User Manual
This is the complete user manual for the PlantPulse Java API client library (plantpulse-api). You can access all master and operational data of the Platform, including sites, assets, tags, alarms, and work orders, through 13 domain services.
Library Features
- Standard REST — Uses GET/POST/PUT/PATCH/DELETE methods according to their semantic purpose.
- Typed DTOs — All requests and responses are automatically mapped to
*RequestV5/*ResponseV5classes (no manual JSONObject parsing required). - Tab-based PATCH — Supports 10 types of partial updates for Tag alarms, metadata, formulas, and aggregations.
- 13 Domain Services — system, site, customer, employee, product, asset, opc, tag, alarm, order, calendar, path, flow.
- Safe Defaults — Returns
nullor an empty list upon failure (no exceptions thrown).
Who is this manual for? This is a comprehensive reference for developers building external systems (MES, ERP, custom dashboards, etc.) that integrate with the PlantPulse Platform using Java.
Quick Navigation
| Area | Guide |
|---|---|
| Getting Started | Please read in this order: 1. Getting Started → 2. Domain ID Rules → 3. Response Formats and Error Handling. |
| Need a Specific Domain | Navigate directly to the corresponding service (e.g., Tag, Order) in the table of contents below. |
| Direct REST Calls | The Full Endpoint List contains the URL and method mappings. |
| Workflow Examples | Check end-to-end scenarios in the Integration Example Collection. |
| AI Assistant Integration | MCP Server — Allows clients like Claude to query tags, alarms, and assets in natural language and even verify alarms. |
Core Concepts
- Entry Point:
new APIClient_V5(proto, host, port, user, token, debug)→connect() - 13 Services:
client.system(),client.site(),client.customer(),client.employee(),client.product(),client.asset(),client.opc(),client.tag(),client.alarm(),client.order(),client.calendar(),client.path(),client.flow() - Typed DTO Returns: All methods return type classes (
SiteResponseV5,TagResponseV5, etc.) instead ofJSONObject. - Safe Defaults on Failure:
create/update/get→null,list→ empty list,delete/exists→false,count→0. - Error Response Extraction:
BaseServiceV5.getErrorCode(env),getErrorMessage(env),getHttpStatus(env)static methods. - Domain ID Validation: The server verifies a designated prefix for each domain. Levels are determined by
asset_typerather than prefixes — Domain ID Rules. - Base Path: All calls are made to endpoints under
/api/v5.
Table of Contents
Getting Started and Basic Rules
- Getting Started — Client Creation and Connection
- Domain ID Rules ⭐ Please read this first
- Response Formats and Error Handling
Infrastructure and Model Domains
- System Service — Health checks
- Site Service — Site (factory) master
- OPC Service — Data collection channels
- Asset Service — Asset hierarchy (Area · Line · Equipment)
- Tag Service — Tag definitions + 10 PATCH types
- Path Service — Asset path lookup
Operational Domains
- Alarm Service — Alarm event lookup
- Calendar Service — Schedules (inspection, downtime, etc.)
- Order Service — Work orders + lifecycle
Master Data
- Customer Service — Customers
- Employee Service — Employees
- Product Service — Products
Automation
- Flow Service — Flow / Flow Node lookup
Appendix
- Full Endpoint List — URL mapping, maintenance orders, CMMS webhooks, alarm performance
- Integration Example Collection — End-to-end workflows
- MCP Server — Channel for AI assistants to query field data in natural language
Inquiries: webmaster@kopens.com