AI Analyst Workspace

Ask your data anything.

From one question to production-ready insight. Run natural language analytics across your databases and uploaded sources in seconds.

API Key

Saved in browser local storage per organization. Same organization uses the same active org API key.

Databases
0
API Keys
0
Queries
0
Usage Cost
$0.00

Recent Queries

Query Database Date Rows Cost
No queries yet

Saved Query Widgets

Generative Data Intelligence

Spreadsheets
Excel and tabular data ingestion
PDF Reports
Coming next in Phase 2
CSV Files
Fast structured upload path

DataTwin Chat

AI Query Studio

Saved Queries

Name Query Created Actions
No saved queries

Query History

Query Executed Rows
No history

Available SAP Features

Loading SAP capabilities...

SAP HANA (Read-only)

SAP OData

SAP Curated Reporting

Spreadsheets

CSV Files

PDF Reports

Extracts tables automatically. Multi-table PDFs create separate queryable tables.

Uploaded Sources Registry

ID Name Type Tables Status Created
No uploaded sources yet

Metric Definitions

Use in SQL as {{metric:metric_name}} or metric(metric_name).

Name Description Expression Actions
No metrics yet

Agentic Workflows

Create and manage automated data workflows

Managed Agents

Name Schedule Action Last Run Status Actions
No agents yet

Organization API Keys

Name Created Last Used Status Actions
No keys yet

Registered Applications

Only registered apps can use organization API keys
Name Allowed Origins Rate Limits Usage Status Actions
No applications registered yet

App Management Audit Trail

Shows create, disable, and token rotation events for applications in this organization.

Action Application Actor Created Details
No app-management audit entries yet

Join Organization

If your admin shared an invite token, paste it here to join the organization.

Enterprise Billing Dashboard

Current Plan FREE
Queries Used 0 / -
AI Tokens Used 0 / -
Active Users 0 / -
Connected Databases 0 / -
Total Monthly Cost Rs 0.00

Cost Breakdown

Base CostRs 0.00
User CostRs 0.00
Usage CostRs 0.00
Token Overage CostRs 0.00
View Pricing Page
Actions

Usage Over Time

No members yet

API Key Usage

Calls & tokens per key this billing cycle
API Key IDCallsTokens Used
No per-key data

Payment History

Order IDPlanAmountStatusDate
No payments

Invoices

ID Status Total Created
No invoices

Organization Settings

Manage organization details, members, and preferences.

Audit Logs

Action User ID Created Details
No audit logs

API Documentation for External Apps

OpenAPI docs are available at /api/docs.

Flow: login with JWT -> create org key -> register app -> call connect/query endpoints with org key + app token or allowed browser origin.

cURL Example (Backend App)

curl -X POST https://www.datatwinai.com/api/v1/query/natural \
  -H "Authorization: Bearer dt_your_org_key" \
  -H "X-App-Token: app_your_registered_app_token" \
  -H "Content-Type: application/json" \
  -d '{"question":"Top 5 customers by revenue","preview_mode":true}'

JavaScript Example (Browser App)

const res = await fetch('https://www.datatwinai.com/api/v1/query/natural', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer dt_your_org_key',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ question: 'Daily orders in last 7 days', preview_mode: true })
});
const data = await res.json();
console.log(data.generated_sql, data.result);

Python Example (Server)

import requests

resp = requests.post(
    "https://www.datatwinai.com/api/v1/database/connect",
    headers={
        "Authorization": "Bearer dt_your_org_key",
        "X-App-Token": "app_your_registered_app_token",
        "Content-Type": "application/json",
    },
    json={"connection_string": "postgresql://user:pass@host:5432/db"},
    timeout=30,
)
resp.raise_for_status()
print(resp.json())