๐Ÿ”Œ QL Agent API

Programmatically create, run, and manage AI market agents via REST API. Grounded reasoning with live data, citations, and verified track records. โ† Back to Agents ยท โšก Studio ยท ๐ŸŒ Network
Pro+ Required REST API JavaScript SDK OpenAPI 3.1 Webhooks

Quick Start

Get an API key from your profile (Pro+ subscription required), then:

1. Install the SDK

# Node.js โ€” download it, then import the local file
curl -o quantlogix-agents.mjs https://quantlogix.ai/sdk/quantlogix-agents.mjs

import { QuantLogix } from './quantlogix-agents.mjs';

# Browser ESM โ€” import straight from the URL
import { QuantLogix } from 'https://quantlogix.ai/sdk/quantlogix-agents.mjs';

Node can't import over https: โ€” its ESM loader only accepts file: and data: URLs, so download the file first. Browsers import the URL directly.

2. Create your first agent

const ql = new QuantLogix('ql_your_key_here');

// Create a daily pre-market digest agent
const { agent } = await ql.agents.create({
  name: 'NVDA Pre-Market Digest',
  mode: 'digest',
  task_prompt: 'Summarize the overnight setup for NVDA. Include key support/resistance, any catalyst headlines, and the 5-factor signal read.',
  tickers: ['NVDA'],
  cadence: 'premarket',
});

// Run it now (synchronous โ€” returns the AI result inline)
const result = await ql.agents.run(agent.id);
console.log(result.result.headline);
console.log(result.result.detail);
console.log('Confidence:', result.result.confidence);
console.log('Tokens used:', result.usage.total_tokens);

3. One-shot Q&A (no saved agent needed)

const { answer } = await ql.ask({
  question: 'Is NVDA oversold right now?',
  tickers: ['NVDA'],
});

console.log(answer.headline);    // "NVDA RSI at 28 โ€” technically oversold"
console.log(answer.sources);     // [{ label, asof? }] โ€” see Sources below
console.log(answer.confidence);  // 0.82

Authentication

All requests require a ql_ API key, passed via header (never query params โ€” they leak in logs):

# Preferred: Bearer token
curl -H "Authorization: Bearer ql_your_key" \
     https://quantlogix.ai/api/v1/agents

# Alternative: X-API-Key header
curl -H "X-API-Key: ql_your_key" \
     https://quantlogix.ai/api/v1/agents

Get your key at /profile. Keys are tier-scoped: Pro unlocks the Agent API and every market-data endpoint, including the QuantLogix signal and microstructure. Institutional covers the same endpoints with higher ceilings โ€” unlimited monthly calls (vs 10,000), 300 req/min (vs 60), a 1M/day AI-token cap (vs 250K), and a fuller /signal payload.

Endpoints

Agent Lifecycle

GET/api/v1/agentsPro+
GET/api/v1/agents?id=<uuid>Pro+
POST/api/v1/agentsPro+
PATCH/api/v1/agentsPro+
DELETE/api/v1/agents?id=<uuid>Pro+
POST/api/v1/agents/runPro+

Run History

GET/api/v1/runsPro+
GET/api/v1/runs/<run_id>Pro+

Connectors & Memory

GET/api/v1/agents/connectorsPro+
POST/api/v1/agents/connectorsPro+
PATCH/api/v1/agents/connectorsPro+
DELETE/api/v1/agents/connectors?id=<uuid>Pro+
POST/api/v1/agents/connectors?action=testPro+
GET/api/v1/agents/memory?agent_id=<uuid>Pro+
DELETE/api/v1/agents/memory?agent_id=<uuid>&note_id=<uuid>Pro+
DELETE/api/v1/agents/memory?agent_id=<uuid>&all=1Pro+

AI Q&A

POST/api/v1/askPro+

Market Data

GET/api/v1/signal?ticker=NVDAFree
GET/api/v1/news?ticker=NVDA&limit=10Free
GET/api/v1/verified?dataset=convictionAll tiers

/signal's payload depends on tier: every key gets the composite score, label, confidence and price, Pro adds the 5-factor scores and indicators breakdown, and Institutional adds microstructure. /news takes limit (default 10, max 50). These are the four market-data endpoints most agents need โ€” the OpenAPI spec lists every gated endpoint, including screener, seasonality, promise-ledger, gap-stats, institutional flow, private companies and CRM; the full REST reference lives at /api-docs.

Quota

GET/api/v1/usageAll tiers
GET/api/v1/openapiPublic

Create Agent

POST /api/v1/agents

FieldTypeRequiredDescription
namestringYesAgent name (max 80 chars)
task_promptstringYesWhat the AI runs each cycle (max 1200 chars)
modestringDefault: digestdigest (always send), alert (fire only when condition met), research (deep-dive, Starter+), committee (multi-perspective panel, Starter+)
tickersstring[]OptionalTicker symbols (max 12, uppercase). Extras are dropped and unrecognized symbols silently ignored โ€” not rejected.
cadencestringDefault: premarketpremarket, close, weekly, intraday (~every 30 min in market hours), once (requires run_at), custom (requires schedule_days + schedule_time)
run_atstringRequired for onceISO datetime for the one-shot delivery. Omitting it on create returns 400 run_at_required. The agent auto-disables after it fires.
schedule_daysstring[]Required for customWeekdays the agent runs, e.g. ["mon","wed","fri"]
schedule_timestringRequired for customET time of day, e.g. "09:45"
contextstringOptionalStanding background for the AI (max 800 chars)
channelsobjectDefault: push+email{ push: true, email: true, telegram: false, discord: false }
webhook_urlstringStarter+HTTPS URL fired on agent results (POST with JSON body)
connector_idsstring[]Starter+Up to 3 outbound connectors (your REST APIs / MCP servers) the agent may call during its run
tools_enabledbooleanStarter+Gives the agent a 40+-tool LIVE tool loop during its run instead of working only from its scheduled context: market research (options flow, filings, technicals, institutional/insider/congress activity, analyst ratings, backtesting), private markets (company + investor lookups, IPO readiness), QL Collab, full CRM (including writes โ€” create tasks, log interactions, draft emails), deal sourcing, and calling other agents on the QL Agent Mesh
chain_agent_idstringStarter+"When this agent fires, run that agent" โ€” id of another agent on the SAME account to run on completion. Chaining to itself or a foreign id is rejected
trigger_typestringStarter+Event-driven wakeup outside the cron cadence: signal_flip, signal_flip_buy, signal_flip_sell, earnings_print. Omit for cron-only
auto_tradebooleanStarter+Parses trade actions from the AI's result and executes them against your paper wallet (simulated cash โ€” no real money). Pair with trade_config
trade_configobjectStarter+Risk envelope for auto_trade: { instance_id?, max_position_pct (1-25, default 10), max_positions (1-25, default 10), daily_loss_limit_pct (1-20, default 5), allow_short (default false), stop_loss_pct (1-50, null=off), take_profit_pct (1-200, null=off) }. Numeric fields clamp into range rather than rejecting
actions_enabledbooleanStarter+Lets the executor carry out non-trade closed-loop actions (add_watchlist, set_alert) the agent emits in its result
scope_portfoliobooleanStarter+Folds your live holdings into the agent's ticker scope each run and attaches a holdings (shares + avg cost) context block
post_channel_idstringStarter+Also post the run result into this QL Collab channel id. You must be a member of the channel's org
save_tostringOptionalPersist the run's output as a QL Collab artifact: off (default) | note | sheet | slides | drawing | auto. Friendly aliases (doc, excel, deck, โ€ฆ) are also accepted
suppress_quietbooleanOptionaldigest mode only. Runs a cheap pre-screen each scheduled tick and stays silent when nothing notable changed since the last run
budget_credits_monthnumberOptionalMonthly AI-credit ceiling for this agent's autonomous (scheduled/triggered) runs. Manual runs via the API are explicit user intent and are NOT capped. Omit for unlimited
max_run_tokensnumberOptionalPer-call output-token ceiling (300-200000). Clamps DOWN only โ€” makes a run cheaper than its mode's default, never more expensive
pipelineobjectOptionalVisual block-graph from Agent Studio. Stored opaquely for re-editing there โ€” the compiled prompt/config that actually runs lands in the fields above. Rarely set directly via the API; capped at 64 KB serialized
enabledbooleanDefault: trueEnable/disable the agent

Over-limit values truncate, they don't error. A 200-char name, a 20-symbol tickers list, or a 5th connector is silently trimmed to the documented maximum and the request still returns 201. Read the returned agent back if you need to confirm what was stored.

Tier-gated fields are dropped silently too. Without the agents_advanced entitlement (Starter+), these ten fields are stripped โ€” webhook_url, connector_ids, tools_enabled, chain_agent_id, trigger_type, auto_trade, trade_config, actions_enabled, scope_portfolio, post_channel_id โ€” and mode: research/committee falls back to digest. You still get 201 with a working but reduced agent, never a 403.

Example: Create an alert agent

const { agent } = await ql.agents.create({
  name: 'NVDA Oversold Alert',
  mode: 'alert',  // only fires when the condition is met
  task_prompt: 'Alert me if NVDA RSI drops below 30 AND volume spikes above 1.5x the 20-day average.',
  tickers: ['NVDA'],
  cadence: 'intraday',  // checks every ~30 min during market hours
  webhook_url: 'https://your-app.com/webhook/ql-agent',
});

Run an Agent

POST /api/v1/agents/run โ€” runs synchronously (โ‰ค50s) and returns the AI result inline, or in the background with async: true. Never sends push/email. Spends the account's AI token budget.

FieldTypeDescription
idstringRun a saved agent by UUID
agentobjectRun an inline draft (same shape as create, no save)
asyncbooleanReturn 202 { run_id, poll_url } immediately and execute in the background with a ~5-minute budget โ€” deep research runs that would time out synchronously. Requires a saved agent id. Poll GET /api/v1/runs/<run_id> until status leaves pending.
overridesobjectSaved agents only. { tickers?, context? } for this run: run the same agent against other tickers (max 12) or with extra standing context (max 800 chars). Nothing is saved, the stored agent is unchanged, and the run does not write to the agent's memory. The response echoes the overrides it used. Any other key returns 400 invalid_overrides.

One of id or agent is required.

// One saved agent, a whole watchlist
for (const ticker of ['NVDA', 'AMD', 'AVGO']) {
  const run = await ql.agents.run(agent.id, { overrides: { tickers: [ticker] } });
  console.log(ticker, run.result?.headline);
}

Safe retries: Idempotency-Key

POST /api/v1/agents, POST /api/v1/agents/run and POST /api/v1/ask accept an Idempotency-Key header (8โ€“128 characters: letters, digits, _ - . :). The first response to a key is kept for 24 hours; sending the same request with the same key again returns that response with the header Idempotent-Replayed: true โ€” no second agent, no second billed run. A retried async run returns the same run_id.

SituationResponse
Same key, same body, first request finishedThe first response, replayed
Same key, first request still running409 idempotency_in_progress with Retry-After
Same key, different body422 idempotency_key_reused
Malformed key400 idempotency_key_invalid
First response was not a success (any 4xx / 5xx, or a run that returned ok: false)Not kept โ€” the retry runs for real

The SDK sends a fresh key on every agents.create, agents.run, agents.runAsync and ask call, so its own retry after a dropped connection is safe. To cover your retries too, pass your own: ql.agents.run(id, { idempotencyKey: jobId }). Keys are scoped to your account. If the key store is unreachable the request runs normally and the response carries Idempotency-Status: unavailable.

Response shape

{
  "ok": true,
  "fired": true,
  "reason": null,                // why an alert stayed silent, when ok:true & fired:false
  "result": {
    "headline": "NVDA RSI at 28 โ€” technically oversold with volume 1.8x average",
    "detail": "NVDA closed at $425.30, down 3.2%...",
    "confidence": 0.82,
    "sources": [
      { "label": "NVDA RSI(14) 28.3", "asof": "20:00 ET" }
    ],
    "as_of": "2026-07-11T22:30:00Z"
  },
  "models": "fast+deep",        // reasoning tiers used: "fast", "deep", or "fast+deep"
  "tool_calls": 4,
  "grounding": null,
  "usage": { "total_tokens": 3420, "cost_usd": 0.008912 },
  "api_version": "v1"
}

Sources. Each citation is { label, asof? } โ€” label is a human-readable datum (max 120 chars), asof an as-of stamp (max 48 chars) present only when the model supplied one. Up to 8 per result, deduplicated. There are no ticker/metric/value fields.

When the run fails (ok: false) the body carries reason, models, usage and api_version โ€” but no result and no fired. Always branch on ok before reading result.

Run History & Async Runs

GET /api/v1/runs โ€” everything your agents produced, newest first: scheduled cron runs (with summaries) and API-triggered runs (with the full structured result). Filter with ?agent_id=<uuid>, ?status= (pending / fired / clear / skipped / error) and ?since=<ISO datetime>; ?limit= sets the page size (default 30, max 100). Each response carries has_more and next_before โ€” pass next_before back as ?before= for the next page. A client that misses a webhook can always recover results here.

// Everything that failed since Monday, across pages
for await (const run of ql.runs.iterate({ status: 'error', since: '2026-11-23T00:00:00Z' })) {
  console.log(run.ran_at, run.agent_id, run.error);
}

GET /api/v1/agents?id=<uuid> โ€” one agent with what its runs add up to: { agent, stats, runs }. stats is computed over the agent's newest 100 runs (run count, success and fired rates, errors, total and average cost, health); runs holds the most recent ones (?runs_limit=, default 10, max 50). SDK: ql.agents.get(id).

GET /api/v1/runs/<run_id> โ€” one run; the poll target for async runs. status is pending while an async run executes, then fired / clear / skipped / error.

// Deep research run in the background, then wait for it
const { run_id } = await ql.agents.runAsync(agent.id);
const run = await ql.runs.wait(run_id);   // polls every 5s, up to 5.5 min
console.log(run.status, run.result?.headline);

// What did my overnight agents find?
const { runs } = await ql.runs.list({ limit: 20 });
for (const r of runs) console.log(r.ran_at, r.status, r.summary);

Outbound Connectors (REST / MCP)

Pro+. Register your own platforms โ€” an HTTPS JSON API or a remote MCP server โ€” and attach them to agents via connector_ids. During a run the agent gets an extra ext_* tool per connector and can pull your data into its reasoning, fully grounded and cited like every other source.

FieldTypeRequiredDescription
namestringYesDisplay name (also names the agent-side tool, e.g. ext_my_research_api)
typestringYesrest (HTTPS JSON API) or mcp (JSON-RPC 2.0 over Streamable HTTP). Required on create โ€” the SDK does not validate it client-side, so omitting it fails server-side with 400 type_invalid.
base_urlstringYesHTTPS only, public DNS hosts only โ€” IP literals, ports, credentials, query strings, and private/internal names are rejected
auth_modestringOptionalnone, bearer (Authorization: Bearer), or header (custom header via auth_header)
auth_headerstringWith headerCustom header name, [A-Za-z0-9-], max 64 chars
secretstringOptionalWrite-only. Encrypted at rest (AES-256-GCM), never returned by any read โ€” views carry has_secret only
allowed_pathsstring[]OptionalREST: path-prefix allowlist, max 20. Empty = nothing callable (fail closed). Each must start with /; malformed entries return 400 allowed_path_invalid.
allowed_toolsstring[]OptionalMCP: tool-name allowlist, max 20. Empty = every listed tool
enabledbooleanDefault: trueEnable/disable the connector without deleting it

Testing a connector. POST /api/v1/agents/connectors?action=test (SDK: connectors.test(id)) probes it live. A failed probe still returns HTTP 200 with { ok: false, error } โ€” check the ok field, not the status. Success returns { ok: true, tools: [...] } for MCP and { ok: true, sample: "..." } for REST.

// Register a connector, verify it answers, attach it to an agent
const { connector } = await ql.connectors.create({
  name: 'My Research API', type: 'rest',
  base_url: 'https://api.example.com',
  auth_mode: 'bearer', secret: process.env.MY_API_TOKEN,
  allowed_paths: ['/v1/notes', '/v1/positions'],
});
await ql.connectors.test(connector.id);                      // live connectivity probe
await ql.agents.update(agent.id, { connector_ids: [connector.id] });

Security posture: per-run call budget (5 external calls), 10s timeout and 256 KB response cap per call, redirects never followed, hostnames re-resolved against public IP space at call time (DNS-rebind guard), and every response is delivered to the model wrapped as untrusted external data โ€” instructions inside connector output are never followed. Up to 10 connectors per account, 3 per agent.

Per-Agent Memory

Each agent keeps a private memory: at the end of a run it may save one short note (a level it's watching, a dated expectation) that is injected into its future runs. Notes are isolated per agent โ€” two agents on the same ticker never see each other's memory โ€” and capped at the newest 30.

const { notes } = await ql.agents.memory(agent.id);   // [{ id, note, created_at }]
await ql.agents.deleteMemoryNote(agent.id, notes[0].id);
await ql.agents.clearMemory(agent.id);                 // wipe it entirely

Agent-Scoped API Keys

Mint keys restricted to specific agents โ€” hand a teammate, a bot, or a third-party integration a key that can read and run only the agents you list (max 20), and nothing else.

A scoped key canA scoped key cannot
List and read its agents (GET /api/v1/agents, ?id=)
Run them as saved, sync or async (POST /api/v1/agents/run)
Read those agents' runs (GET /api/v1/runs, /runs/<id>)
Read their memory notes
Check its own quota (GET /api/v1/usage)
See, run or read the runs of any other agent โ€” those answer 404
Create, update or delete agents, or delete memory
Run an inline draft or pass overrides
Manage connectors or use the Agent Mesh
Call /api/v1/ask or any other /api/v1 endpoint
Open the MCP server at /api/mcp/v1

Everything in the right-hand column answers 403 with code scoped_key. Pass agent_ids when creating the key on your profile (POST /api/v1/keys), or PATCH an existing key; agent_ids: [] clears the scope.

Grounded Q&A

POST /api/v1/ask โ€” one-shot market question through the same reasoning pipeline as agents. No saved agent needed.

FieldTypeRequiredDescription
questionstringYesYour market question. Minimum 3 chars (shorter returns 400 question_required); anything past 600 chars is silently truncated, so long prompts are answered on their first 600 characters.
tickersstring[]OptionalTickers to scope the analysis (max 8). A comma-separated string is also accepted. Unrecognized symbols are dropped silently, never rejected.
contextstringOptionalResearch notes or findings from an earlier step, up to 4,000 characters. QL treats these as unverified background for this question. Invalid values return 400 invalid_context.
modestringDefault: digestdigest (fast) or research (deep-dive). Any other value falls back to digest without an error.

Each answer reports usage.credits_used, the model usage rounded up to whole AI credits for display. The ledger keeps the underlying precision. Subscriber usage draws on the ownerโ€™s monthly allowance and then purchased credits. Pay-as-you-go usage follows the ownerโ€™s spending cap and payment status. The keyโ€™s daily token cap also applies.

Webhooks

When an agent has a webhook_url set, each fired scheduled run POSTs this JSON payload to that URL. Note the fields are flat โ€” there is no result wrapper:

{
  "event": "agent.run",
  "agent": { "id": "uuid", "name": "NVDA Oversold Alert", "mode": "alert" },
  "headline": "NVDA RSI at 28 โ€” oversold",
  "detail": "...",
  "sources": [ { "label": "NVDA RSI(14) 28.3", "asof": "20:00 ET" } ],
  "artifact_url": "https://quantlogix.ai/...",  // or null
  "ran_at": "2026-07-11T14:30:00Z"
}

Two headers accompany every delivery: X-QL-Event: agent.run and X-QL-Agent-Id. There is no confidence field in the webhook body โ€” poll GET /api/v1/runs if you need it.

Only scheduled (cron) runs deliver webhooks. Runs you trigger yourself via POST /api/v1/agents/run never fire one โ€” they return the result inline instead, and deliberately send no push or email either.

Your endpoint should respond with 200 OK within 10 seconds. Failed deliveries are not retried โ€” recover the full structured result from GET /api/v1/runs (GET /api/v1/agents carries only last_status and a truncated last_summary, never the result body).

Verifying the signature

When you have a webhook signing secret configured on your profile, every delivery is signed: X-QL-Signature: sha256=<hmac> is the HMAC-SHA256 of <X-QL-Timestamp>.<raw body>. The timestamp is part of the signed bytes, so the 5-minute replay window is enforceable โ€” resending a captured delivery with a rewritten X-QL-Timestamp breaks the signature. Verify with the SDK โ€” pass the raw body string, never a re-serialized object:

import { QuantLogix } from './quantlogix-agents.mjs';

// e.g. an Express handler mounted with express.raw({ type: '*/*' })
const valid = await QuantLogix.verifyWebhook({
  body: req.body.toString('utf8'),        // the RAW bytes, exactly as received
  signature: req.headers['x-ql-signature'],   // HMAC of `<timestamp>.<body>`
  timestamp: req.headers['x-ql-timestamp'],  // required โ€” it is signed; >5 min old is rejected
  secret: process.env.QL_WEBHOOK_SECRET,       // qlw_โ€ฆ from your profile
});
if (!valid) return res.status(401).end();

Verification is constant-time and isomorphic (WebCrypto โ€” Node 18+, browsers, edge). Deliveries are unsigned only when no signing secret is configured.

Rate Limits & Quotas

TierMonthly CallsPer MinuteAgent APIAI Tokens
Free1005โ€”โ€”
Starter1,00020โ€”โ€”
Pro10,00060โœ“250K/day per key
EnterpriseUnlimited300โœ“1M/day per key

Pro and Enterprise keys carry the same market-data endpoints โ€” the ceilings differ. One exception: POST /v1/simulate (QL Simulator) is exclusive to the enterprise API tier, which Institutional plans mint. See the API reference.

Check your remaining quota at any time โ€” GET /api/v1/usage never consumes quota:

const usage = await ql.usage();
console.log(usage.requests.remaining);  // 9421
console.log(usage.ai_tokens.remaining);  // 187432 (daily)
console.log(usage.tier);                 // "pro"

SDK Reference

The JavaScript SDK (quantlogix-agents.mjs) is a single ESM file with zero dependencies:

MethodDescription
ql.agents.list()List all your agents
ql.agents.get(id, { runsLimit? })One agent with its run performance (stats) and recent runs
ql.agents.create(agent, { idempotencyKey? })Create a new agent
ql.agents.update(id, patch)Update an agent (partial)
ql.agents.delete(id)Delete an agent
ql.agents.run(idOrDraft, { overrides?, idempotencyKey? })Run a saved agent (by id) or inline draft, synchronously. overrides: { tickers?, context? } applies to this run only
ql.agents.runAsync(id, { overrides?, idempotencyKey? })Start a background run (~5 min budget) โ€” returns run_id
ql.runs.list({ agent_id?, limit?, status?, since?, before? })Run history, newest first, with has_more / next_before
ql.runs.iterate({ ...filters, max? })Async iterator over every matching run, across pages
ql.runs.get(id)One run by id (async-run poll target)
ql.runs.wait(id, opts?)Poll a run until it finishes
ql.agents.memory(id)The agent's private memory notes
ql.agents.deleteMemoryNote(id, noteId) / ql.agents.clearMemory(id)Prune or wipe an agent's memory
ql.connectors.list() / create(spec) / update(id, patch) / delete(id) / test(id)Outbound REST/MCP connectors (Pro+)
ql.ask({ question, tickers, mode, context })One-shot grounded Q&A
ql.usage()Quota introspection (free, no quota consumed)
ql.signal(ticker)5-factor composite signal
ql.news(ticker, limit?)Curated news with sentiment
ql.backtest({ ticker, strategy, years? })Point-in-time strategy backtest vs buy-and-hold (Starter+)
ql.backtestLibrary()Catalog of runnable strategy-backtest IDs (free, unmetered)
ql.portfolio({ holdings })5-factor roll-up over a book (Pro+)
ql.portfolioOverlay({ holdings })Portfolio Alpha overlay โ€” verdicts + action queue (every tier, holdings-capped)
ql.verified({ dataset, ticker?, handle?, limit? })QL Oracle verified data โ€” conviction / index / creators / record
ql.signals(tickers)Batch 5-factor snapshot, up to 25 tickers (Pro+)
ql.microstructure(ticker)OFI / VPIN / smart-money order-flow read (Pro+)
ql.earningsSetup(ticker)Pre-earnings setup โ€” implied move + positioning (Pro+)
ql.screener(filters?)Programmatic universe screener (Pro+)
ql.seasonality(ticker) / ql.gapStats(ticker)Calendar-month seasonality ยท overnight-gap profile (Free)
ql.promiseLedger(ticker)Management Promise Ledger โ€” kept / missed / walked-back receipts (Free)
ql.raiseTape({ slug })QL Raise Tape โ€” every SEC Form D as it is filed, linked to the private-company roster and graded against the press (Free; rows ladder by tier, per-company views complete)
ql.charterTerms({ slug })QL Charter Terms โ€” liquidation preference, participation, seniority, dividends and anti-dilution from filed certificates of incorporation (Free)
ql.lpTape({ gp })QL LP Tape โ€” fund-level net IRR / DPI / TVPI from public-pension disclosures, GP scorecards and vintage benchmarks (Free)
ql.roundOdds()QL Round Odds โ€” sealed P(a priced round is disclosed in 6 months) plus step-up band and down-round odds; record public, board Institutional and laddered below
ql.privateMarketMonitor({ issue })QL Private Market Monitor โ€” the quarterly issue composed only from graded records, sealed with a hash chain (Free)
ql.dca({ ticker, monthly?, years? }) / ql.streetGrades(params?)DCA analytics ยท analyst-grades-vs-tape leaderboard (Free)
ql.simulate({ positions })QL Simulator โ€” regime-switching Monte Carlo on a what-if book (Institutional)
ql.institutional(ticker | { cik })13F holders of a ticker, or a fund's book by CIK (Institutional)
ql.engineModelCard()The live self-test behind /proof โ€” factor ICs, decay, durability (Pro+)
ql.researchRequest({ subject })Commission a QL Research thesis (Pro+)
ql.privateCompanies.list / get / news / financials / comparables / ipoReadiness / liquidity / spacesPrivate-markets data โ€” the 2,000+-company pre-IPO roster with comps, financials, IPO readiness, secondary liquidity, and the Emerging Spaces board (Pro+)
ql.privateCompanies.marks(params?) / ql.privateCompanies.markTape(slug | params?)QL Private Marks โ€” one model-marked valuation per tracked company (last round blended with the daily secondary print and a comps-implied valuation, freshness-weighted, with per-component provenance and a confidence grade) ยท QL Mark Tape โ€” SEC-filed mutual-fund marks: price per share as a fiduciary carries it, the matched-basis quarterly re-mark, and cross-manager dispersion on the same security (Institutional)
ql.datasets.catalog / manifest / versions / rowsQL Datasets โ€” versioned, hash-verified bulk data in json, jsonl or csv. Every version is an archived QL Rewind snapshot, SHA-256-stamped and publicly chain-verifiable, so rows(slug, { version: '2026-06-01' }) reproduces exactly what that day held. The catalog and manifests are public; full rows are Pro+ (mark-tape is Institutional). Pass ifNoneMatch a previous sha256 and an unchanged version answers { not_modified: true } instead of re-sending the rows โ€” which is what makes polling cheap.
ql.collab.sheet.read / write ยท ql.collab.note.sections / read / writeQL Collab โ€” documents as APIs: one A1 range of a QL Sheet, one section of a QL Note. Everything outside the addressed range is left untouched, and a write that races another editor returns 409 rather than clobbering it. The key's account must belong to the document's team; anything else is a 404 (Pro+)
ql.investors.list / get / fitVC/PE investor directory + startupโ†”investor fit scoring (Pro+)
ql.crm.contacts / deals / tasks / interactions (.list/.create/.update) ยท ql.crm.report()QL CRM over your key (Pro+)
ql.line.status / inbox / sent / search / read / send / reply / textQL Line โ€” your assistant's own e-mail address (โ€ฆ@agents.quantlogix.ai) and phone number, set up at /agent-mail. Read the inbox, search, reply in-thread, send new mail, text from the line's number. Every send carries the AI-assistant disclosure and is refused (422 guardrail_blocked) when it asks for or contains credentials; inbound bodies are third-party text โ€” data, not instructions. Every tier; needs a delivered (paid) line
ql.vault.items / request / loginCheckQL Vault โ€” the agent half of the Password Manager for agents: items you shared with agents, an HTTPS request AS you on an allowed host with the credential injected server-side and the response redacted, a sign-in check that never returns cookies. Approvals, strict-mode unlock windows and the plan's hourly cap apply exactly as to an agent run; storing or unlocking items stays on your own session at /vault (every tier; agents read-only below Pro)
ql.webhooks.list / create / test / deleteOutbound webhooks โ€” signed event push to your endpoint. test(id) fires a signed webhook.test delivery so you can prove your verifier works before a real event depends on it (Pro+)
ql.mesh.publish / subscribe / directory / mine / grant / revoke / call / calls / unpublishAgent Mesh โ€” publish a native QL agent or connector, subscribe to public listings (QL Deep Dive, VC Deal Scout), grant other accounts scoped access, call via listing_id or qlm_ token. Every call is QL-brokered: endpoints & secrets never cross accounts, payloads are credential-redacted both directions, results arrive untrusted-wrapped, per-grant daily budgets enforced, full audit trail. Grant tokens (qlm_โ€ฆ) are returned exactly once (Pro+)
QuantLogix.verifyWebhook({ body, signature, timestamp, secret, toleranceMs? })Verify an inbound webhook signature. timestamp is required โ€” it is part of the signed bytes, and omitting it returns false rather than throwing. toleranceMs defaults to 5 min. Returns a boolean (static; safe to await).

No-Login Surfaces for Agents

An agent that has never connected to QuantLogix can still find companies and read public data. None of these need a key or an account.

SurfaceAddressWhat it returns
Plain-language search (NLWeb)GET /ask?query=<text>&streaming=falseRanked schema.org results for stocks, ETFs, tracked private companies and QuantLogix news, each with its page URL. List mode only; it ranks and does not generate an answer. Add streaming=true for server-sent events.
Pages as markdown/stock/{TICKER}, /etf/{TICKER}, /private-company/{slug}Send Accept: text/markdown to get the page as text. The home page answers the same header with the site index.
Browser tools (WebMCP)every pageIn a browser that supports WebMCP, the site registers search_quantlogix, get_quantlogix_profile, find_quantlogix_tool and navigate_to_quantlogix_page. They read public data or navigate; none signs in, pays or trades.
Agent Skills/.well-known/agent-skills/index.jsonInstallable instructions for connecting to QuantLogix and researching a stock or a private company.
Authentication guide/auth.mdHow an agent gets a credential: OAuth 2.1 with PKCE for MCP clients, or a ql_ API key for headless use.
# Find a private company, then read its profile as markdown
curl "https://quantlogix.ai/ask?query=Sierra&streaming=false"
curl -H "Accept: text/markdown" https://quantlogix.ai/private-company/sierra

Error Handling

try {
  const result = await ql.agents.run(agentId);
} catch (err) {
  if (err.status === 401) console.log('Invalid API key');
  if (err.status === 402) console.log('AI budget exhausted, agent cap, or tier upgrade needed');
  if (err.status === 403) console.log('Tier too low, key not bound, or out of key scope');
  if (err.status === 429) console.log('Rate limit or daily token cap');
  if (err.status === 503) console.log('Server timeout or storage unavailable');
  if (err.code === 'timeout') console.log('Client timeout โ€” use runAsync() or raise the timeout');
}

Statuses are overloaded โ€” branch on err.code, not status alone. 402 is ai_budget_exhausted (run), cap_reached (agent-count cap on create) or tier_required (connectors). 403 is a tier gate, key_not_bound_to_account, or scoped_key. 503 is timeout or storage_unavailable.

err.code is a stable identifier on the Agents API. Endpoint-level failures return snake_case codes (id_required, cap_reached, not_found, run_failedโ€ฆ). Authentication and quota failures on /agents, /agents/run, /runs, /ask and /usage carry one too: api_key_required, invalid_api_key, api_key_expired, tier_required, scoped_key, rate_limited, monthly_quota_exhausted โ€” the display sentence stays in err.message. Every 429 says how long to wait. The per-minute limit sends Retry-After and retry_after_s (at most 60 seconds). A quota carries its wait in the body only โ€” reset_in_s to UTC midnight for the daily AI-token cap, retry_after_s to month end for the monthly quota โ€” and no header, so a client does not sleep through it. Other /api/v1 endpoints still return the sentence alone for those failures, so there err.code holds the sentence.

Every failure throws a typed QuantLogixError carrying err.status (HTTP code), err.code (see caveat above), and err.data (the server's JSON body). Transient failures retry automatically with exponential backoff honoring Retry-After โ€” 429 for every method, plus 502/503/504 for reads and network errors for reads and keyed POSTs; a 429 whose stated wait is longer than a minute is a quota, not a burst limit, and is thrown at once instead of retried; tune with new QuantLogix(key, { maxRetries: 4 }) or disable with { maxRetries: 0 }. A client-side timeout throws err.code === 'timeout' once a request outruns the SDK's timeout (default 55s) and is never retried (the run may still be executing server-side). Deep research runs can exceed that โ€” either raise it (new QuantLogix(key, { timeout: 120000 })) or, better, start the run in the background with agents.runAsync(id) and poll with runs.wait(run_id). Non-ASCII agent names and prompts (em-dashes, accents, emoji) are fully supported.

Ready to build?

Get your API key and start creating agents programmatically.

Get API Key โ†’ See Plans OpenAPI Spec
QL Agents produce educational market commentary, not investment advice. API usage is subject to the QuantLogix Terms of Service. AI token costs are billed against the account's monthly budget.