Vectrail Documentation

Everything you need to integrate Vectrail and start generating insights.

1. Quick Start

Vectrail works by connecting to your existing APIs. No SDK lock-in. No schema rewriting. No data migration.

2. Install SDK (Optional but Recommended)

If you want easy project setup, auth, and embedded dashboard, install the SDK.

Terminal
npm install @tbpcodot/user-sdk

3. Initialize the SDK

Import and initialize the SDK inside your app.

import { Vectrail } from "@tbpcodot/user-sdk";
Vectrail.init({
projectId: "YOUR_PROJECT_ID",
apiKey: "YOUR_API_KEY"
});
Authenticates your project
Enables dashboard access
Syncs configuration securely

4. Embed the Dashboard (Optional)

You can embed the Vectrail dashboard inside your app.

<Vectrail.Dashboard />

Common Use Cases

  • Internal admin dashboards
  • Ops / finance views
  • Customer-facing analytics (controlled)

5. Add APIs

From the Vectrail Dashboard → Build Your Smart Analytics

For each API, provide:

  • HTTP method
  • Endpoint URL
  • Headers / Auth (if any)
  • Polling mode (manual / scheduled)
GET https://api.yourapp.com/users
GET https://api.yourapp.com/orders
GET https://api.yourapp.com/transactions
Vectrail will: Fetch sample data, infer schema automatically, and detect entities & relationships.

6. Confirm Schema

Before analytics start, confirm the schema.

  • Mark fields as dimensions, metrics, time
  • Ignore PII or noisy fields
  • Lock schema versions

Once locked, metrics remain consistent and insights become comparable over time.

7. Metrics Generation

Counts, sums, averages
Distributions (grouped)
Time-based trends
Derived metrics
No SQL. No manual dashboards.

8. Insights Engine

Vectrail continuously generates insights such as:

Detects

  • Dominance & concentration risks
  • Sudden spikes or drops
  • Performance leaders & laggards
  • Trends & forecasts

Each insight includes

  • Summary
  • Business implication
  • Actionable recommendation
  • Severity & type

9. AI Budget Control

You control AI usage per run. Token usage is hard-capped, minified, and predictable.

ModeDescription
EconomyCritical insights only
StandardBalanced analysis
PremiumDeep reasoning & forecasts

10. Department Dashboards

Create multiple dashboards from the same data (Finance, Ops, Leadership, Product, etc.).

Each dashboard uses the same locked metrics but shows different insights.

12. API Reference

Authentication

x-api-key: YOUR_API_KEY

Core Endpoints

POST /api/apis – Register API
GET /api/metrics – Fetch metrics
GET /api/insights – Fetch insights
GET /api/predictions – Forecasts

13. Security & Data Handling

  • Raw API responses are not stored permanently
  • Only schemas, metrics, and insights are persisted
  • PII fields can be masked or excluded
  • Enterprise: VPC / self-hosted options available

14. Support

Starter

Email support

Growth+

Priority support

Enterprise

Slack / Dedicated channel

Next Steps

  • Add your first API
  • Confirm schema
  • Watch insights appear
Go to Dashboard