Engine API Reference
Integrate the self-hosted PackCPQ calculation core directly with your in-house ERP, CRM, and CAD schedulers.
Restricted Documentation
To protect the calculation engine's proprietary folding math and algorithms, detailed schema properties, gRPC Protobuf files, SDK code, and integration sandboxes are restricted. They are available exclusively to licensed clients via the system's administration panel.
1. Authentication
Authenticate API client requests using secure bearer tokens. All endpoints require the Authorization: Bearer <token> header.
/api/v1/auth/loginExchanges client credentials for a temporary JWT authorization token.
{
"client_id": "pk_live_8F1cE9...",
"client_secret": "sk_live_9A3dD2..."
}{
"status": "authenticated",
"access_token": "eyJhbGciOiJIUzI1NiIsIn...",
"expires_in": 3600
}2. Core Calculations
Calculate dimensions, costs, and pricing structures on demand. Optimized for real-time CRM price queries.
/api/v1/quotes/calculateCalculates board cost, surface area, structural weight, and margin markup based on FEFCO template styles.
{
"length_mm": 350,
"width_mm": 250,
"depth_mm": 150,
"board_grade": "200B-C-Flute",
"style_key": "FEFCO-0201",
"quantity": 1000
}{
"surface_area_sqm": 0.485,
"net_weight_g": 320,
"raw_material_cost": 0.85,
"markup_applied": 1.35,
"unit_price_usd": 1.15,
"total_price_usd": 1150
}3. Users Management
Create and manage active salesperson and cost estimator access profiles.
/api/v1/usersList all configured system users. Filterable by active role type (e.g. Sales, Estimator).
[
{
"user_id": "usr_9D32F",
"name": "Jane Miller",
"email": "[email protected]",
"role": "estimator",
"status": "active"
},
{
"user_id": "usr_10A8D",
"name": "Mark R.",
"email": "[email protected]",
"role": "sales_representative",
"status": "active"
}
]4. Client Contacts
Sync company profiles and client email contacts for quotation delivery hooks.
/api/v1/contactsRegisters a new client contact for pricing logs and delivery history hooks.
{
"company_name": "Midwest Distributors",
"contact_email": "[email protected]",
"vat_id": "US9418231"
}{
"contact_id": "con_55B9A",
"company_name": "Midwest Distributors",
"status": "registered"
}5. System Diagnostics
Retrieve deployment health metrics, database connectivity statuses, and license validation stats.
/api/v1/plants/statusChecks license keys status, database latency, and active container replication statuses.
{
"status": "healthy",
"active_plants": 3,
"database_latency_ms": 12,
"license_key_valid": true,
"checkin_timestamp": "2026-07-15T11:00:00Z"
}/api/v1/cacheForces a system recalculation check by flushing all cached raw material indexes and shipping profiles.
{
"cache_flushed": true,
"keys_removed": 142,
"timestamp": "2026-07-15T11:00:05Z"
}