APIs Guide

Goal: Access your warm queries via REST API or MCP.


Your APIs Are Ready

When you create a warm query, an API endpoint is automatically created:

https://www.openindustrial.co/api/workspaces/explorer/warm-queries/[query-id]
API menu showing available endpoints

Authentication

All API calls require a JWT token.

Get Your Token

  1. Open the APIs menu in the AppFrameBar
  2. Select API Keys
  3. Choose an expiration preset (15min to 30 days)
  4. Click Generate JWT
  5. Copy the token immediately (it won't be shown again)
JWT generation interface
Thinking Tip:

Treat tokens like passwords. Never commit them to source control.


Calling Your API

cURL

curl -X GET 'https://www.openindustrial.co/api/workspaces/explorer/warm-queries/temperature-avg' \
  -H 'Authorization: Bearer YOUR_TOKEN'

JavaScript

const response = await fetch(
  'https://www.openindustrial.co/api/workspaces/explorer/warm-queries/temperature-avg',
  { headers: { 'Authorization': `Bearer ${TOKEN}` } }
);
const data = await response.json();

Python

import requests

response = requests.get(
    'https://www.openindustrial.co/api/workspaces/explorer/warm-queries/temperature-avg',
    headers={'Authorization': f'Bearer {TOKEN}'}
)
data = response.json()
API code examples

Response Format

{
  "query": "temperature-avg",
  "executedAt": "2026-01-18T10:45:00Z",
  "results": [
    { "timestamp": "2026-01-18T10:00:00Z", "avg_temp": 68.2 },
    { "timestamp": "2026-01-18T10:05:00Z", "avg_temp": 68.5 }
  ],
  "governance": {
    "queryApprovedBy": "user@example.com",
    "queryApprovedAt": "2026-01-18T09:30:00Z"
  }
}

Notice the governance metadata. Every response includes attribution—who approved the query and when.


Integration Destinations

ToolGuide
Power BIPower BI Integration →
GrafanaGrafana Integration →
MCP-native AIMCP Guide →
Custom appsREST calls as shown above

Rate Limits

TierRequests/minConcurrent
Free605
Pro60020
EnterpriseCustomCustom

Next Steps

If you want to...Go to...
Connect Power BIPower BI →
Connect GrafanaGrafana →
Connect any AIMCP Guide →
Manage API keysSecurity →
On this page