# InsightChain > The InsightChain API: supply-chain intelligence for your systems and your agents. - [InsightChain API](https://insightchain.mintlify.dev/docs/index.md): What the InsightChain API covers, its base URL, and where to go next. - [Quickstart](https://insightchain.mintlify.dev/docs/quickstart.md): A working call in about five minutes, against a sandbox filled with demo data. - [Authentication](https://insightchain.mintlify.dev/docs/authentication.md): API keys, scopes and rate limits, managing keys through the API, and the request log. - [Sandbox and test keys](https://insightchain.mintlify.dev/docs/sandbox.md): A copy of the product filled with demo data, reached with a test key. - [Conventions](https://insightchain.mintlify.dev/docs/conventions.md): What every route has in common: errors, lists and cursors, rate-limit headers, safe retries and request ids. - [Errors](https://insightchain.mintlify.dev/docs/errors.md): The error object every failed call answers with, its five types and every error code. - [Versioning](https://insightchain.mintlify.dev/docs/versioning.md): What can change in the API without notice, and how deprecation is announced. - [Webhooks](https://insightchain.mintlify.dev/docs/webhooks.md): Receive alerts as signed POST requests, verify them, and read the delivery log. - [Recipes](https://insightchain.mintlify.dev/docs/recipes.md): One job per recipe: the scopes it needs, its steps with code, and what comes back. - [Data ingestion](https://insightchain.mintlify.dev/docs/ingestion.md): Push your supply-chain data into InsightChain's canonical model, safely and repeatably. - [Trade](https://insightchain.mintlify.dev/docs/trade.md): A guide to the trade endpoints: tariffs, denied party screening, landed cost, location risk, import tax, customs documents and tariff impact. - [Inventory and risk](https://insightchain.mintlify.dev/docs/inventory-and-risk.md): Inventory reads, forecast accuracy and checks, ESG footprint, disruptions, recalls, product compliance, alerts and connections. - [Execution and approval](https://insightchain.mintlify.dev/docs/execution.md): Turn a recommendation into an order, approve it under maker-checker rules, write it back to the ERP, and read the evidence behind it. - [Product passports](https://insightchain.mintlify.dev/docs/passports.md): Create, fill and publish Digital Product Passports, and resolve them from a GS1 Digital Link. - [Connect an AI client](https://insightchain.mintlify.dev/docs/agents.md): Connect an assistant to the InsightChain MCP server, with setup for each client and the tools by the question they answer. - [Changelog](https://insightchain.mintlify.dev/docs/changelog.md): What changed for callers of the API, newest first. - [Ingest competitor data](https://insightchain.mintlify.dev/docs/api-reference/data-ingestion/ingest-competitor-data.md): Push competitor brands, styles and trend signals: at least one of brands, styles or signals is required. One bad record writes nothing. - [Ingest records](https://insightchain.mintlify.dev/docs/api-reference/data-ingestion/ingest-records.md): Push canonical supply-chain records; idempotent upsert by external_id, per-entity counts. Optional Idempotency-Key header. The body is at most 2 MB (413 above). - [Ingest sensor events](https://insightchain.mintlify.dev/docs/api-reference/data-ingestion/ingest-sensor-events.md): Push RFID, ambient IoT, temperature and GPS reads. The body is at most 2 MB (413 above). - [Ingest supplier invoices](https://insightchain.mintlify.dev/docs/api-reference/data-ingestion/ingest-supplier-invoices.md): Push supplier invoices (structured, or raw text to extract); matched three ways and turned into exceptions. The body is at most 4 MB (413 above). - [Create tariff check](https://insightchain.mintlify.dev/docs/api-reference/tariff-check/create-tariff-check.md): Duty for an HS code (or a description to classify) from an origin into the US, UK or EU, with FTA eligibility and surcharges. One of hs_code or item_description is required. The lookup is logged and cached. - [Create landed cost](https://insightchain.mintlify.dev/docs/api-reference/landed-cost/create-landed-cost.md): Total landed cost: CIF, duty (looked up as a tariff check, which also needs the tariff module, or your own rate), fees and import VAT. One of hs_code or item_description is required. Logs the calculation. - [Get import tax](https://insightchain.mintlify.dev/docs/api-reference/import-taxes/get-import-tax.md): The same as POST, with query parameters. - [Create import tax](https://insightchain.mintlify.dev/docs/api-reference/import-taxes/create-import-tax.md): Import VAT / GST rules for a country, and the VAT on a shipment when goods_value is sent. - [Create customs document](https://insightchain.mintlify.dev/docs/api-reference/customs-documents/create-customs-document.md): A commercial invoice, packing list or both, computed from the shipment you send. Logs the document. - [Create denied party screening](https://insightchain.mintlify.dev/docs/api-reference/denied-party-screening/create-denied-party-screening.md): Screen a person or company against the consolidated denied-party lists: CLEAR, REVIEW or BLOCK with the matches. One of company_name, or first_name with last_name, is required. Stores the screening. - [Create location risk](https://insightchain.mintlify.dev/docs/api-reference/location-risk/create-location-risk.md): Sanctions and trade-compliance risk for a country. Logs the screening. - [List trade announcements](https://insightchain.mintlify.dev/docs/api-reference/tariff-impact-and-trade-data/list-trade-announcements.md): Trade announcements. - [List country risks](https://insightchain.mintlify.dev/docs/api-reference/tariff-impact-and-trade-data/list-country-risks.md): Country risk profiles. - [List duty orders](https://insightchain.mintlify.dev/docs/api-reference/tariff-impact-and-trade-data/list-duty-orders.md): Anti-dumping and countervailing duty orders. - [List tariff actions](https://insightchain.mintlify.dev/docs/api-reference/tariff-impact-and-trade-data/list-tariff-actions.md): Tariff actions in force or announced. - [List tariff impact briefs](https://insightchain.mintlify.dev/docs/api-reference/tariff-impact-and-trade-data/list-tariff-impact-briefs.md): Written tariff impact briefs. - [List tariff impact history](https://insightchain.mintlify.dev/docs/api-reference/tariff-impact-and-trade-data/list-tariff-impact-history.md): Daily tariff impact totals. - [List tariff impact rollups](https://insightchain.mintlify.dev/docs/api-reference/tariff-impact-and-trade-data/list-tariff-impact-rollups.md): Your tariff impact rolled up by summary, action, item or supplier. - [List recommendations](https://insightchain.mintlify.dev/docs/api-reference/recommendations/list-recommendations.md): Recommendations from every agent with their status, newest first. - [Get recommendation](https://insightchain.mintlify.dev/docs/api-reference/recommendations/get-recommendation.md): One recommendation. - [Approve recommendation](https://insightchain.mintlify.dev/docs/api-reference/recommendations/approve-recommendation.md): Approve a recommendation (the key's creator must still be a member). Takes no body. - [Dismiss recommendation](https://insightchain.mintlify.dev/docs/api-reference/recommendations/dismiss-recommendation.md): Dismiss a recommendation (the key's creator must still be a member). Takes no body. - [Set recommendation status](https://insightchain.mintlify.dev/docs/api-reference/recommendations/set-recommendation-status.md): Approve or dismiss a recommendation, the status in the body (the key's creator must still be a member). The same as /approve and /dismiss. - [List orders](https://insightchain.mintlify.dev/docs/api-reference/orders-and-approval/list-orders.md): Orders in the approval loop with payload, policy decision, proposer and approver. - [Create order action](https://insightchain.mintlify.dev/docs/api-reference/orders-and-approval/create-order-action.md): Act in the approval loop: propose, edit_quantity and cancel (execute); approve, reject, execute and verify (approve, creator an org admin who is not the proposer); get_policies (read). A quantity a person set always waits for a person's approval, and whoever sets it becomes the order's proposer. Wit… - [Get order](https://insightchain.mintlify.dev/docs/api-reference/orders-and-approval/get-order.md): One order. - [Create explanation](https://insightchain.mintlify.dev/docs/api-reference/explanations/create-explanation.md): The computed evidence behind a recommendation and a narrative (from a template, or written with AI when use_ai is set). - [List alerts](https://insightchain.mintlify.dev/docs/api-reference/alerts/list-alerts.md): Alerts, newest first. - [Get alert](https://insightchain.mintlify.dev/docs/api-reference/alerts/get-alert.md): One alert. - [Acknowledge alert](https://insightchain.mintlify.dev/docs/api-reference/alerts/acknowledge-alert.md): Acknowledge an open alert. Takes no body. The key's creator must still be a member of the organization. - [Resolve alert](https://insightchain.mintlify.dev/docs/api-reference/alerts/resolve-alert.md): Resolve an open or acknowledged alert. Takes no body. The key's creator must still be a member of the organization. - [Set alert status](https://insightchain.mintlify.dev/docs/api-reference/alerts/set-alert-status.md): Acknowledge or resolve an alert, the status in the body. The same as /acknowledge and /resolve: open to acknowledged or resolved, acknowledged to resolved, anything else is 409. The key's creator must still be a member of the organization. - [List demand stats](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-demand-stats.md): Demand classification and statistics per item and location. - [Get ESG footprint](https://insightchain.mintlify.dev/docs/api-reference/inventory/get-esg-footprint.md): Spend-based CO2e footprint by lane, supplier and item, with mode-shift candidates. - [List expiry actions](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-expiry-actions.md): Transfers and markdowns for stock about to expire. Read-only; `planning` in the answer says whether it is the latest stored result or one made for this request's settings. The same proposals are listed as proposed recommendations. - [List expiry risks](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-expiry-risks.md): Lots projected to expire unsold (FEFO). - [List forecast accuracy](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-forecast-accuracy.md): Forecast accuracy measured on your own sales history: ours against naive and seasonal naive, with error, bias, scaled error and sample size per level. - [List forecasts](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-forecasts.md): Deterministic demand forecast per item and location, with calendar demand drivers. Read-only; `planning` in the answer says whether it is the latest stored result or one made for this request's settings. - [List markdown candidates](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-markdown-candidates.md): Overhang markdown suggestions. Read-only; `planning` in the answer says whether it is the latest stored result or one made for this request's settings. The same proposals are listed as proposed recommendations. - [Get merchandise plan](https://insightchain.mintlify.dev/docs/api-reference/inventory/get-merchandise-plan.md): Category sales, margin, GMROI, weeks of supply and open-to-buy. - [List new product forecasts](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-new-product-forecasts.md): Cold-start estimates from same-category items. - [List purchase order risks](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-purchase-order-risks.md): Risk score and action per open purchase order; days until expected follows the supplier network's predicted arrival when there is one. Read-only. - [List purchase proposals](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-purchase-proposals.md): Network-level purchase proposals with a suggested supplier. Read-only; `planning` in the answer says whether it is the latest stored result or one made for this request's settings. The same proposals are listed as proposed recommendations. - [List rebalance recommendations](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-rebalance-recommendations.md): Ranked transfer proposals. Read-only; `planning` in the answer says whether it is the latest stored result or one made for this request's settings. The same proposals are listed as proposed recommendations. - [List replenishment params](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-replenishment-params.md): Safety stock, reorder point and on-hand per item and location. Read-only; `planning` in the answer says whether it is the latest stored result or one made for this request's settings. - [List size allocations](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-size-allocations.md): Size-run split per store. - [List stockout projections](https://insightchain.mintlify.dev/docs/api-reference/inventory/list-stockout-projections.md): Days to stockout per item and location, with inbound; supplier_updates on a row says how ship notices, predicted arrivals and accepted supplier answers moved it. Read-only; `planning` in the answer says whether it is the latest stored result or one made for this request's settings. - [Create forecast check](https://insightchain.mintlify.dev/docs/api-reference/forecast-check/create-forecast-check.md): Check your own forecast rows against our baseline for the same period, with the signals in that window and a verdict per row. One of rows or stored is required, never both: send rows, or stored: one week of a plan version we hold (its id is shown in the app; needs the demand_planning module), paged… - [List disruptions](https://insightchain.mintlify.dev/docs/api-reference/disruptions/list-disruptions.md): The 200 most severe active disruption events crossed with your suppliers, open POs and inventory, each with a 0-100 exposure score. - [List disruption event exposure](https://insightchain.mintlify.dev/docs/api-reference/disruptions/list-disruption-event-exposure.md): Exposed events, ranked. - [List disruption exposure by product](https://insightchain.mintlify.dev/docs/api-reference/disruptions/list-disruption-exposure-by-product.md): Exposure per item. - [Get disruption exposure totals](https://insightchain.mintlify.dev/docs/api-reference/disruptions/get-disruption-exposure-totals.md): Events affecting you, suppliers, countries, open POs and value at risk. - [Get compliance check](https://insightchain.mintlify.dev/docs/api-reference/product-compliance/get-compliance-check.md): The stored admissibility verdict for one of your items in a country (blocked, conditional, clear or unknown) with its scope, reasons and sources, or a not-computed state saying why there is none. - [Create compliance check](https://insightchain.mintlify.dev/docs/api-reference/product-compliance/create-compliance-check.md): An admissibility verdict for a commodity code from up to 5 origin countries into a destination, with no item on file. Stores nothing for your organization. 30 a minute per key (429 above); the body is at most 16 KB (413 above). - [List compliance verdicts](https://insightchain.mintlify.dev/docs/api-reference/product-compliance/list-compliance-verdicts.md): Your stored admissibility verdicts, by country then item, with scope and reasons. Each carries unknown_causes: coverage (we hold no rules for the country or chapter) or item_data (the item's data can fix it), review, source. - [List recall matches](https://insightchain.mintlify.dev/docs/api-reference/product-recalls/list-recall-matches.md): Product recall notices matched to your items, newest first, each with the basis of the match, a score, and whether a person confirmed or dismissed it. - [Get recall match](https://insightchain.mintlify.dev/docs/api-reference/product-recalls/get-recall-match.md): One recall match with its notice (issuing authority and a link to the official notice), why it matched (each identifier compared, the notice's value beside your item's), and where the item is: stock on hand and in transit by location and lot, open purchase orders, inbound ship notices, and the hold… - [List recall notices](https://insightchain.mintlify.dev/docs/api-reference/product-recalls/list-recall-notices.md): Recent official product recall notices, newest first, with the issuing authority and a link to each notice. - [List passports](https://insightchain.mintlify.dev/docs/api-reference/product-passports/list-passports.md): Passports, most recently updated first. - [Create passport](https://insightchain.mintlify.dev/docs/api-reference/product-passports/create-passport.md): Create a passport for an item you ingested. - [List passport gaps](https://insightchain.mintlify.dev/docs/api-reference/product-passports/list-passport-gaps.md): The completeness gaps across all passports. - [Get passport](https://insightchain.mintlify.dev/docs/api-reference/product-passports/get-passport.md): One passport with every field, its completeness and its GS1 Digital Link. - [Update passport](https://insightchain.mintlify.dev/docs/api-reference/product-passports/update-passport.md): Update a passport's fields: at least one is required. Sending public_enabled also needs the execute scope, and then the key's creator must still be a member. - [Get passport completeness](https://insightchain.mintlify.dev/docs/api-reference/product-passports/get-passport-completeness.md): A passport's completeness score, its gaps and the requirement checklist. - [List passport custody](https://insightchain.mintlify.dev/docs/api-reference/product-passports/list-passport-custody.md): A passport's chain-of-custody transfers in order, with how much of the chain is documented. - [Replace passport custody](https://insightchain.mintlify.dev/docs/api-reference/product-passports/replace-passport-custody.md): Replace chain-of-custody transfers. Transfers written from confirmed origin evidence are kept. - [List passport documents](https://insightchain.mintlify.dev/docs/api-reference/product-passports/list-passport-documents.md): A passport's documents, each with a short-lived download link. - [Create passport document](https://insightchain.mintlify.dev/docs/api-reference/product-passports/create-passport-document.md): Register a document and get a signed upload URL. - [List passport EUDR plots](https://insightchain.mintlify.dev/docs/api-reference/product-passports/list-passport-eudr-plots.md): A passport's EUDR plots, and whether its due diligence statement is ready. - [Replace passport EUDR plots](https://insightchain.mintlify.dev/docs/api-reference/product-passports/replace-passport-eudr-plots.md): Replace EUDR plots. Plots written from confirmed origin evidence are kept. - [List passport events](https://insightchain.mintlify.dev/docs/api-reference/product-passports/list-passport-events.md): A passport's lifecycle events, newest first. - [Create passport event](https://insightchain.mintlify.dev/docs/api-reference/product-passports/create-passport-event.md): Add a lifecycle event. - [Get passport impact estimate](https://insightchain.mintlify.dev/docs/api-reference/product-passports/get-passport-impact-estimate.md): An estimated carbon footprint of the product, from the passport's bill of materials. - [List passport materials](https://insightchain.mintlify.dev/docs/api-reference/product-passports/list-passport-materials.md): A passport's bill of materials, including the rows its suppliers submitted. - [Replace passport materials](https://insightchain.mintlify.dev/docs/api-reference/product-passports/replace-passport-materials.md): Replace the bill of materials. Rows your suppliers submitted are kept. - [List passport origin evidence](https://insightchain.mintlify.dev/docs/api-reference/product-passports/list-passport-origin-evidence.md): The origin evidence read from a passport's documents, each with its review status. - [Create passport origin evidence](https://insightchain.mintlify.dev/docs/api-reference/product-passports/create-passport-origin-evidence.md): Extract origin evidence from a document of the passport (a PDF or an image, already uploaded): once per document, a repeat returns the stored result; 25 documents per passport. - [Review passport origin evidence](https://insightchain.mintlify.dev/docs/api-reference/product-passports/review-passport-origin-evidence.md): Confirm or reject origin evidence; confirm needs country. A decision: the key's creator must still be a member. - [Publish passport](https://insightchain.mintlify.dev/docs/api-reference/product-passports/publish-passport.md): Publish a version (422 while blocking gaps remain). Publishing does not open the passport to the public: public_enabled does. A decision: the key's creator must still be a member. - [List passport substances](https://insightchain.mintlify.dev/docs/api-reference/product-passports/list-passport-substances.md): A passport's substance declarations. - [Replace passport substances](https://insightchain.mintlify.dev/docs/api-reference/product-passports/replace-passport-substances.md): Replace substance declarations. - [Get passport UFLPA](https://insightchain.mintlify.dev/docs/api-reference/product-passports/get-passport-uflpa.md): A passport's UFLPA review and the evidence packages assembled so far. - [Create passport UFLPA package](https://insightchain.mintlify.dev/docs/api-reference/product-passports/create-passport-uflpa-package.md): Assemble a UFLPA evidence package. - [List passport versions](https://insightchain.mintlify.dev/docs/api-reference/product-passports/list-passport-versions.md): A passport's published versions, newest first. - [List webhooks](https://insightchain.mintlify.dev/docs/api-reference/webhooks/list-webhooks.md): Your webhook endpoints (never the secret). - [Create webhook](https://insightchain.mintlify.dev/docs/api-reference/webhooks/create-webhook.md): Add an endpoint; the signing secret is in this response only. At most 10 endpoints per organization (409 above). 30 endpoint changes an hour per organization (429 above). - [Update webhook](https://insightchain.mintlify.dev/docs/api-reference/webhooks/update-webhook.md): Change an endpoint's URL, events or active flag. At least one of url, events or active is required. 30 endpoint changes an hour per organization (429 above). - [Delete webhook](https://insightchain.mintlify.dev/docs/api-reference/webhooks/delete-webhook.md): Remove an endpoint. 30 endpoint changes an hour per organization (429 above). - [List webhook deliveries](https://insightchain.mintlify.dev/docs/api-reference/webhooks/list-webhook-deliveries.md): The delivery log of an endpoint: every attempt of the last 30 days, newest first. - [Redeliver webhook delivery](https://insightchain.mintlify.dev/docs/api-reference/webhooks/redeliver-webhook-delivery.md): Send a finished delivery once more, now. One attempt; the answer says how it went. A delivery still being retried, a cancelled one, or one of a switched-off endpoint is 409; a test event cannot be redelivered. 30 an hour per organization (429 above). - [Rotate webhook secret](https://insightchain.mintlify.dev/docs/api-reference/webhooks/rotate-webhook-secret.md): A new signing secret, in this response only. With overlap_seconds the old secret keeps signing beside the new one until the window ends. 30 endpoint changes an hour per organization (429 above). - [Test webhook](https://insightchain.mintlify.dev/docs/api-reference/webhooks/test-webhook.md): Send one signed insightchain.test event now (10 an hour per organization, 429 above). - [List connections](https://insightchain.mintlify.dev/docs/api-reference/connections/list-connections.md): Connections with last sync, entity state and any running sync. - [Get connection](https://insightchain.mintlify.dev/docs/api-reference/connections/get-connection.md): One connection. - [Sync connection](https://insightchain.mintlify.dev/docs/api-reference/connections/sync-connection.md): Start a sync now (4 per connection per hour; 409 while one runs, and when the connection is disconnected or has no scheduled pull; 202 when it is still running after 60 s: read GET /v1/sync_runs for how it ends). - [List sync runs](https://insightchain.mintlify.dev/docs/api-reference/sync-runs/list-sync-runs.md): Sync runs with counts and errors (secrets redacted). - [List API keys](https://insightchain.mintlify.dev/docs/api-reference/api-keys/list-api-keys.md): The API keys of your organization, the newest 500 (never a secret). A test key lists the sandbox's keys. - [Create API key](https://insightchain.mintlify.dev/docs/api-reference/api-keys/create-api-key.md): Create a key; its secret is in this response only. Its scopes must be scopes the calling key holds. 30 key changes an hour per calling key (429 above). - [Get API key](https://insightchain.mintlify.dev/docs/api-reference/api-keys/get-api-key.md): One key (never its secret). - [Update API key](https://insightchain.mintlify.dev/docs/api-reference/api-keys/update-api-key.md): Change a key's name, scopes, expiry, daily limit or active flag. At least one of them is required. A key that holds a scope the calling key lacks can only be switched off or revoked. 30 key changes an hour per calling key (429 above). - [Revoke API key](https://insightchain.mintlify.dev/docs/api-reference/api-keys/revoke-api-key.md): Revoke a key: it stops working at once. 30 key changes an hour per calling key (429 above). - [Rotate API key](https://insightchain.mintlify.dev/docs/api-reference/api-keys/rotate-api-key.md): A new secret for a key, in this response only. With overlap_seconds the old secret keeps working until the window ends. A key cannot rotate a key that holds a scope it lacks. 30 key changes an hour per calling key (429 above). - [Get usage](https://insightchain.mintlify.dev/docs/api-reference/usage/get-usage.md): Requests against each key's daily quota today, and requests and failures per key and day. - [List request logs](https://insightchain.mintlify.dev/docs/api-reference/request-log/list-request-logs.md): The calls made with your organization's keys in the last 30 days, newest first: route, status, latency, request id. Find one call with request_id. - [MCP](https://insightchain.mintlify.dev/docs/api-reference/agent-mcp-server/mcp.md): Model Context Protocol server (JSON-RPC: initialize, tools/list, tools/call, prompts, resources), listing the default toolset. An API key or an OAuth access token; each tool calls its route as the same caller, so the route's scope and module apply, and one tool call is one request. One JSON-RPC mess… - [MCP toolset](https://insightchain.mintlify.dev/docs/api-reference/agent-mcp-server/mcp-toolset.md): The same server listing one toolset (core, inventory, risk, trade, compliance, actions, stores, finance, merch, data, all). ## OpenAPI Specs - [openapi](/docs/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.