Developer Documentation

Cascade API & CLI

Integrate real-time geopolitical and economic intelligence into your applications, workflows, and AI agents.

1
Get your API key
Portal → Settings → Developer & API → Create Key
2
Make a request
curl -H "Authorization: Bearer csk_live_..." \ https://cascade.metisos.co/api/v1/state
3
Or install the CLI
npm i -g @metisos/cascade-cli cascade
Opens an interactive menu to configure your key and explore.

API Keys

Authorization: Bearer csk_live_yourorg_abc123...
Formatcsk_live_{org}_{32hex}
StorageSHA-256 hashed — plaintext never stored
Rate limit60 req/min per key (default)

Permissions

readGET endpoints — state, entities, prices, correlations
writePOST/PUT/DELETE — create entities, poll sources
chatAI copilot and intelligence reports

Response Envelope

{ "data": { ... }, "meta": { "step": 4024, "timestamp": "...", "org_id": "..." } }

Base URL: https://cascade.metisos.co

MethodPathPermDescription
GET/api/v1/statereadSimulation state — nodes, deviations, health
GET/api/v1/eventsreadEvent feed (?limit=50)
GET/api/v1/graphreadFull graph — nodes + edges
GET/api/v1/entitiesreadList entities (?q= for search)
GET/api/v1/entities/:namereadEntity detail + connections + events
GET/api/v1/entities/:name/historyreadDeviation trajectory (?steps=30)
GET/api/v1/portfolioreadPortfolio with risk scores
GET/api/v1/pricesreadAll tracked tickers
GET/api/v1/prices/:entityreadLive price history (?period=5d)
GET/api/v1/calibration/correlationsreadCorrelation matrix (?dim=1)
GET/api/v1/calibration/lagsreadLead/lag matrix (?dim=1)
POST/api/v1/entitieswriteCreate custom entity
POST/api/v1/portfoliowriteAdd to portfolio
POST/api/v1/sources/pollwriteForce poll all sources
POST/api/v1/chatchatAI copilot query
POST/api/v1/dossierchatGenerate intelligence report
Get entity detail
curl -H "Authorization: Bearer $KEY" \ https://cascade.metisos.co/api/v1/entities/Crude_Oil
Get live price
curl -H "Authorization: Bearer $KEY" \ "https://cascade.metisos.co/api/v1/prices/SP500?period=1mo"
Ask Cascade AI
curl -X POST -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -d '{"message":"What is driving crude oil?"}' \ https://cascade.metisos.co/api/v1/chat
Python
import requests KEY = "csk_live_..." BASE = "https://cascade.metisos.co/api/v1" h = {"Authorization": f"Bearer {KEY}"} state = requests.get(f"{BASE}/state", headers=h).json() nodes = state["data"]["graph"]["nodes"] for n in sorted(nodes, key=lambda n: sum( abs(v) for v in n["deviation_pct"]), reverse=True)[:5]: print(f"{n['name']:20} {n['deviation_pct']}")
npm install -g @metisos/cascade-cli cascade config set api-key csk_live_...
cascadeInteractive welcome menu — setup, dashboard, help
cascade statusSystem health, step, entity count
cascade entitiesAll entities with deviations
cascade entity <name>Entity detail + connections
cascade eventsEvent feed (--watch for live)
cascade prices / price <entity>Live market data
cascade chat "question"Ask Cascade AI
cascade dossier --entities "X,Y"Intelligence report
cascade portfolioPortfolio with risk
cascade correlations / lagsCo-movement data
cascade skillsGenerate AI agent skills file
All commands support --format json|csv|table

Generate a skills file so AI coding agents (Claude Code, Cursor, Copilot) can query Cascade intelligence on your behalf.

cascade skills > CASCADE_SKILLS.md

The skills file describes every command as a callable shell tool. Add it to your project:

# Claude Code — add to CLAUDE.md: ## External Tools See CASCADE_SKILLS.md for geopolitical intelligence commands. # Cursor — reference in .cursorrules

Any agent that can execute shell commands can use Cascade as an intelligence layer.

Ready to integrate?

Create your API key and start querying in minutes.