ELFA DOCS — plain text for machines ================================== You asked for this site without asking for a document, so here is the machine-readable index instead of the rendered site. A human should open the same URL in a browser. https://elfa-docs.pages.dev/llms.txt this index https://elfa-docs.pages.dev/llms-full.txt every page, one file The API origin is separate and pay-per-request over x402: https://api.elfa.ai/llms.txt the API's own plain-text index https://api.elfa.ai/.well-known/x402 payable resources, JSON Documentation pages in the sections below are also served as raw markdown at the same path with a `.md` suffix. The external links and generated JSON artifacts listed at the end are not. # Elfa API Documentation > Developer and agent documentation for Elfa APIs. Start with API v3: real-time events, calls, positioning, mindshare and ranked accounts. Then Auto: condition/action workflows that watch the market and fire when conditions are met. Verify checks a claim against posts and web pages and returns a verdict with its evidence; Monitors watch for something described in one sentence and send a signed webhook per match. Then API v2: market chat, mentions, narratives and trending. Also covers x402 pay-per-request access, Widget integration, authentication, rate limits, and machine-readable endpoint metadata. Base URL: https://api.elfa.ai. - [Elfa API Documentation](/index.md) ## get-started - [Agent quickstart](/get-started/agent-quickstart.md): Instructions a coding agent follows to set up Elfa: get a key or pay with x402, make one checked call, then pick REST, an SDK or MCP. - [Choose an API](/get-started/choose-an-api.md): Find the Elfa API that answers your question, or let your coding agent pick it for you. - [Quickstart](/get-started/quickstart.md): Get an API key, find an asset's id, read its last day of events, and see how traders are positioned on it. ## api ### API v3 - [Create a monitor](/api/v3/endpoints/create-monitor.md): Watch for something you describe in one sentence, and get a signed webhook for each match. - [Get the crypto call book](/api/v3/endpoints/crypto-call-book.md): How the accounts Elfa follows are positioned in crypto, hour by hour. - [Get crypto mindshare](/api/v3/endpoints/crypto-mindshare.md): Crypto assets ranked by share of attention over a period. - [Delete a monitor](/api/v3/endpoints/delete-monitor.md): Stop a monitor, or clear an ended one from the list. - [Elfa Api](/api/v3/endpoints/elfa-api.md): API documentation for Elfa - [Get the equity call book](/api/v3/endpoints/equity-call-book.md): How the accounts Elfa follows are positioned in equities, hour by hour. - [Get equity mindshare](/api/v3/endpoints/equity-mindshare.md): Equities ranked by share of attention over a period. - [Get a monitor](/api/v3/endpoints/get-monitor.md): One monitor, with its webhook signing secret. - [Get key status](/api/v3/endpoints/key-status.md): What this key can do: its plan, scopes, credits and history reach. - [List arcs](/api/v3/endpoints/list-arcs.md): Storylines that belong to the same larger movement. - [Calendar](/api/v3/endpoints/list-calendar.md): What is scheduled: launches, unlocks, earnings, data releases, rate decisions and more, soonest first. - [List call episodes](/api/v3/endpoints/list-call-episodes.md): One account's position on one asset, from the call that opened it to the one that closed it. - [List calls](/api/v3/endpoints/list-calls.md): Every call: one post that opened, changed or closed a position. - [List events](/api/v3/endpoints/list-events.md): What happened, to what, and when, newest first. - [List a monitor's matches](/api/v3/endpoints/list-monitor-matches.md): One monitor's matches from the last 30 days, newest first. - [List monitors](/api/v3/endpoints/list-monitors.md): This key's newest 100 monitors, newest first. - [List prediction markets](/api/v3/endpoints/list-prediction-markets.md): The Polymarket and Kalshi markets an event, storyline or arc bears on, and how their odds moved. - [List storylines](/api/v3/endpoints/list-storylines.md): What is developing over time: storylines, each built from many events. - [Get asset positioning](/api/v3/endpoints/positioning.md): How the open positions on one asset are split, right now. - [Resolve an entity](/api/v3/endpoints/resolve-entities.md): Turns what a caller holds into the id every other v3 endpoint takes. - [List top accounts](/api/v3/endpoints/top-accounts.md): The accounts worth watching, ranked. - [List trending contracts](/api/v3/endpoints/trending-contracts.md): Contract addresses being pasted on X and Telegram, counted together. - [Update a monitor](/api/v3/endpoints/update-monitor.md): Change what a monitor watches or where it sends matches. - [Verify a statement](/api/v3/endpoints/verify.md): Check a claim against X, Telegram and the web, and get a verdict with its evidence. ### API v2 - [Ask a market question](/api/v2/endpoints/chat.md): Ask Elfa AI and get one complete JSON answer. - [Stream an answer](/api/v2/endpoints/chat-stream.md): Ask Elfa AI and stream the answer as server-sent events. - [Elfa Api](/api/v2/endpoints/elfa-api.md): API documentation for Elfa - [Event summary from keyword mentions (5 credits total)](/api/v2/endpoints/event-summary.md): AI summaries of the events behind keyword mentions in a time window. - [API key status](/api/v2/endpoints/key-status.md): The status and usage of your API key. - [Multi keyword mentions search](/api/v2/endpoints/keyword-mentions.md): Posts matching keywords or from one account in a time window. - [Health check endpoint](/api/v2/endpoints/ping.md): Health check: answers when the API is up. - [Smart stats of accounts (deprecated)](/api/v2/endpoints/smart-stats.md): Smart stats for one X account, deprecated and not maintained. - [Token news mentions (tweet source only)](/api/v2/endpoints/token-news.md): Token news posts on X from accounts tagged as news sources. - [Top mentions](/api/v2/endpoints/top-mentions.md): The most-engaged posts about one ticker in a time window. - [Trending contract addresses on Telegram](/api/v2/endpoints/trending-cas-telegram.md): Contract addresses trending on Telegram, with mention counts. - [Trending contract addresses on Twitter](/api/v2/endpoints/trending-cas-twitter.md): Contract addresses trending on X, with mention counts. - [Trending narratives (5 credits total)](/api/v2/endpoints/trending-narratives.md): The narratives trending in X mentions. - [Trending tokens](/api/v2/endpoints/trending-tokens.md): Tokens ranked by mention count over a time window. - [AI chat](/api/v2/x402/chat.md): Ask Elfa AI and get one complete JSON answer. - [Elfa Api](/api/v2/x402/elfa-api.md): API documentation for Elfa - [Event summary from keyword mentions (5 credits total)](/api/v2/x402/event-summary.md): AI summaries of the events behind keyword mentions in a time window. - [Multi keyword mentions search](/api/v2/x402/keyword-mentions.md): Posts matching keywords or from one account in a time window. - [Smart stats of accounts (deprecated)](/api/v2/x402/smart-stats.md): Smart stats for one X account, deprecated and not maintained. - [Token news mentions (tweet source only)](/api/v2/x402/token-news.md): Token news posts on X from accounts tagged as news sources. - [Top mentions](/api/v2/x402/top-mentions.md): The most-engaged posts about one ticker in a time window. - [Trending contract addresses on Telegram](/api/v2/x402/trending-cas-telegram.md): Contract addresses trending on Telegram, with mention counts. - [Trending contract addresses on Twitter](/api/v2/x402/trending-cas-twitter.md): Contract addresses trending on X, with mention counts. - [Trending narratives (5 credits total)](/api/v2/x402/trending-narratives.md): The narratives trending in X mentions. - [Trending tokens](/api/v2/x402/trending-tokens.md): Tokens ranked by mention count over a time window. ## auto - [Write conditions](/auto/conditions.md): Write the rule an alert checks: up to 10 conditions joined with AND and OR, three levels deep, each compared to a number or to another live value. - [Get alerts](/auto/delivery.md): Choose where an alert goes: your stream, a signed webhook, a Telegram chat, or an AI write-up. A query takes exactly one action. - [Describe an alert in words](/auto/describe-in-words.md): Send a sentence to Builder Chat and get the alert's query back, ready to check and create. Each message costs 1 credit plus a usage charge. - [Limits and errors](/auto/limits-and-errors.md): Look up how many alerts your plan holds, the limits of one query, and the fix for each common validation error. - [Manage alerts](/auto/manage.md): List, check, cancel and delete your alerts, and read each time one fired, exactly once, with the executions cursor. - [Auto](/auto/overview.md): Create your first alert: check it for free, create it for 5 credits, and read it from a live stream. An alert runs for up to 30 days. - [Cancel a query](/auto/reference/rest/cancel-query.md): Cancel an active query. - [Build a query with chat](/auto/reference/rest/chat.md): Ask the builder AI to draft an EQL query. - [Convert a query draft](/auto/reference/rest/convert-query-draft.md): Turn a draft into an active query. - [Create a query](/auto/reference/rest/create-query.md): Create and activate a query. - [Delete a query](/auto/reference/rest/delete-query.md): Delete a query that has finished. - [Delete a query draft](/auto/reference/rest/delete-query-draft.md): Delete a query draft. - [Elfa Api](/auto/reference/rest/elfa-api.md): API documentation for Elfa - [Get an execution](/auto/reference/rest/get-execution.md): One execution record. - [Get a query draft](/auto/reference/rest/get-query-draft.md): One query draft. - [Get an LLM session](/auto/reference/rest/get-session.md): One LLM session's full analysis output. - [List executions](/auto/reference/rest/list-executions.md): List execution records. - [List queries](/auto/reference/rest/list-queries.md): List your queries. - [List query drafts](/auto/reference/rest/list-query-drafts.md): List your query drafts. - [List LLM sessions](/auto/reference/rest/list-sessions.md): List the LLM output sessions of a query. - [Get a query](/auto/reference/rest/poll-query.md): A query's status and its executions. - [Stream all notifications](/auto/reference/rest/stream-queries.md): Stream notifications for all your queries over server-sent events. - [Stream a query's notifications](/auto/reference/rest/stream-query.md): Stream one query's notifications over server-sent events. - [Save a query draft](/auto/reference/rest/upsert-query-draft.md): Create or update a query draft. - [Validate a query](/auto/reference/rest/validate-query.md): Validate an EQL query and get its cost estimate without creating it. - [Validate a query draft](/auto/reference/rest/validate-query-draft.md): Validate a stored draft without converting it. - [Validate a symbol](/auto/reference/rest/validate-symbol.md): Check whether an exchange supports a symbol. - [Cancel Query](/auto/reference/x402/cancel-query.md): Cancel an active query. - [Builder Chat](/auto/reference/x402/chat.md): Ask the builder AI to draft an EQL query. - [Create Query](/auto/reference/x402/create-query.md): Create and activate a query. - [Elfa Api](/auto/reference/x402/elfa-api.md): API documentation for Elfa - [LLM Session Details](/auto/reference/x402/get-session.md): One LLM session's full analysis output. - [List LLM Sessions](/auto/reference/x402/list-sessions.md): List the LLM output sessions of a query. - [Poll Query](/auto/reference/x402/poll-query.md): A query's status and its executions. - [Stream Notifications](/auto/reference/x402/stream-notifications.md): Stream one query's notifications over server-sent events. - [Validate Query](/auto/reference/x402/validate-query.md): Validate an EQL query and get its cost estimate without creating it. - [Repeat and expiry](/auto/repeat-and-expiry.md): Choose how long an alert runs, from 1 minute to 30 days, and whether it fires once or up to 1,000 times. - [Elfa data](/auto/sources/elfa-data.md): Write conditions on Elfa market events, trader calls and mindshare rankings, with event filters that take up to 30 values each. - [Filings and prediction markets](/auto/sources/filings-and-prediction-markets.md): Write conditions on SEC filings and Kalshi and Polymarket markets, one filer or open market per condition. - [Market prices](/auto/sources/market-prices.md): Write conditions on prices, indicators, funding, liquidations and Fear & Greed, for Hyperliquid, Binance and Bybit perps. - [Social posts](/auto/sources/social-posts.md): Write conditions on posts from one X account or Telegram channel, and on new X follows. Accounts outside Elfa's coverage cost extra. - [Time and AI](/auto/sources/time-and-ai.md): Write conditions that fire on a schedule or on a yes/no question an AI model answers, checked at most once per hour. ## verify - [Best practices](/verify/best-practices.md): Write statements Verify can check, read the verdict and coverage correctly, and backtest with asOf. Lists the errors and what to do next. - [Decision types](/verify/decision-types.md): Ask one more question of the same evidence and get a yes or no probability, one of your options, or a level on your scale. One decision per request. - [Verify](/verify/overview.md): Check a claim against recent X posts, public Telegram messages and web pages, and get a verdict with links to the evidence. Works on every plan. ## monitors - [Receive matches](/monitors/alerts.md): Get each match as a signed webhook, and read a monitor's matches from the last 30 days. A match carries facts and links, never the text of a post. - [Choose Auto or Monitors](/monitors/auto-or-monitors.md): Choose between Auto, which runs exact rules for up to 30 days, and Monitors, which watches for something you describe in one sentence. - [Monitor limits and errors](/monitors/limits-and-errors.md): Pay 2 credits for every started hour a monitor is live, stay within the per-key limits, and fix each error. Nothing else costs credits. - [Manage monitors](/monitors/manage.md): List, read, change and delete your monitors. A change keeps the monitor's id and webhook secret, and a monitor takes one change at a time. - [Monitors](/monitors/overview.md): Describe what to watch in one sentence and get a signed webhook for each new Elfa event that matches it. A key holds up to 20 monitors. ## changelog - [Changelog](/changelog.md): Versioned Elfa API changes, including endpoint additions, behavior updates, and deprecations. ## enrich - [Calendar](/enrich/calendar.md): List what is scheduled across crypto, equities and macro, soonest first, with each date's status and the events that reported it. The default range is the next 30 days. - [Track trading calls](/enrich/calls.md): See each post where an X account or Telegram channel opens, adds to, trims or closes a position, and each position from open to close. - [Entities](/enrich/entities.md): Turn a ticker, name, X handle, contract address, CoinGecko id, FIGI or CIK into the id every Data endpoint takes. - [Events](/enrich/events.md): Choose the kind of event you need, such as what happened or what people did. Each type has its own endpoint, and all types page the same way. - [Mindshare](/enrich/mindshare.md): Rank crypto or stock assets by their share of attention, see which are heating up, and find contract addresses before they have a name. - [News](/enrich/news.md): List the events Elfa saw about an asset, a company or the market, newest first or ranked by importance, or search them by topic. - [Data](/enrich/overview.md): Add context to a project, a person or a market: what happened, who talks about it, and how much attention it gets. - [Rank accounts](/enrich/people.md): Rank X accounts by how much others engage with them, or by how well their trading calls worked. - [Call position](/enrich/positioning.md): Count the open long and short positions on one asset right now, and read the market's lean hour by hour from the call books. - [Find prediction markets for a story](/enrich/prediction-markets.md): Find the open Polymarket and Kalshi markets an event, storyline or arc bears on, and how their odds moved. - [Developments](/enrich/storylines-and-arcs.md): Follow one development over days with storylines, and see the larger movements they belong to with arcs. ## explain - [Conversations and memory](/explain/conversations.md): Continue a conversation with `sessionId`, and choose whether Explain uses your account's memory. - [Explain](/explain/overview.md): Ask a market question in plain words and get a written, sourced answer. Needs a paid plan. - [Question types](/explain/question-types.md): Choose what Explain writes: an open answer, a market overview, a token intro, a trade setup or an account review, and how fast. - [Streaming](/explain/streaming.md): Show the answer as Elfa writes it, with server-sent events from `POST /v2/chat/stream`. API keys only. ## integrations - [Agent skill](/integrations/agent-skill.md): Install the Elfa skill so a coding agent with a shell knows how to call every Elfa endpoint. It costs no context until the agent uses it. - [ChatGPT](/integrations/chatgpt.md): Add Elfa to ChatGPT as a plugin, signed in with your Elfa account. Needs ChatGPT's developer mode. - [Claude](/integrations/claude.md): Add Elfa to Claude on web, desktop and mobile as a custom connector, signed in with your Elfa account. No API key needed. - [Claude Code](/integrations/claude-code.md): Connect Claude Code to Elfa with the hosted MCP server, a local server and API key, or the agent skill. One command each. - [Codex](/integrations/codex.md): Connect Codex to the hosted Elfa MCP server and sign in from the terminal, or add the agent skill. Two commands. - [Cursor](/integrations/cursor.md): Run the Elfa MCP server locally in Cursor with an API key, in one click or one config entry, and add the agent skill. Cursor cannot use the hosted sign-in. - [MCP server](/integrations/mcp.md): Give an AI client 21 Elfa tools with no integration code, by signing in to the hosted server or running it locally with an API key. Streams are not tools. - [Other MCP clients](/integrations/other-mcp-clients.md): Connect VS Code or any other MCP client to Elfa, with the hosted server if the client can sign in, or the local server and an API key. - [Integrations](/integrations/overview.md): Connect Elfa to your coding agent, AI assistant or app with MCP, the agent skill, an SDK or the widget. Every surface uses your Elfa account and its credits. - [Python SDK](/integrations/python.md): Call Elfa from Python with elfa-sdk, with sync and async clients, typed models, retries and streaming. Needs Python 3.11 or newer. - [TypeScript SDK](/integrations/typescript.md): Call Elfa from TypeScript or JavaScript with @elfa-ai/sdk, with typed responses, retries and streaming. Needs Node 22 or newer. - [Widget](/integrations/widget.md): Put Elfa's chat, alerts and feed inside your product for your own users, with a hosted embed or the headless API. The headless API is Enterprise only. ## legacy - [Social data (v2)](/legacy/social-data.md): Get mention counts, top posts, trending tokens and narratives from older endpoints that Elfa will deprecate. Use Data for new work. ## platform - [Authentication](/platform/authentication.md): Send your API key in the x-elfa-api-key header, or pay per request from a wallet with x402. - [Errors](/platform/errors.md): Read an error, find its cause, and know whether a retry helps. - [Key concepts](/platform/key-concepts.md): The few ideas every Elfa endpoint shares: entity ids, events and stories, calls and positions, time, and credits. - [Pricing](/platform/pricing.md): Compare plans by price, credits and limits, and see what each call costs. - [Rate limits](/platform/rate-limits.md): Stay under your key's per-minute limit, set by your plan, and under 1,000 requests a minute from one IP address. ## use-cases - [Use cases](/use-cases.md): Find the problem you want to solve, and see which Elfa endpoints solve it for your role. - [AI agents](/use-cases/ai-agents.md): Give your agent current context, a daily brief and research alerts, let it answer questions, and let it set its own alerts. - [BD and sales](/use-cases/bd-and-sales.md): Enrich the companies and projects you care about, and hear about high-intent events about them as they happen. - [Data platforms](/use-cases/data-platforms.md): Enrich your asset and market pages with events and with market data that only Elfa has, such as trading calls and call position. - [Media and news](/use-cases/media-and-news.md): Get a stream of events as they happen, rank the day's news, and show the sources behind every story. - [Risk monitoring](/use-cases/risk-monitoring.md): Watch the events stream for hacks and exploits, check the events that matter before you act, and watch counterparties in plain words. ## Optional - [Elfa Developer Portal](https://go.elfa.ai/dev): Sign up and manage your API keys - [Elfa Agent Skill](https://github.com/elfa-ai/skills): Install agent-ready Elfa integration guidance - [OpenAPI Spec](/swagger/swagger.json): Machine-readable REST API schema - [Endpoint Manifest](/agent/endpoints.manifest.json): Agent-oriented endpoint metadata generated from the OpenAPI spec