Developer Resources

API Documentation

Integrate CPGFactory.ai directly into your supply chain. Submit orders, track production, pull analytics, and manage inventory programmatically.

Base URL

https://api.cpgfactory.ai/v1

Authentication

Authorization: Bearer <your_api_key>

SDKs & Libraries

Node.js

npm install @cpgfactory/sdk

Python

pip install cpgfactory

cURL

Available via REST API

Endpoints

POST/v1/orders

Submit a new manufacturing order with product specs, quantity, and priority level.

Auth: Bearer token

GET/v1/orders/:id

Retrieve the current status, batch progress, and QA results for a specific order.

Auth: Bearer token

GET/v1/orders/:id/tracking

Real-time production tracking with stage-by-stage updates from formulation to fulfillment.

Auth: Bearer token

POST/v1/formulations

Submit ingredient lists and target specs for AI-powered formulation optimization.

Auth: Bearer token

GET/v1/formulations/:id/report

Pull the full formulation report including stability analysis, cost breakdown, and compliance flags.

Auth: Bearer token

GET/v1/inventory

Query current raw material and finished goods inventory across all factory verticals.

Auth: Bearer token

POST/v1/batches/:id/reorder

Reorder a previously manufactured batch with identical or modified specs.

Auth: Bearer token

GET/v1/analytics/throughput

Retrieve production throughput metrics, yield rates, and efficiency reports.

Auth: Bearer token

POST/v1/webhooks

Register webhook endpoints to receive real-time notifications on order status changes.

Auth: Bearer token

Rate Limits & Quotas

Starter

100 req/min

500/month

Growth

1,000 req/min

5,000/month

Enterprise

Unlimited

Unlimited