Skip to content

Automate Production

Integrate production workflows with your systems to track manufacturing operations and maintain real-time visibility.

  • Track production events as inventory is produced
  • Monitor production metrics and yields
  • Trigger downstream workflows from production events

Register a webhook to receive notifications when inventory is produced:

curl -X POST "https://api.tracktile.io/hooks" \
-H "Authorization: Bearer api-YOUR_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{
"name": "Production Events",
"url": "https://your-system.com/webhooks/production",
"on": "inventory.produced"
}'
app.post("/webhooks/production", (req, res) => {
// Verify the webhook signature (see Webhook Security docs)
const event = verifyWebhook(req, process.env.WEBHOOK_SECRET);
if (event.kind === "inventory.produced") {
const { entities, flowId, transactionId } = event;
// Process each produced item
for (const entity of entities) {
recordProduction({
entityId: entity.id,
entityName: entity.name,
productId: entity.productId,
quantity: entity.quantity,
producedAt: event.time,
});
}
}
res.status(200).send("OK");
});
EventDescription
inventory.producedInventory created via production/transformation
inventory.receivedInventory received from external sources
inventory.modifiedInventory attributes or correlations updated
inventory.destroyedInventory consumed or destroyed

View all Inventory Events →