Get started
Examples
Five first steps you can copy, paste, and run against a live eli.ai instance — each one a real request, not pseudocode. Swap https://your-host for your instance, export your key as $ELI_KEY, and every one returns exactly the shape shown. When you want the full story behind a call — every field, every error, every knob — follow its full guide link.
Before you start
Authorization: Bearer $ELI_KEY and needs the scope shown on its badge — scope always comes from the key, never a URL or body. A workspace key (eli_sk_…) carries its workspace implicitly; a user key (eli_uk_…) additionally needs an X-Workspace-Id header. No key yet? Getting started with the API mints one in a minute.1 · Ask your first grounded question
Bearer · agents:runOne POST in, a structured, dual-cited answer out: answer with inline [Sn] markers, the answer decomposed into atomic claims, the sources registry each marker resolves to, and a dataCalls registry (empty here — add includeData: true to ground in live rows as [Dn]).
2 · Start an agent run
Bearer · agents:runAgents are addressed by slug. With stream: false the request blocks and returns the final RunResult as JSON — the simplest integration. Flip to stream: true (the default) for a Server-Sent Events stream of every step ending in a terminal event.
3 · Generate a report snapshot
Bearer · reports:writeOne POST freezes the live state of the knowledge base into an immutable, client-ready snapshot. The call returns immediately with the snapshot id and a generating status; the PDF renders in the background. Fetch it back with GET /api/v1/reports/{id} (structured data is ready at once) or download …/{id}/pdf once pdf.status is ready.
4 · Connect a content source
Bearer · kb:writeRegister an external source as a connector — Confluence, SharePoint, or Slack. The credential is encrypted at write and never returned (reads show only hasCredential); the source starts active and does nothing until you enqueue its first sync.
5 · Call eli.ai from an MCP client
Bearer · eli_sk_eli.ai is itself an MCP server at POST /api/mcp. Point Claude or any MCP client at your workspace with the same eli_sk_ key and it gets the KB, graph, and governed data layer as native, read-only tools — kb_search, kb_entity_lookup, and eli_query (the same pipeline as POST /api/v1/query), among others.
Then ask naturally — "Using the eli tools, what do we know about the Order Platform, and is anything stuck right now?" — and the client chains the tools for you. The endpoint-by-endpoint reference is in MCP server.
Where to next