REST API
Connect RootCause.ai to any REST API endpoint to import JSON data from external services.
Prerequisites
Before connecting, ensure you have:
API endpoint URL
Authentication credentials (if required)
Understanding of the API response format
Network access from RootCause.ai to the API
Setting Up the Connection
Navigate to Data → Datasets in your workspace
Click New Connection and select REST API
Configure your connection:
Method
HTTP method
GET, POST, PUT, etc.
Default URL
Base API endpoint
https://api.example.com/v1
Configure authentication (see below)
Add any default headers or query parameters
Click Test Connection to verify
Click Save to create the connector
Authentication Methods
None
For public APIs that don't require authentication.
API Key
For APIs that authenticate via API key:
API Key Name
Header or parameter name
API Key Location
Where to send the key
API Key
Your API key value
Basic Auth
For APIs using HTTP Basic Authentication:
Username
API username
Password
API password
Bearer Token
For APIs using Bearer token authentication:
Bearer Token
Your JWT or access token
OAuth 2.0
For APIs using OAuth 2.0:
Client ID
OAuth client ID
Client Secret
OAuth client secret
Headers and Query Parameters
You can add default headers and query parameters that will be sent with every request:
Headers
Add custom HTTP headers:
Query Parameters
Add default query string parameters:
Request Body (POST/PUT/PATCH)
For methods that send a request body, you can configure a default JSON body:
Importing Data
Once your connector is saved:
Click Import Data on the connector
Optionally override the Path to append to the base URL
Add import-specific Query Parameters (merged with defaults)
Configure Response Mapping if needed to transform the data
Response Mapping
If your API response has nested data, use response mapping to flatten it:
What Happens When You Import
RootCause.ai makes the configured HTTP request
JSON response is parsed and flattened into tabular format
Arrays are expanded into rows
Nested objects are flattened with dot notation
Schema is automatically detected
Data is stored in your workspace's data lake
The imported dataset becomes available for use in Data Views and Ontology mapping.
Live Data Sync
You can configure automatic syncing to keep your dataset current:
Manual – Only sync when you click "Sync Now"
Hourly – Refresh every hour
Daily – Refresh once per day
Weekly – Refresh once per week
When a sync runs, the API is called again and data is refreshed.
Common Use Cases
Importing from a CRM
Fetching financial data
Pulling IoT sensor data
Troubleshooting
Connection failed / timeout
Verify the URL is correct and accessible
Check firewall rules and network connectivity
Ensure the API server is responding
401 Unauthorized
Verify your authentication credentials
Check that the API key or token hasn't expired
Ensure you're using the correct authentication method
Response not recognized
Verify the API returns JSON
Check the response structure matches your expectations
Use response mapping to extract nested data
Empty data
Verify your query parameters return results
Check that you have access to the requested resources
Try the API request manually to verify the response
Last updated

