Prayag Analytics
Settings
Back to dashboard

API Keys

Manage keys that let other apps read production data from this dashboard. All active keys are valid simultaneously.

Active Keys (1)

prayag-8f732••••••••••••••••••••••••••••••••••••••
Generated 14-07-2026 02:02

How to Use

Send any active key as a header with every request:

# HTTP header (recommended)
X-API-Key: your-api-key
# Or as a query parameter
https://prayag-plant.com/data-api/v1/summary?period=current_fy&api_key=your-api-key

Available endpoints:

GET /data-api/v1/health Liveness check — no auth needed
GET /data-api/v1/plants All plant names, locations, wired months
GET /data-api/v1/periods Valid period tokens + months with data
GET /data-api/v1/summary Headline metrics for a period (?period=, ?plant=, ...)
GET /data-api/v1/records Raw daily/monthly rows with provenance
Note: All figures are recomputed from real production sheets — never fabricated. A ratio without a baseline returns null, never 0.