Developer docs

The Forge API, the 32-tool MCP server, and the reliability internals. Get a free key at forge.foundrynet.io/pricing: 3 machines, no card.

API Reference

Base URL https://forge.foundrynet.io. Authenticated /v1/* requests send Authorization: Bearer <key> and, with a body, Content-Type: application/json. Free keys start with forge_sandbox_; paid metered keys with fnet_. Every example response on this page is an excerpt of a real response from production, captured on 2026-10-27.

Quick start

  1. Get a free API key at forge.foundrynet.io/pricing: issued instantly (3 machines, no card).
  2. Optional: identify the machine with POST /v1/identify. Normalize provisions the same machine on its own when you send oem, model and serial.
  3. Send data: POST /v1/normalize.
  4. Check any record: POST /v1/verify (public, no key).
  5. Read it back: GET /v1/history/{machine_id}.
  6. Paid plans: register a webhook (POST /v1/tools), draft a rule from plain English (POST /v1/triggers/natural), arm it (POST /v1/triggers).
# 1. Free API key (issued instantly): forge.foundrynet.io/pricing
export FORGE_KEY="forge_sandbox_..."

# 2. Identify (optional: normalize provisions the same machine from oem+model+serial)
curl -s https://forge.foundrynet.io/v1/identify \
  -H "Authorization: Bearer $FORGE_KEY" -H "Content-Type: application/json" \
  -d '{"oem": "haas", "model": "VF-2", "serial": "DOCS-VF2-001"}'

# 3. Normalize
curl -s https://forge.foundrynet.io/v1/normalize \
  -H "Authorization: Bearer $FORGE_KEY" -H "Content-Type: application/json" \
  -d '{"data": {"S SPEED (RPM)": 8500, "SP LOAD PCT (%)": 42, "COOL_TEMP [Β°F]": 68.0}, "oem": "haas", "model": "VF-2", "serial": "DOCS-VF2-001"}' > record.json

# 4. Verify the record (public, no key)
curl -s https://forge.foundrynet.io/v1/verify \
  -H "Content-Type: application/json" \
  -d "{\"record\": $(cat record.json)}"

Endpoints

POST /v1/identify

Provision or look up one machine. The id is derived from what you send: oem, model and serial are lowercased into internal_id (oem:model:serial), and machine_id is derived from that. The same three values always return the same machine, so calling it twice is safe (created: false the second time). Optional.

{
  "oem": "haas",
  "model": "VF-2",
  "serial": "DOCS-VF2-001"
}
{
  "machine_id": "MINT-LOCAL-74bff1da3743",
  "internal_id": "haas:vf-2:docs-vf2-001",
  "created": true,
  "machine": {
    "oem": "haas",
    "model": "VF-2",
    "serial": "DOCS-VF2-001",
    "site": null,
    "metadata": {},
    "status": "active"
  },
  "first_seen": "2026-10-27T19:04:26.774055+00:00"
}
POST /v1/normalize

Translate raw vendor telemetry into canonical fields. Send machine_id, or oem + model + serial to provision the machine (the same id /v1/identify returns). With oem alone you still get the mapping, but no machine is created and nothing is stored (machine_id: null). Up to 200 tags per request; values must be scalars or flat lists of scalars. Optional observed_at (ISO 8601 controller clock).

{
  "data": {
    "S SPEED (RPM)": 8500,
    "SP LOAD PCT (%)": 42,
    "COOL_TEMP [Β°F]": 68.0
  },
  "oem": "haas",
  "model": "VF-2",
  "serial": "DOCS-VF2-001"
}
{
  "normalized": {
    "spindle_speed_rpm": 8500,
    "spindle_load_pct": 42,
    "sensor_readings.coolant_temp": 20.0
  },
  "coverage_pct": 100.0,
  "fields_total": 3,
  "fields_distinct_canonical": 3,
  "fields_unknown": 0,
  "unit_conversions": [
    {
      "raw_field": "COOL_TEMP [Β°F]",
      "canonical_field": "sensor_readings.coolant_temp",
      "from": "F",
      "to": "C",
      "converted": true,
      "unit_source": "tag",
      "conversion": "fahrenheit_to_celsius",
      "raw_value": 68.0,
      "converted_value": 20.0
    }
  ],
  "null_states": null,
  "machine_id": "MINT-LOCAL-74bff1da3743",
  "internal_id": "haas:vf-2:docs-vf2-001",
  "history_id": "9d6865a9-1ad3-4274-9013-cb8e4578b5e8",
  "nte_hash": "fb69e87d4584c57833e26f15191f3cf5c9d2ee2e3821314fb9f7c7c0980e080a",
  "nte_signing_kid": "fk1-215a8027abf35816",
  "field_mappings": {
    "S SPEED (RPM)": {
      "canonical": "spindle_speed_rpm",
      "match_type": "corpus_exact",
      "confidence": 1.0
    },
    "SP LOAD PCT (%)": {
      "canonical": "spindle_load_pct",
      "match_type": "corpus_exact",
      "confidence": 1.0
    },
    "COOL_TEMP [Β°F]": {
      "canonical": "sensor_readings.coolant_temp",
      "match_type": "corpus_exact",
      "confidence": 1.0
    }
  }
}
POST /v1/verify

Check a Forge record. Public: no key, no account. Send the normalize response exactly as issued. status is verified, hash_mismatch (the record was altered), bad_signature, or unsigned.

{
  "record": "…the full /v1/normalize response…"
}
{
  "verified": true,
  "status": "verified",
  "recomputed_hash": "fb69e87d4584c57833e26f15191f3cf5c9d2ee2e3821314fb9f7c7c0980e080a",
  "stated_hash": "fb69e87d4584c57833e26f15191f3cf5c9d2ee2e3821314fb9f7c7c0980e080a",
  "signing_kid": "fk1-215a8027abf35816"
}
GET /v1/history/{machine_id}

Stored readings for one machine. Query params: from, to (ISO 8601), fields (csv), limit (≀1000), summary (bool).

GET /v1/history/MINT-LOCAL-74bff1da3743?limit=2&summary=true
{
  "mint_id": "MINT-LOCAL-74bff1da3743",
  "machine": {
    "mint_id": "MINT-LOCAL-74bff1da3743",
    "oem": "haas",
    "model": "VF-2",
    "serial": "DOCS-VF2-001",
    "site": null
  },
  "row_count": 2,
  "from": "2026-10-27T19:04:31.231811+00:00",
  "to": "2026-10-27T19:04:34.545129+00:00",
  "avg_coverage": 100.0,
  "fields_covered": [
    "sensor_readings.coolant_temp",
    "spindle_load_pct",
    "spindle_speed_rpm"
  ]
}
GET /v1/usage

Usage and estimated bill for the key's account. On a free key there is no metered billing:

{
  "metered": false,
  "reason": "no active stripe customer on file"
}
GET /v1/triggers

List automations. Filter with ?machine_id=.

{
  "triggers": [],
  "count": 0
}
POST /v1/triggers

Create and arm an automation. Paid plan: a free key receives the 402 below. Fields: machine_id (optional; omit for a general trigger), name, condition, and either webhook_url (+ optional payload_template) or actions ([{tool_id, payload_overrides?, headers_overrides?}]); optional duration_seconds, enabled (default true). Needs the automate permission; agent keys can be denied it. There is no separate activate endpoint: creating the trigger arms it.

{
  "machine_id": "MINT-LOCAL-74bff1da3743",
  "name": "high spindle load",
  "condition": {
    "field": "spindle_load_pct",
    "op": ">",
    "value": 90
  },
  "webhook_url": "https://example.com/forge-hook",
  "enabled": true
}
{
  "detail": "Trigger creation requires a paid plan. Upgrade at https://foundrynet.io/#docs (POST /v1/keys/checkout with tier='paid' to add a payment method)."
}
POST /v1/triggers/natural

Paid plan. Turn a plain-English instruction into a structured condition for review. It never arms anything; send the reviewed condition to POST /v1/triggers.

{
  "machine_id": "MINT-LOCAL-74bff1da3743",
  "instruction": "Notify me when spindle load exceeds 90 percent"
}
GET Β· PATCH Β· DELETE /v1/triggers/{id}

Read, update (name, condition, webhook_url, payload_template, actions, duration_seconds, enabled) or delete one trigger. Delete is soft by default and restorable for 30 days with PATCH /v1/triggers/{id}/restore; ?permanent=true deletes for good.

POST /v1/tools

Paid plan. Register a webhook endpoint that triggers reference by tool_id. auth_type: none, bearer, basic or hmac. auth_secret is returned once on create and never read back.

{
  "name": "slack-maintenance",
  "url": "https://hooks.slack.com/services/T…/B…/…",
  "method": "POST",
  "payload_template": {
    "text": "{{field}} at {{value}}"
  },
  "auth_type": "hmac"
}
POST /v1/feedback/{mapping_id}/confirm Β· /correct

Confirm or correct one mapping from a normalize response (mapping_id is in field_mappings). Required body fields: source_field and original_canonical; /correct also takes the canonical field you want instead.

POST /v1/settle?batch=true

Paid plan. Roll the machine's unsettled events into one tamper-evident record. 2Β’ per batch.

{
  "machine_id": "MINT-LOCAL-74bff1da3743"
}
DELETE /v1/keys/{id}

Revoke a key. A free key cannot revoke keys, including itself; it receives the 403 below. To revoke a free key, email foundrynet@proton.me.

{
  "detail": "Sandbox keys cannot manage API keys or account settings. Sign in to the dashboard, or upgrade at https://foundrynet.io/pricing."
}

Webhook signatures

Trigger deliveries are POSTed as compact JSON with an X-FoundryNet-Signature: sha256=<hex> header: the HMAC-SHA256 of the raw request body, keyed with the trigger's webhook secret (or, for a tool registered with auth_type: "hmac", its auth_secret). Verify against the raw bytes you received, before parsing:

import hashlib, hmac

def verify_forge_webhook(secret: str, raw_body: bytes, header: str) -> bool:
    """header is the X-FoundryNet-Signature value, e.g. "sha256=4f1c..."."""
    expected = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, header)

Rate limits

Every authenticated response carries x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset. Over the limit, you get HTTP 429:

{
  "error": "rate_limit_exceeded",
  "limit": 100,
  "window": "hour",
  "message": "You have used all 100 calls in this hour on the sandbox tier. The limit resets at 19:00 UTC (2735s) β€” retry then, or raise the limit at https://forge.foundrynet.io/pricing. Nothing is charged on a sandbox key.",
  "reason": "100 calls/hour exhausted on the sandbox tier; retry in 2735s",
  "reset_at": "2026-10-27T19:00:00+00:00",
  "retry_after_seconds": 2735,
  "upgrade_url": "https://forge.foundrynet.io/pricing"
}

Errors

Errors are JSON. Validation errors name the field and the reason.

401

{
  "error": "invalid_api_key",
  "message": "Invalid, revoked or expired API key. Omit the Authorization header entirely for keyless sandbox access, or get a free key at https://foundrynet.io/quickstart."
}

404

{
  "detail": "Machine machine LOCAL-000000000000 not found for this user"
}

422

{
  "error": true,
  "status": 422,
  "field": "data.axes",
  "reason": "Telemetry values must be a scalar (number/string/bool) or a flat list of scalars, not a nested object.",
  "received_value": "dict",
  "detail": "Telemetry values must be a scalar (number/string/bool) or a flat list of scalars, not a nested object."
}

413

{
  "error": true,
  "status": 413,
  "field": "data",
  "reason": "Too many tags (201). Maximum is 200 tags per request; split larger payloads into batches.",
  "received_value": 201,
  "suggestion": "Max 200 tags per request",
  "detail": "Too many tags (201). Maximum is 200 tags per request; split larger payloads into batches."
}

MCP server

MCP endpoint (streamable HTTP): https://mcp.foundrynet.io/mcp

Forge exposes 32 MCP tools over mcp.foundrynet.io/mcp, spanning normalization, prediction, operations analytics, guardrails, and governance. GET https://mcp.foundrynet.io/health and GET https://forge.foundrynet.io/health both report 32. They work across 12 industrial protocols and 49 vendor packs across 20 verticals.

Prediction tools (predict_breach, remaining_life, fleet_health and predict_batch are paid)

Cloud core tools

Forecasting and diagnostics tools (paid, except prediction_accuracy)

Operations analytics tools

Guardrail tools

Agent registry tools

Reliability + record integrity

Soft delete

DELETE /v1/triggers/{id} defaults to soft delete, sets deleted_at, hides from list/eval, restorable for 30 days via PATCH /v1/triggers/{id}/restore. Add ?permanent=true for irrecoverable hard delete.

Idempotency

/v1/normalize accepts an optional idempotency_key and stores it with the record, but repeats are not skipped today: every request is stored as its own record and returns deduplicated: false, including a retry with the same key. Retry only when a request actually failed.

Coverage metric

Every /v1/normalize response carries three counters: fields_renamed (source != canonical), fields_identity (source == canonical), fields_unknown (no mapping). coverage_pct = usable / total × 100, where usable counts each distinct canonical field that came back with a non-null value and a known unit. A value nulled by a sentinel, physics or type check, a contested field, or a value whose unit could not be determined (unit_undetermined) is mapped but not covered; fields_distinct_canonical counts what mapped. Per-field match_type says how a tag was matched, for example corpus_exact or corpus_folded (a known vendor mapping, exact or case-folded), deterministic (a vendor pack), exact_canonical (the tag already was the canonical name), vector (embedding similarity), abstained (no mapping confident enough), or contested (two tags disagreed about one field).

Record timestamps

observed_at (ISO 8601 from the controller clock) is optional on /v1/normalize. Stored alongside ingested_at (server). When the difference exceeds 60s, response includes clock_skew_warning. Sustained-condition windows reference observed_at when present.

System requirements

Forge runs as a Docker container on any Linux host: cloud, on-premise server, industrial PC, or edge gateway.

Minimum (edge deployment)

CPU:      2 cores, x86_64 or ARM64
RAM:      4 GB
Storage:  10 GB available
OS:       Linux (Ubuntu 20.04+, Debian 11+, Amazon Linux 2)
Network:  Ethernet to OT network (for Modbus TCP / OPC UA / BACnet)
          Optional internet for cloud sync and updates
Runtime:  Docker 20.10+ or AWS Greengrass V2

Recommended (production)

CPU:      4 cores
RAM:      8 GB
Storage:  50 GB (accommodates extended telemetry history)
Network:  1 Gbps to OT network + internet for webhooks and updates

Cloud deployment

Any container host: Railway, AWS ECS, GCP Cloud Run, Azure Container Apps. No special hardware. Connects to equipment via API or protocol bridge.

Supported protocols

13 protocols ship a working client; 12 decode payloads end to end (MQTT reads JSON payloads; Sparkplug B protobuf decode is in progress). Modbus RTU and SNMP are not available yet.

MQTT            (push, real-time streaming; JSON payloads; Sparkplug B protobuf decode in progress)
Modbus TCP      (poll, from a register map you provide)
OPC UA          (subscribe; tags discovered by browsing)
BACnet/IP       (from an object map you provide)
ROS2            (subscribe, robotics and AMR fleets)
J1939 / CAN     (listen, vehicles and heavy equipment)
MAVLink         (listen, drones and aerial vehicles)
MTConnect       (poll; tags discovered from /probe)
EtherNet/IP     (poll; tags discovered by browsing)
PROFINET / S7   (poll, from a variable map you provide)
REST API        (push or pull, any HTTP-capable device)
CSV upload      (batch, historical data import)
MachineMetrics  (poll, MachineMetrics GraphQL API)

Runs on a standard Linux host

Forge reads equipment that exposes telemetry over a supported protocol, through the network it is already on. It needs a Linux host meeting the requirements above, hosted or on your site; it does not need replacement sensors or rewiring.

The numbers on this site

Each number answers a different question, so they are not interchangeable:

Pricing

Building on Forge? The sandbox is free and runs on your own machine (docker pull ghcr.io/foundrynet/forge-sandbox). Direct API integration is $0.30 per 1,000 normalized telemetry events, on graduated tiers. Embedding the engine in a platform you sell is usage-based licensing at $0.15 per 1,000 events, graduating to $0.03 at scale. Full rate card at forge.foundrynet.io/pricing.

The rates below are the metered option for developers and AI agents making occasional queries,. Query GET /v1/usage for live counts and an estimated bill.

A Normalized Telemetry Event (NTE) is each individual tag-value pair submitted for resolution: a request carrying N tag-value pairs is N NTEs. Normalize bills on graduated tiers per 1,000 NTE: the first 100M events each month bill at the first-tier rate regardless of total volume, and only events above each threshold bill at the next rate. Worked example: a machine sending 15 tags once a minute produces 15 × 60 × 24 × 30 = 648,000 NTEs a month, about $194/month on the direct API ($0.30 per 1,000) or about $97/month at the platform rate ($0.15 per 1,000).

Free usage. The sandbox is the local Docker image: no key, no normalize cap. The hosted API needs a free API key: up to 3 machines, 100 calls an hour and 1,000 a day, no card. Keyless calls to the hosted API are limited to 5 normalize calls a day.

Get a free API key, issued instantly: start free or go Production at forge.foundrynet.io/pricing. Platform licenses: foundrynet@proton.me.

Enterprise

Fleet deployments

On-site deployment as a Docker container, or as an AWS Greengrass component. Batch prediction and remaining-life estimates are paid tools.

Contact: foundrynet@proton.me

Security

  • Fernet symmetric encryption on webhook auth secrets at rest.
  • HMAC-SHA256 signature on webhook deliveries (X-FoundryNet-Signature, above).
  • API keys hashed (SHA-256): we store the hash, not the key.
  • Signed records: every normalize response carries an Ed25519-signed hash anyone can check at POST /v1/verify.

Full detail in the Privacy Policy.