API Access

Section
Purpose
Authentication

API reference
Creating an API key
- Scope areaGrantsActions

Managing keys

Last updated
The RootCause REST API lets you programmatically manage workspaces, datasets, ontology, Digital Twins, simulations, and reports. The API page is the hub for all programmatic access. It is where you create and manage API keys, explore the API reference, connect MCP clients, and register OAuth apps.
To open it, go to the Organization home and click the API card under Manage.

The page is organized into six sections:
Getting Started
Authentication, code examples, and links to the full API reference
MCP Integration
Connect Claude Code, Claude Desktop, Cursor, or any MCP client. See MCP Integration
Connected Apps
Assistants and apps you have authorized to reach the organisation — revoke any of them here
OAuth Apps
Register confidential OAuth clients for third-party apps. See OAuth Apps
Create API Key
Generate a new key with fine-grained permission scopes and optional expiry
Manage Keys
View, copy, and revoke your existing API keys
All API endpoints live under /api/v1/ on your platform domain. Every request requires a Bearer token in the Authorization header:
The Getting Started section shows the same example in Python and JavaScript, with your platform's real URL filled in.

Two resources are linked from the Getting Started section:
Interactive API Reference (/api/v1/docs) explores every endpoint, lets you try requests against your data, and shows request and response schemas.
OpenAPI Specification (/api/v1/openapi.json) is the OpenAPI 3.1 spec, which you can feed to a code generator to produce a typed client in your language of choice.
Open the Create API Key section and fill in:
Key name — a label you will recognize later, such as "Production MCP" or "CI Pipeline".
Workspace scope — either Org-wide (the key can list and access all workspaces) or a single workspace. Prefer workspace-scoped keys for integrations that only need one project.
Permission scopes — the individual permissions the key carries, grouped by area. Select only what the integration needs; Select all exists but should be the exception.
Sources
Access and manage uploaded data sources
read, write, delete
Datasets
Read and modify datasets derived from your sources
read, write, delete
Ontology
Browse and edit concepts, relationships, and metadata
read, write, delete
Digital Twins
Manage causal models and run structural learning
read, write, delete, execute
Simulations
View and run what-if simulations on digital twins
read, execute
Connectors
Configure and manage external data connectors
read, write
Catalog
Browse the workspace data catalog
read
Jobs
Monitor background jobs and pipeline runs
read
Exports
Download generated reports and data exports
read
Agent
Interact with the AI assistant and MCP tools
read, write
Reports
Create and view analysis reports
read, write
There is no separate Workspaces scope: listing workspaces is covered by the Sources read scope.
Expiry (optional) — an end date after which the key stops working. Set one for keys used in CI/CD or temporary scripts.
IP allowlist (optional) — a comma-separated list of IPs allowed to use the key. Leave empty to allow all.

Click Create API key. The new key is displayed after creation; copy it and store it somewhere safe.
The Manage Keys section lists every key you have created, filterable by Org-wide or Workspace scope. From here you can view, copy, and revoke keys.

Keep your API keys safe. Never share keys in public channels, repos, or client-side code. Use the narrowest scopes needed for each integration, set an expiry for temporary keys, and rotate keys regularly, deleting any that are no longer needed.
Last updated
curl -X GET "https://<your-platform-domain>/api/v1/workspaces" \
-H "Authorization: Bearer pk_your_api_key_here" \
-H "Content-Type: application/json"
