// Developer & APIs — API explorer, keys, SDKs, webhooks, usage. const ENDPOINTS = [ { m: "POST", path: "/v1/nlq", desc: "Natural-language query → dashboard", req: '{\n "q": "revenue by state Q2 FY26",\n "lang": "en",\n "format": "dashboard"\n}', resp: '{\n "sql": "SELECT state, SUM(order_value) ...",\n "rows": 29,\n "widgets": ["bar", "map", "table"],\n "sources": ["state_revenue_daily"],\n "latency_ms": 218\n}' }, { m: "GET", path: "/v1/datasets", desc: "List governed datasets", req: '# query params\n?cert=Gold&pii=false&limit=20', resp: '{\n "total": 142,\n "data": [\n { "name": "gem_transactions", "rows": 428600000,\n "quality": 98, "cert": "Gold" }\n ]\n}' }, { m: "POST", path: "/v1/query", desc: "Run a semantic-layer query", req: '{\n "metric": "GeM Procurement",\n "dimensions": ["state"],\n "filters": { "fiscal_qtr": "Q2-FY26" }\n}', resp: '{\n "columns": ["state", "value"],\n "rows": [["MH", 342.6], ["UP", 298.4]],\n "cached": false\n}' }, { m: "GET", path: "/v1/forecast", desc: "Predictive forecast for a metric", req: '?metric=demand&sku=GEM123&horizon=6m', resp: '{\n "model": "prophet+lgbm",\n "forecast": [1330, 1370, 1420, 1460],\n "confidence": 0.92\n}' }, { m: "POST", path: "/v1/dashboards", desc: "Create & publish a dashboard", req: '{\n "name": "PSU Ops",\n "widgets": [ ... ],\n "publish": true\n}', resp: '{\n "id": "dash_9f2a",\n "url": "https://app/d/9f2a",\n "status": "published"\n}' }, ]; const SDKS = [ { n: "Python", c: "#3776AB", ch: "py" }, { n: "Java", c: "#E76F00", ch: "Jv" }, { n: ".NET", c: "#512BD4", ch: ".N" }, { n: "Go", c: "#00ADD8", ch: "Go" }, { n: "JavaScript", c: "#F7DF1E", ch: "JS" }, ]; const API_KEYS = [ { name: "Production — Server", key: "vbi_live_9f2a…c41d", scope: "read · query · forecast", used: "2 min ago", st: "active" }, { name: "Mobile App", key: "vbi_live_7b1e…88af", scope: "read · nlq", used: "just now", st: "active" }, { name: "Partner — NIC", key: "vbi_live_4c9d…12ab", scope: "read", used: "1 hr ago", st: "active" }, { name: "Staging — CI", key: "vbi_test_2a8f…90de", scope: "full", used: "yesterday", st: "active" }, { name: "Legacy ETL", key: "vbi_live_0d3c…77bb", scope: "read · write", used: "42 days ago", st: "revoked" }, ]; const WEBHOOKS = [ { evt: "alert.triggered", url: "https://ops.gov.in/hooks/alert", st: "healthy", d: "8.2K/mo" }, { evt: "report.delivered", url: "https://teams.webhook/…", st: "healthy", d: "2.1K/mo" }, { evt: "model.drift", url: "https://mlops/hooks/drift", st: "healthy", d: "42/mo" }, { evt: "tender.new", url: "https://procure/hooks/tender", st: "degraded", d: "1.2K/mo" }, ]; function APIExplorer() { const [i, setI] = useState(0); const e = ENDPOINTS[i]; const mColor = (m) => ({ GET: "var(--ok)", POST: "var(--primary)", PUT: "var(--accent-2)", DELETE: "var(--danger)" }[m]); return (

API Explorer

REST · GraphQL · base https://api.vyaparbi.gov.in
{ENDPOINTS.map((ep, idx) => (
setI(idx)} style={{ padding: '8px 10px', borderRadius: 7, marginBottom: 3, cursor: 'pointer', background: i === idx ? 'var(--panel-2)' : 'transparent', border: '1px solid ' + (i === idx ? 'var(--border)' : 'transparent') }}>
{ep.m} {ep.path}
{ep.desc}
))}
{e.m} {e.path}
Request
{e.req}
Response 200 OK
{e.resp}
); } function DeveloperScreen() { return (
Developer & APIs
REST · GraphQL · SDKs · webhooks · embed BI anywhere · 99.98% uptime SLA
API calls (24h)
24.8M
+12% vs avg
p95 latency
68ms
edge cached
Active keys
42
4 partners · 12 apps
Uptime (30d)
99.98%
SLA 99.9%

Official SDKs

{SDKS.map(s => (
{s.ch}
{s.n}
vyaparbi-sdk
))}

API Usage

calls/hr · last 12h
Live
12h agonow

API Keys

Scoped · rotatable · rate-limited per key
{API_KEYS.map((k, i) => ( ))}
NameKeyScopesLast used
{k.name} {k.key} {k.scope} {k.used} {k.st === 'active' ? : revoked}

Webhooks

Event → your endpoint · signed · retried
{WEBHOOKS.map((w, i) => (
{w.evt}
{w.url}
{w.st}
{w.d}
))}
); } window.DeveloperScreen = DeveloperScreen;