Skip to content

API reference and SDKs

Explore the authenticated OpenAPI reference, choose credentials for automation, and connect through REST, SDKs, or the control-plane MCP server.

Automate Industric with its HTTP API, the exo CLI, SDKs, or the control-plane MCP endpoint. Each request remains subject to organization permissions and resource access.

Open the API reference

Sign in to your Industric deployment and open /api/docs for the interactive Swagger UI. It loads the OpenAPI 3.1 contract from GET /api/openapi.json and offers a JSON download. The alias /openapi.json serves the same customer contract. Both schema endpoints require validated user credentials and reject agent credentials.

The contract describes schemas, without including stored tenant data or credentials. Internal and connector operations are omitted. Documentation assets are served locally, and authorization stays in browser memory. Trying a request uses the deployment's normal API permission checks. Some documented routes depend on optional features; inclusion in the schema does not enable them.

terminal· bash
curl --fail --silent --show-error \
-H "Authorization: Bearer $EXO_TOKEN" \
"$EXO_ENDPOINT/api/openapi.json" -o industric-openapi.json

Choose a credential

CredentialUse
User JWT or CLI/service tokenUser API operations within the token holder's permissions
OAuth app access tokenMachine automation with client credentials and explicit scopes
Deployment tokenOperator control-plane connection under /api/autonomic
SCIM tokenDirectory provisioning under /api/v1/scim/v2
Agent webhook tokenInvoke the webhook's configured agent

These credentials are not interchangeable. Consult each operation's security requirements and the authentication model. HTTP APIs generally use JSON bodies and ISO 8601 timestamps; the API reference specifies exceptions, required fields, and error responses.

Authenticate automation

Create an OAuth app, select its scopes, and save the client secret when it is shown. Exchange the credentials at POST /api/v1/oauth/token using the client credentials grant. Use the returned access token as a Bearer token until its expiry. App scopes narrow the acting user's permissions; they cannot grant permissions that user lacks.

terminal· bash
curl --fail --silent --show-error \
-X POST "$EXO_ENDPOINT/api/v1/oauth/token" \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "client_id=$EXO_CLIENT_ID" \
--data-urlencode "client_secret=$EXO_CLIENT_SECRET"

The CLI can exchange EXO_CLIENT_ID and EXO_CLIENT_SECRET when no user token or saved login takes precedence. See CLI configuration.

Control-plane MCP

Connect an MCP client to POST /mcp with an OAuth access token to manage the platform. Discovery exposes only tools allowed by both the token's scopes and the acting user's permissions. Calls reuse the dashboard's authorization, resource access, policy, and audit paths. Add ?toolsets=agents,sessions,memory to narrow discovery further.

MCP client configuration· json
1{
2 "mcpServers": {
3 "industric": {
4 "type": "http",
5 "url": "https://exo.example.com/mcp?toolsets=agents,sessions,memory",
6 "headers": { "Authorization": "Bearer <oauth-access-token>" }
7 }
8 }
9}

This endpoint uses Streamable HTTP with stateless JSON-RPC requests. Authentication uses client credentials rather than a browser authorization grant. It differs from published tools at /api/v1/mcp/:id and composite MCP servers at /mcp/:id.

SDKs and streaming protocols

The source distribution includes SDKs for Go, Python, Node.js, and Rust under sdk/, with language-specific setup and examples. The generated OpenAPI contract can support HTTP client generation. Terminal sessions, recorded-run streams, MCP exchanges, and delegated provider protocols require their own message handling beyond an HTTP client.

Repository references under docs/openapi/ document agent streams and protocol boundaries. Their complete offline schemas also include internal operations and differ from the authenticated customer contract served by your deployment.