> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# InsightChain API

> What the InsightChain API covers, its base URL, and where to go next.

InsightChain is an API- and agent-first supply-chain intelligence platform. The main families of APIs:

* **Trade compliance**: Tariff Check (HS classification and FTA eligibility), Denied Party Screening, Location Risk and Landed Cost.
* **Supply chain**: data ingestion, inventory reads, execution with maker-checker approval (one person proposes an order, another approves it) and ERP write-back, and explanations.
* **Traceability**: the Passport API, which creates and publishes Digital Product Passports and resolves them from a GS1 Digital Link.
* **Sustainability and agents**: an ESG footprint, and an MCP server so your agents can call the platform directly.

## Start here

The [quickstart](/docs/quickstart.md) goes from a sandbox and a test key to a working call in about five minutes. The [recipes](/docs/recipes.md) cover one job each, with the scopes, the steps and what comes back.

SDKs for TypeScript, JavaScript and Python are being released: one method per operation, with retries, paging, idempotency keys and typed errors. The [quickstart](/docs/quickstart.md) shows the install commands once the packages are published.

For Postman, download the [collection](https://insightchain.ai/postman_collection.json) and set its `apiKey` variable.

## Base URL

```text theme={null}
https://api.insightchain.ai
```

Every request needs an API key, sent as a bearer token. See [Authentication](/docs/authentication.md).

## OpenAPI

Every authenticated route of the API, with its scope, module, input schema, typed response and an example, is in the OpenAPI 3.1 document at [insightchain.ai/openapi.json](https://insightchain.ai/openapi.json). The API reference tab is built from the same document.

## Paths and ids

Every path is a resource path under `/v1`, for example `/v1/recommendations/:id`. Passport paths also take `ext:<external_id>` (your own external id, URL-encoded) in place of our id: `/v1/passports/ext:NW-OXF-000123`. An id we do not know is a 404.

How the API changes is under [Versioning](/docs/versioning.md). Every change is in the [changelog](/docs/changelog.md), and every error code in the [error reference](/docs/errors.md).

## Main endpoints

The routes most integrations start with. Every route is in the API reference tab.

| Method | Path | What it does |
| - | - | - |
| `POST` | `/v1/tariff_checks` | Tariffs, HS classification, FTA eligibility and rules of origin |
| `POST` | `/v1/denied_party_screenings` | Screen against denied party lists |
| `POST` | `/v1/location_risks` | Country sanctions and trade compliance risk |
| `POST` | `/v1/landed_costs` | Calculate total landed cost |
| `POST` | `/v1/ingest/records` | Push canonical supply-chain data |
| `GET` | `/v1/inventory/*` | Inventory and analytics reads |
| `GET` | `/v1/recommendations` | Recommendations, with status |
| `GET` | `/v1/orders` | Orders in the approval loop |
| `POST` | `/v1/orders/actions` | Maker-checker approval and ERP write-back |
| `POST` | `/v1/explanations` | Evidence and narrative for a recommendation |
| `POST` | `/v1/forecast_checks` | Your forecast against our baseline and signals |
| `GET` | `/v1/alerts` | Alerts |
| `GET` | `/v1/webhooks` | Your webhook endpoints |
| `GET` | `/v1/connections` | Your connections and their status |
| `GET` | `/v1/api_keys` | Your API keys |
| `GET` | `/v1/request_logs` | The calls made with your keys |
| `POST` | `/v1/mcp` | Model Context Protocol server for agents |

## Where to go next

* [Authentication](/docs/authentication.md): keys, scopes, rate limits, managing keys by API, the request log.
* [Sandbox and test keys](/docs/sandbox.md): build against demo data before you touch live data.
* [Conventions](/docs/conventions.md): errors, lists and cursors, rate-limit headers, safe retries, request ids.
* [Versioning](/docs/versioning.md): what can change, and how deprecation is announced.
* [Data ingestion](/docs/ingestion.md): push your supply-chain data.
* [Execution and approval](/docs/execution.md): turn a recommendation into an order, approve it, write it back.
* [Inventory and risk](/docs/inventory-and-risk.md): inventory reads, forecast checks, disruptions, recalls, product compliance, alerts, connections.
* [Trade](/docs/trade.md): tariffs, screening, landed cost, location risk, import tax, customs documents, tariff impact.
* [Product passports](/docs/passports.md): create, fill, publish and resolve Digital Product Passports.
* [Webhooks](/docs/webhooks.md): receive alerts as they are raised, and verify them.
* [Agents (MCP)](/docs/agents.md): connect your agents to the platform.
* [Errors](/docs/errors.md), [recipes](/docs/recipes.md) and the [changelog](/docs/changelog.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.