# Getting Started (https://y2.dev/docs/) Sign in, select a workspace, and choose your first Y2 task. Y2 monitors topics and produces intelligence reports. A profile defines the topic, research settings, and schedule. A subscription controls your access and delivery preferences. ## Before you begin You need an email address or phone number that can receive a verification code. You do not need an API key to use the app. Feature access follows the active workspace. See [Plans and limits](https://y2.dev/docs/plans) for profile and delivery availability. Y2 Desktop is in beta. Check [download availability](https://y2.dev/download) before following the [Mac or Windows installation guide](https://y2.dev/docs/apps). ## Open your workspace 1. Open [Y2 sign in](https://y2.dev/login). 2. Choose email or phone verification. 3. Enter the code you receive. 4. Complete the workspace prompts. 5. Check the workspace name in the app sidebar. The setup is complete when your workspace dashboard opens. ## Choose your first task [Follow a public briefing](https://y2.dev/docs/community/signals): Find an existing topic and follow it in your workspace. [Create a profile](https://y2.dev/docs/profiles/creating): Define your own topic, report structure, and schedule. [Explore the Situation Room](https://y2.dev/docs/osint): Inspect events, sources, and country information on the map. [Build an API integration](https://y2.dev/docs/api): Authenticate and make your first request. ## Confirm a profile subscription After you create or follow a profile, open [My Profiles](https://y2.dev/app/infoops/my-profiles). Confirm that the profile appears. Open it to review its status and delivery settings. See [email](https://y2.dev/docs/delivery/email), [webhook](https://y2.dev/docs/delivery/webhooks), or [SMS](https://y2.dev/docs/delivery/sms) setup for the delivery method your plan supports. ## More information - [Information Operations](https://y2.dev/docs/profiles) explains profiles and reports. - [Mission](https://y2.dev/docs/mission) and [Vision](https://y2.dev/docs/vision) explain Y2's purpose and direction. - [Agent setup](https://y2.dev/docs/api/agentic-dx) prepares a coding agent to use the API. - Email for account help. --- # Join and Manage the Affiliate Program (https://y2.dev/docs/affiliate-program/) Enroll from Settings, share your referral link, and monitor referral activity This guide shows you how to join the Y2 Affiliate Program and manage your referral link from [**Settings → Referrals**](https://y2.dev/app/settings/referrals). [Open referral settings](https://y2.dev/app/settings/referrals): Review your current eligibility, accept the program terms, and manage your referral activity. [Review plans and limits](https://y2.dev/docs/plans): Compare the Y2 plans that can qualify an account for the program. Referral settings is the source of truth Read the [complete v5 Affiliate Program Terms](https://y2.dev/docs/affiliate-program-terms-2026-09-24-v5) and the UTC effective time in **Settings → Referrals** before accepting or sharing a link. The Spanish text in Settings is a summary. The complete English terms control. ## Before you start Sign in with the account that owns the paid billing workspace you want to use. Referral settings will show any requirement that still needs attention, including: - A verified account email. - Ownership of a qualifying paid workspace. - A current subscription payment for that workspace. Your own current paid Lite, Pro, or Elite subscription can qualify you to participate. For referred customer payments from the Pro/Elite policy's displayed UTC effective time, only a Pro or Elite purchase can earn commission. A referred Lite purchase remains visible as a referral but earns nothing under the new policy. A later Pro or Elite upgrade can become its first qualifying conversion if its payment falls within 90 days of the saved claim. Admin or member access to another customer's paid workspace does not qualify the account. Use [Account settings](https://y2.dev/app/settings/account) to resolve email requirements and [Billing settings](https://y2.dev/app/settings/billing) to resolve plan or payment requirements. ## Join the program ### Open referral settings Go to [**Settings → Referrals**](https://y2.dev/app/settings/referrals). The program card shows whether your account is ready to enroll or which requirement needs attention. ### Review the current terms Expand **Review the affiliate program terms**. Review the version, commission rules, payout requirements, and responsible-promotion rules shown in the app. ### Accept and join Select the agreement checkbox. Choose **Join and create my referral link**. Y2 records the terms version you accepted before starting link creation. ### Copy the activated link Wait for the complete referral URL. Select **Copy link**. ## Manage your referral activity Return to [**Settings → Referrals**](https://y2.dev/app/settings/referrals) whenever you need to: - Copy your current referral link. - Review saved referrals, including those waiting on a qualifying purchase, conversions, active qualifying subscriptions, and expired or rejected claims. - Check payout eligibility requirements. - Review verified payments, commission calculations, and payout statuses. For each USD payout batch, the current Pro/Elite terms deduct 3% of gross commission plus $0.50. The percentage rounds up to the nearest cent. A $100.00 commission batch therefore sends $96.50 to Stripe. This is the full affiliate payout deduction. Later changes to Stripe's actual sending costs do not change it. Earlier earnings keep their accepted payout rules. Always share the complete link displayed in the app. Do not reconstruct or shorten its referral token. Disclose your commission clearly beside each endorsement or referral link. For example: “I may earn a commission if you buy Y2 through my link.” ## Keep your account eligible Use the **Payout eligibility** card in referral settings as your checklist. Keep every displayed requirement satisfied while participating and when commissions are reviewed or paid. If the card shows an action is required, resolve that item before relying on new referral activity. ## Troubleshoot enrollment or synchronization **Verified email required** Verify the email in **Settings → Account**, then reopen **Settings → Referrals**. **Paid account or current payment required** Confirm that this account owns the billing workspace, then restore the qualifying plan or subscription in **Settings → Billing**. **The referral link is still being created** Wait briefly and reopen referral settings. If Stripe onboarding displays **Retry**, choose it after the issue has been resolved. **Referral settings reports a conflict** Follow the message shown in the app. If it requests support review, contact and include the displayed error text. --- # Y2 Affiliate Program Terms (2026-09-24-v5) (https://y2.dev/docs/affiliate-program-terms-2026-09-24-v5/) Complete terms for Pro and Elite referral commissions and fixed payout deductions # Y2 Affiliate Program Terms **Version:** `2026-09-24-v5` **Effective time:** The fixed UTC time shown in Settings → Referrals. The time is recorded in Y2's production policy configuration when this version takes effect. These Affiliate Program Terms supplement the Y2 Terms of Service. The parties are YEETUM, LLC, doing business as Y2 (“Y2”), and the participating Y2 account holder (“Promoter”). They govern referral commissions under this version. A payment's verified first collection time determines its commission policy. Payments before the effective time retain their applicable prior terms. The accepted `2026-09-17-v4` native policy covered Lite and Pro. Protected imported provider liabilities retain their original terms. This version does not recalculate, erase, or newly commission earlier payments. ## 1. Joining and account standing Participation is voluntary. You must affirmatively accept the current terms before your assigned referral code and link become active. Commission under this version requires your acceptance of `2026-09-24-v5` no later than the payment's verified collection time. You must meet all these requirements: - Have a verified email. - Own a billing workspace with a paid, active, current Lite, Pro, or Elite subscription. - Maintain your account in good standing. - Satisfy Y2's identity, tax, and payout-provider requirements. Membership in someone else's paid workspace does not qualify you. Your own Lite subscription is sufficient. The Pro/Elite restriction concerns the referred customer's purchase. Y2 records your acceptance, attribution, payments, adjustments, and payout decisions. Joining, sharing a link, or a displayed estimate does not guarantee an approved or payable commission. ## 2. Qualifying referred customers A referral must be a bona fide new customer. They must use your assigned link or accepted code before their first paid Y2 subscription payment. The customer must be a separate person and account. Self-referrals, duplicate or fabricated accounts, manipulated attribution, and customers who paid before the saved claim do not qualify. Optional browser link capture can last up to 90 days. A valid saved claim cannot be replaced and expires after 90 days for its first qualifying payment. For payments first collected at or after the effective time, only Pro or Elite subscription purchases qualify. The purchase must be successful and non-zero to create the first qualifying conversion and commission. A Free or Lite purchase, signup, trial, fully discounted invoice, or uncollected payment earns nothing under this version. A referred customer's paid Lite activity remains visible in the referral dashboard. An upgrade of that same attributed subscription to Pro or Elite may become its first qualifying conversion. Its first qualifying payment must be collected within the original 90-day claim window. Earlier Lite invoices remain noncommissionable under this version. Renewals of the qualifying attributed subscription may earn recurring commissions while all conditions remain satisfied. They do not add another distinct customer conversion. Attribution does not follow a customer to a different subscription automatically. ## 3. Commission calculation and corrections The commission is 15% of eligible Pro or Elite subscription revenue actually collected by Y2. Eligible revenue excludes taxes, discounts, and credits. It also subtracts actual attributable incoming Stripe payment-processing fees. Commission rounds down to the smallest unit of the payment currency. For example, consider a $50.00 eligible payment with no tax and a hypothetical $2.00 processing fee. It produces $48.00 net revenue and a $7.20 commission. The example is not a promise of a Stripe fee. If fee, attribution, identity, payment, or historical evidence is incomplete, Y2 may hold the calculation for review. Refunds, credits, chargebacks, lost disputes, fee corrections, and other reversals may reduce or remove commission. After payout, Y2 may apply these adjustments as offsets against future earnings. Y2 will keep an auditable record of the reason and adjustment. An existing amount is not recomputed solely because these terms changed. ## 4. Review and payout Commission remains under review for at least 60 days after the qualifying payment. It may remain held while evidence or a dispute is unresolved. The initial payout route supports verified US recipients and USD. A payout request requires all of the following: - At least $100 in eligible commission after adjustments and before the payout deduction. - A current eligible Y2 account. - A ready Stripe recipient. - Complete historical reconciliation. - A verified current cost tariff. Payout availability, supported countries and currencies may change prospectively after notice. For each USD payout batch under this version, Y2 deducts **3% of the batch's gross eligible commission plus $0.50**. The percentage component rounds up to the nearest cent. This is the entire affiliate payout deduction. Actual Stripe sending costs are not added to it. Reporting or correcting those costs later does not change the deduction. For example, a $100.00 gross commission batch has a $3.50 deduction and a $96.50 transfer to Stripe. Y2 bears any difference between this deduction and its actual sending costs. Incoming Stripe payment-processing fees were already subtracted when commission was calculated and are not charged again at payout. Payout batches earned under prior terms retain their own cost rules. Y2 withholds this fixed deduction before sending the transfer. The dashboard distinguishes gross commission, deduction, transfer to Stripe, and confirmed bank delivery. A Stripe transfer does not itself prove bank delivery. Y2 does not debit your bank account for a later change in its Stripe sending costs. ## 5. Responsible promotion Describe Y2 accurately. Clearly and conspicuously disclose your financial connection with each endorsement, near the recommendation or referral link. For example: “I may earn a commission if you buy Y2 through my link.” A disclosure only in a profile, footer, or separate terms page is insufficient. Follow applicable advertising, endorsement, privacy, anti-spam, consumer-protection, and platform rules. Do not: - Impersonate Y2 or send spam. - Use deceptive redirects, stuff cookies, or manipulate attribution. - Bid on Y2 trademarks without permission. - Offer an unapproved incentive. - Make false, unsubstantiated, or guaranteed claims. Y2 may review, hold, reverse, suspend, or end participation for suspected fraud, abuse, nonpayment, misleading promotion, or legal or provider risk. Y2 will review available evidence before a final decision and will preserve records of existing liabilities and lawful offsets. You control how you promote Y2, bear your own expenses, and may not bind Y2. Participation is not employment, an investment, a franchise, or a guarantee of income. ## 6. Taxes, records, changes, and disputes You are responsible for taxes on amounts received and for accurate payout and tax information. Y2 or its provider may request verification and withhold payout where required by law or while required information is incomplete. Y2 may retain financial, attribution, acceptance, and review records as described in its privacy notice and applicable law. Y2 may change eligible plans, rates, costs, review periods, thresholds, or these terms prospectively. Material changes require publication in the product and acceptance where applicable. Changes do not retroactively alter a payment's governing policy or approved historical liability. Termination or account deletion stops future participation. It does not silently erase valid balances, adjustments, tax obligations, audit rights, or required financial records. The general dispute, liability, and governing-law provisions of the Y2 Terms of Service apply unless a program-specific term here controls. By selecting the acceptance checkbox and confirming in Settings → Referrals, you agree to version `2026-09-24-v5`. The English text controls. A Spanish-language summary is available in Settings → Referrals. It does not replace these complete terms. --- # API Overview (https://y2.dev/docs/api/) Choose a Y2 API guide, authentication method, or endpoint reference Use the Y2 API to read intelligence data, manage workspace resources, and run Agent Y2. ## Start here [Create an API key](https://y2.dev/docs/api/create-key): Set workspace access and scopes. [Make a request](https://y2.dev/docs/api/workbench): Run a read request in API Workbench. [Build an integration](https://y2.dev/docs/sdks): Choose TypeScript, Python, or command-line tools. [Endpoint reference](https://y2.dev/docs/api/reference): Check exact paths, parameters, schemas, and response headers. ## Base URLs | API | Base URL | Resources | | --------------- | --------------------------- | ------------------------------------------------------------------------------------------- | | Core v1 | `https://api.y2.dev/api/v1` | Reports, profiles, Projects, Automations, news, OSINT, webhooks, Agent Y2, and receipts | | Intelligence v2 | `https://api.y2.dev/api/v2` | Incidents, entities, graphs, markets, signals, change feed, knowledge retrieval, and ledger | OpenAPI v1 paths are relative to the v1 base URL. Its v2 paths include `/api/v2` and use `https://api.y2.dev`. See [OpenAPI server selection](https://y2.dev/docs/api/openapi#compose-the-correct-request-url) before you generate a client. ## Choose authentication | Method | Use | | -------------------------------------------------------- | ------------------------------------------------------------- | | [Bearer API key](https://y2.dev/docs/api/authentication) | Access resources with the key's workspace, scopes, and limits | | [x402](https://y2.dev/docs/api/x402) | Pay for a supported read operation without an API key | | Public receipt lookup | Check an x402 receipt with its nonce | New keys require Pro or Elite. See [authentication requirements](https://y2.dev/docs/api/authentication#plan-requirements) for existing Lite keys and limits. Each operation declares its authentication methods in the endpoint reference. ## Task guides | Task | Guide | | -------------------------------------------- | ------------------------------------------------------------ | | Stream an agent response | [Agent Y2](https://y2.dev/docs/api/agent-y2) | | Read report text, signals, graphs, or audio | [Reports](https://y2.dev/docs/api/reports) | | Create or update research profiles | [Profiles](https://y2.dev/docs/api/profiles) | | Manage private Projects | [Projects](https://y2.dev/docs/api/projects) | | Schedule or run agent instructions | [Automations](https://y2.dev/docs/api/automations) | | Read news and topic recaps | [News](https://y2.dev/docs/api/news) | | Read events, country data, and source status | [OSINT](https://y2.dev/docs/api/osint) | | Query incidents, entities, and relationships | [Intel v2](https://y2.dev/docs/api/intel) | | Search reports and signal assessments | [Global Knowledge](https://y2.dev/docs/api/global-knowledge) | | Record observations and claims | [Ontology Ledger](https://y2.dev/docs/api/ontology-ledger) | | Receive report events | [Webhooks](https://y2.dev/docs/api/webhooks) | | Connect an assistant | [MCP](https://y2.dev/docs/api/mcp) | ## Integration reference - [Response formats, errors, and headers](https://y2.dev/docs/api/responses) - [OpenAPI contract](https://y2.dev/docs/api/openapi) - [Integration recipes](https://y2.dev/docs/api/integration-recipes) - [AI Quickstart](https://y2.dev/docs/api/agentic-dx) - [Response migration](https://y2.dev/docs/api/migration-v1-1) --- # Agent Y2 API (https://y2.dev/docs/api/agent-y2/) Stream Y2's preconfigured workspace-aware agent through native or OpenAI-compatible requests Use either streaming endpoint to run the Y2 copilot. Requests use the key's workspace, plan, credits, thread history, and allowed tools. Model and tool selection API callers cannot select an arbitrary model, enable onboarding mode, or attach files in v1. The `model` value on the OpenAI-compatible route is a Y2 routing alias, not model selection. Requests without client tools use the fixed Agent Y2 Copilot instructions. A non-empty `tools` array selects the isolated client-harness contract described below. ## Choose an endpoint Both endpoints use `https://api.y2.dev/api/v1`. | Endpoint | Stream format | Choose it when | | ---------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | | `POST /agent-y2/chat/stream` | Vercel AI SDK UI message stream | Your client understands the native AI SDK protocol | | `POST /chat/completions` | OpenAI-style `chat.completion.chunk` server-sent events | Your client already consumes streaming chat completions | The routes share the same rate-limit quota. Switching formats does not increase it. ## Create a scoped key [Create a key](https://y2.dev/docs/api/create-key) with `agent:y2` in the workspace that owns the threads and tool actions. Keep the key in a server or local runtime. Agent Y2 does not support x402. `402 INSUFFICIENT_CREDITS` means the workspace's Agent Y2 balance is exhausted. ## Send a native request Terminal ``` curl -N -i "https://api.y2.dev/api/v1/agent-y2/chat/stream" \ -H "Authorization: Bearer $Y2_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "messages": [ { "role": "user", "parts": [ { "type": "text", "text": "What changed in cyber risk this week?" } ] } ], "metadata": { "source": "customer_crm", "externalThreadId": "case-123" } }' ``` The response is an AI SDK UI message stream. API responses omit internal reasoning parts even though the in-app stream can include them. Read the `X-Thread-Id` response header and store it. Continue the conversation by sending that ID in the next native request body: request.json ``` { "threadId": "j57...", "messages": [ { "role": "user", "parts": [{ "type": "text", "text": "Which entities should I watch next?" }] } ] } ``` ## Send an OpenAI-compatible request Terminal ``` curl -N -i "https://api.y2.dev/api/v1/chat/completions" \ -H "Authorization: Bearer $Y2_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "y2-agent", "stream": true, "messages": [ { "role": "user", "content": "Summarize the latest Y2 platform capabilities." } ] }' ``` The compatibility route requires `stream: true`. `model` is optional. When supplied, it must be `y2-agent` or `agent-y2`. It emits a role chunk, text or tool-call delta chunks, a final chunk with `finish_reason: "stop"` or `"tool_calls"`, and `data: [DONE]`. To continue a conversation, pass `threadId` in the JSON body or send the prior ID in an `X-Thread-Id` request header. Client tools run only in your harness Supplying a non-empty `tools` array switches this request to client-harness mode. Y2 sends the schemas to the model and streams function calls back, but it never executes those functions. Your client remains responsible for permission checks, local execution, and returning matching tool results. Agent Y2's server-side intelligence tools are not exposed in this mode. ## Use client-side tools Client-harness mode preserves system and developer instructions, assistant tool calls, and matching tool results. This is the mode used by the native Y2 CLI for repository instructions, local file operations, commands, skills, and subagents. Terminal ``` curl -N -i "https://api.y2.dev/api/v1/chat/completions" \ -H "Authorization: Bearer $Y2_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "y2-agent", "stream": true, "messages": [ { "role": "system", "content": "Inspect the workspace before editing." }, { "role": "user", "content": "Read README.md." } ], "tools": [ { "type": "function", "function": { "name": "read_file", "description": "Read a workspace file", "parameters": { "type": "object", "properties": { "path": { "type": "string" } }, "required": ["path"] } } } ], "tool_choice": "auto" }' ``` The response header `X-Y2-Agent-Mode: harness` confirms that the client-tool contract was selected. Tool definitions are limited to 128 functions. Names, descriptions, schemas, transcript length, and tool arguments are bounded. Malformed or unmatched tool history returns `400` before model execution. ## Understand thread context | Request state | Context used by Agent Y2 | | ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | No `threadId` | Creates an API-source thread and uses non-empty user and assistant text from the supplied transcript | | Existing `threadId` | Verifies the same user, API source, and workspace, then loads up to 40 persisted messages from that thread | | Latest user message | Saved to the thread and used as the new prompt | | System, developer, or tool transcript entries without `tools` | Accepted for compatibility but excluded from the fixed Copilot prompt | | Non-empty `tools` array | Uses client-harness mode with supplied instructions and complete matching tool history | A thread created in the app cannot be continued through the API. A workspace-scoped API key also cannot continue a thread from another workspace. An invalid ID returns `400`. A missing thread returns `404`. A thread outside the allowed source, user, or workspace returns `403`. ## Available tools The exact tool set is assembled for every request from current workspace entitlements. | Tool category | Availability | | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Y2 documentation search | Always registered | | Public briefing search and follow | Registered for standard Agent Y2 sessions | | News search | Registered for standard sessions | | Web search | Requires the workspace web-search entitlement | | Profile creation and editing | Requires remaining custom-profile capability and metering context | | OSINT search | Requires OSINT entitlement | | Y2 Global Knowledge retrieval | Requires Chat entitlement. Searches only authorized shared and key-workspace corpora | | Cyber, FININT, markets, entity, incident, and investigation tools | Added according to the related intelligence entitlements | | Image generation | Requires image-generation entitlement and a compatible selected agent path | Available tools still require workspace permissions and sufficient resources. The agent chooses which tools to call. This table applies to Copilot mode. In client-harness mode, your client executes the supplied tools. Agent Y2 uses its existing `agent:y2` scope when it invokes Y2 Global Knowledge. Do not add `intel:knowledge` to an Agent Y2 key unless the same integration also calls the direct retrieval endpoint. Direct retrieval and agent execution are separate least-privilege surfaces. ## Metadata behavior Both routes accept a strict metadata object: ``` { "metadata": { "source": "ops_console", "externalUserId": "analyst-42", "externalThreadId": "case-123" } } ``` | Field | Maximum | Current behavior | | ------------------ | -------------- | -------------------------------------------------------------------------- | | `source` | 128 characters | Accepted for compatibility. The thread source is still recorded as `api` | | `externalUserId` | 256 characters | Accepted but not currently persisted to the thread | | `externalThreadId` | 256 characters | Stored when Y2 creates a new thread. It does not replace the Y2 `threadId` | Unknown metadata properties fail strict validation. Keep your own correlation log and never put secrets or full customer records in metadata. ## Provider privacy controls The current Agent Y2 executor selects chat models marked as Zero Data Retention capable and sends OpenRouter provider options with `zdr: true` and `data_collection: "deny"`. These controls govern the external model request. Y2 still stores API-source threads, messages, request attribution, tool results, and usage records under Y2's product data lifecycle. See the [Privacy Policy](https://y2.dev/privacy) for the customer-facing data terms. ## Rate limits and response headers Agent Y2 applies these limits in addition to the API key's normal plan limits: | Limit scope | Per minute | Per day | | --------------------------- | ---------- | ------- | | API key | 5 | 100 | | User or workspace aggregate | 10 | 250 | Inspect `Retry-After`, the normal `X-RateLimit-*` headers, and the `X-Y2-Agent-RateLimit-*` headers. Successful streams also return `X-Thread-Id`, `X-Y2-Agent: y2`, and `X-Y2-Agent-Mode: copilot` or `X-Y2-Agent-Mode: harness`. ## Error guide | Status | Common cause | Response | | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | | `400` | Invalid JSON, missing latest user text, unsupported alias, invalid tool schema or history, invalid thread ID, or native `modelId`, `isOnboarding`, or `attachments` | Correct the request. Do not retry unchanged | | `401` | Missing, malformed, revoked, or invalid API key | Replace or rotate the credential | | `402` | Subscription, workspace Agent Y2 credit, or upstream provider credit exhaustion | Check the workspace plan and Agent Y2 credit balance. Do not start x402 handling | | `403` | Missing scope, no chat entitlement, blocked access, or unauthorized thread | Check key scope, workspace, plan, and thread origin | | `404` | Supplied thread no longer exists | Start a new thread or correct the stored ID | | `429` | Normal API or shared Agent Y2 limit exceeded | Back off for `Retry-After` seconds | | `500` | Stream preparation or provider execution failed | Retry with backoff and retain `X-Request-Id` for support | ## Related reference [Generated Agent Y2 reference](https://y2.dev/docs/api/reference/agent-y2): Verify the exact request schemas, response headers, and generated examples [Authentication](https://y2.dev/docs/api/authentication): Understand key format, scopes, tenant resolution, and plan limits [MCP setup](https://y2.dev/docs/api/mcp): Connect an MCP-compatible agent to Y2's exposed tools --- # AI Quickstart (https://y2.dev/docs/api/agentic-dx/) Give a coding agent the Y2 contract and verify its first request Use this guide to build a Y2 integration with a coding agent. Keep the API key outside the prompt. AI Quickstart Paste this into Claude Code, Codex, Pi, Hermes, OpenClaw, or OpenCode before integrating the Y2 API. **Copy prompt** gives the agent links to current Y2 documentation. ## Build the integration ### Find the relevant documentation Read `https://y2.dev/llms.txt` for the page index. Read the task guide and its generated endpoint reference. Use `llms-full.txt` only when the task needs the full documentation. ### Check the operation Confirm the method, server, parameters, body, scopes, and response format in [OpenAPI](https://y2.dev/api/openapi.yaml). For v2 paths, use the operation's server override. ### Set authentication [Create a key](https://y2.dev/docs/api/authentication#create-a-key) in the workspace that owns the requested resources. Grant only the required scopes. Store `Y2_API_KEY` in the server or local agent environment. ### Implement and verify Run one request with a small `limit`. Check the status, body, `X-Request-Id`, version, and rate-limit headers. Verify pagination and error handling before you add more operations. ## Give the agent a task Replace the bracketed text with your task: Agent task template ``` Implement [specific Y2 workflow] in this codebase. 1. Read the relevant guide at https://y2.dev/docs/api. 2. Read the operation in https://y2.dev/api/openapi.yaml. 3. Confirm the server, scopes, pagination, authentication, and errors. Read Y2_API_KEY from the server or MCP client environment. Keep it out of source, browser code, prompts, tool arguments, and logs. Let the key determine workspace access. Use only the required scopes and bounded page sizes. Preserve X-Request-Id and Retry-After. Verify one request. Report its status and response shape. ``` ## Check a read request Use a key with `reports:read` for Core v1 or `intel:finint` for Intel v2. The `-D -` option prints response headers. **Core v1** Terminal ``` curl -sS -D - "https://api.y2.dev/api/v1/reports?limit=1" \ -H "Authorization: Bearer $Y2_API_KEY" ``` **Intel v2** Terminal ``` curl -sS -D - "https://api.y2.dev/api/v2/finint?limit=1" \ -H "Authorization: Bearer $Y2_API_KEY" ``` Expect HTTP `200` and a JSON collection. An empty `data` array is valid. For other statuses, use the [error reference](https://y2.dev/docs/api/responses#errors). ## Documentation URLs | Resource | URL | | -------------------- | --------------------------------- | | Page index | `https://y2.dev/llms.txt` | | Full documentation | `https://y2.dev/llms-full.txt` | | One page as Markdown | `https://y2.dev/docs/{path}.md` | | OpenAPI YAML | `https://y2.dev/api/openapi.yaml` | | OpenAPI JSON | `https://y2.dev/openapi.json` | [Authentication and scopes](https://y2.dev/docs/api/authentication) [Endpoint reference](https://y2.dev/docs/api/reference) [MCP setup](https://y2.dev/docs/api/mcp) --- # API Authentication Reference (https://y2.dev/docs/api/authentication/) API-key plans, workspace access, scopes, limits, and lifecycle Bearer keys determine workspace access for most API requests. Some read operations also support [x402 payments](https://y2.dev/docs/api/x402) without an API key. ## Create a key Follow [Create an API Key](https://y2.dev/docs/api/create-key) to create and verify a key. ## Plan requirements | Plan | New keys | Default limit per key | Existing-key access | | ----- | -------- | ------------------------- | -------------------------------- | | Free | 0 | No key access | None | | Lite | 0 | 10/minute and 500/day | Eligible grandfathered keys only | | Pro | 10 | 30/minute and 5,000/day | Yes | | Elite | 100 | 300/minute and 50,000/day | Yes | Eligible Lite keys remain usable, rotatable, and revocable. Their historical active-key capacity is two. A downgrade from Pro or Elite does not grant Lite grace access. Limits apply per key and to the workspace total. Legacy keys without a workspace use the user's total. Additional keys do not increase the workspace quota. ## Key format and storage Keys contain the `y2_` prefix and 64 lowercase hexadecimal characters from 32 random bytes: ``` y2_{64 lowercase hexadecimal characters} ``` Y2 stores the SHA-256 hash and a short display prefix. It cannot retrieve the original secret. Regeneration creates a new secret and invalidates the old one immediately. ## Send the key ``` Authorization: Bearer y2_... ``` The `Bearer `prefix is case-sensitive. Keep the key on a trusted server or local runtime. ## Workspace scope | Boundary | Behavior | | ------------------- | ---------------------------------------------------------- | | Resources | Workspace-scoped operations use the key's stored workspace | | Key management | Workspace owners and admins can list and manage keys | | Aggregate limits | All workspace keys share the plan's minute and daily quota | | Workspace switching | Switching workspaces does not move an existing key | Y2 verifies resource access against the key's workspace. A caller-supplied `workspaceId` does not grant access. ## Scopes | Scope | Grants access to | | ------------------- | ----------------------------------------------------------------------------------------- | | `reports:read` | Report lists, individual reports, text, signals, and report graphs where specified | | `reports:audio` | Report audio and audio-text operations | | `profiles:read` | Listing profile subscriptions and reading individual profiles in the key workspace | | `profiles:write` | Creating and changing owned profiles, including destructive profile deletion | | `projects:read` | Listing and inspecting owned Projects in the key workspace | | `projects:write` | Creating, changing, archiving, restoring, and pinning owned Projects | | `automations:read` | Listing owned Automation definitions and run history | | `automations:write` | Creating, changing, archiving, and manually running owned Automations | | `news:read` | News items, recaps, and feed discovery | | `webhooks:manage` | Webhook configuration and subscription-delivery webhook operations | | `osint:read` | v1 Situation Room endpoints and the v2 change feed | | `intel:finint` | v2 FININT, markets, shared incidents, and shared signals | | `intel:disclosures` | v2 disclosures: SEC filings, insider trades, activist stakes, and federal awards | | `intel:cyber` | v2 cyber graph, CVEs, threat actors, DNS footprints, shared incidents, and shared signals | | `intel:explorer` | v2 entities, entity graphs, shared incidents, and shared signals | | `intel:knowledge` | Direct bounded retrieval across authorized Y2 Global Knowledge corpora | | `agent:y2` | Native and OpenAI-compatible Agent Y2 streams with entitled account tools | | `ledger:read` | Workspace ontology ledger folds, record exports, seal verification, and STIX 2.1 exports | | `ledger:write` | Opening ledger subjects and appending designators, observations, and claims | For shared Intel endpoints, any one listed scope can authorize the request. Check the operation's `x-required-scopes` value. The workspace must retain the plan feature required by that scope. Direct Global Knowledge requests require `intel:knowledge`. Agent Y2 requests require `agent:y2`. An entitled Agent Y2 session can use Global Knowledge without the direct API scope. Existing keys do not gain scopes automatically. Edit the key when an integration needs an additional scope. Company financial history, cyber-market fusion, and ontology ledger operations require a workspace-bound key. Personal keys receive `403`. These operations do not accept x402. Write and agent scopes can change resources Grant write scopes, `webhooks:manage`, and `agent:y2` only to integrations that need their actions. Use separate keys for read-only integrations. ## IP allowlisting - Use individual IPv4 or IPv6 addresses. CIDR ranges are not supported. - Use the service's public egress address for hosted jobs. - An empty list disables the key's IP restriction. - An address outside the list returns `403 IP_NOT_ALLOWED`. Browser origins do not restrict key access Core API responses allow cross-origin requests. Stored `allowedOrigins` values do not restrict authentication. Keep keys out of browser applications. ## x402 selection | Request | Result | | ---------------------------------- | ------------------------------------------------------------------- | | Valid `Authorization: Bearer ...` | Checks the key, scopes, IP, and limits | | Invalid or unauthorized bearer key | Returns `401` or `403` without a payment fallback | | No `Bearer `header | Starts x402 if supported, otherwise returns an authentication error | | Signed x402 retry | Checks the signature, replay protection, limits, and settlement | Do not send a placeholder bearer header for an x402 request. See [x402 payments](https://y2.dev/docs/api/x402) for prices and payment headers. ## Rate-limit headers Y2 uses fixed UTC minute and day windows. | Header family | Meaning | | ---------------------------------------------------------- | ----------------------------------------------------------------------- | | `X-RateLimit-Limit-Minute`, `X-RateLimit-Remaining-Minute` | Per-key minute quota | | `X-RateLimit-Limit-Day`, `X-RateLimit-Remaining-Day` | Per-key daily quota | | `X-RateLimit-Limit-User-*`, `X-RateLimit-Remaining-User-*` | Workspace total for workspace keys. User total for legacy unscoped keys | | `X-RateLimit-Reset-Minute`, `X-RateLimit-Reset-Day` | Unix reset timestamps, when included | | `Retry-After` | Seconds to wait after `429` | Agent Y2 has [additional limits and headers](https://y2.dev/docs/api/agent-y2#rate-limits-and-response-headers). ## Rotate, revoke, or delete | Action | Effect | | ---------- | ------------------------------------------------------------------------------------------------------------- | | Regenerate | Replaces the secret, resets usage metadata, and reactivates the key. The old secret stops working immediately | | Revoke | Deactivates the key but keeps its record. Repeating the action is safe | | Delete | Permanently removes the key record | Regeneration has no overlap period. If you need uninterrupted access, create a separate replacement key first. Update dependent integrations before you revoke or delete the old key. ## Errors and lockout | Status | Common cause | | ------ | ---------------------------------------------------------------- | | `401` | Missing, unknown, revoked, or expired key | | `403` | Ineligible plan, missing scope, or blocked IP address | | `429` | Key or account limit, or an IP lockout after invalid credentials | Five invalid or unknown key attempts from one IP within 15 minutes trigger a lockout for that rolling window. Revoked, expired, and plan-ineligible known keys do not count toward this limit. Wait for the lockout to expire before retrying. See [API errors](https://y2.dev/docs/api/responses#errors) for the response format. --- # Automations API (https://y2.dev/docs/api/automations/) Manage durable Agent Y2 Automation definitions and run history through the Y2 API. Automations run bounded Agent Y2 instructions on a schedule or after a selected profile report. Definitions and runs remain owner-private inside the API key workspace. ## Scopes and availability | Operation | Scope | | -------------------------------------------------- | ------------------- | | List definitions, inspect one, or read run history | `automations:read` | | Create, update, archive, or request a manual run | `automations:write` | Automations and both API scopes require Pro or Elite. API requests use the app's workspace limits, permissions, overlap rules, and Agent Y2 credits. ## Create a scheduled Automation Replace `projectId` with an accessible Project ID, or omit it for an Automation without a Project. ``` curl -sS "https://api.y2.dev/api/v1/automations" \ -H "Authorization: Bearer $Y2_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: automation-daily-watch-2026-07" \ -d '{ "name": "Daily supply chain watch", "instructions": "Summarize material changes and cite the strongest evidence.", "projectId": "prj_0123456789abcdef01234567", "trigger": { "kind": "schedule", "frequency": "daily", "timeOfDay": "13:00", "timezone": "America/Chicago" }, "notificationPolicy": "failures_only", "status": "active" }' ``` For a report-completion trigger, use: ``` { "kind": "profile_report_completed", "profileId": "prf_0123456789abcdef01234567" } ``` ## Inspect and update Use `GET /api/v1/automations`, `GET /api/v1/automations/{automationId}`, and `GET /api/v1/automations/{automationId}/runs`. List responses are bounded to 50 rows per request. Definition and run-history collections return the standard opaque `nextCursor` and `links.next` fields for complete traversal. `PATCH /api/v1/automations/{automationId}` accepts definition fields or a status-only lifecycle change. An archived Automation cannot be edited or resumed. Send the latest `ETag` in `If-Match` when coordinating multiple writers. ## Request a manual run ``` curl -sS -X POST "https://api.y2.dev/api/v1/automations/$AUTOMATION_ID/runs" \ -H "Authorization: Bearer $Y2_API_KEY" \ -H "Idempotency-Key: manual-run-2026-07-24T1500Z" ``` The endpoint returns `202 Accepted`. The idempotency key is required and prevents duplicate admission for retries. Poll the run-history endpoint for queued, running, terminal, usage, and billing state. [Generated Automations reference](https://y2.dev/docs/api/reference/automations): Exact paths, parameters, request bodies, responses, and schemas [Automations product guide](https://y2.dev/docs/automations): Triggers, plan limits, run states, billing, and live admission checks --- # Create an API Key (https://y2.dev/docs/api/create-key/) Create a workspace API key and verify a read request You need a Pro or Elite workspace and an owner or admin role. The key uses the workspace selected when you create it. ### Select the workspace Choose the workspace in the workspace switcher. Open [**Developers → API Keys**](https://y2.dev/app/developers/api-keys). ### Name the key and select scopes Use a name such as `report-exporter-prod`. Select only the [scopes](https://y2.dev/docs/api/authentication#scopes) your integration needs. For the verification request below, select `reports:read`. ### Set an optional IP restriction Add the service's public IP addresses if they are stable. Use individual IPv4 or IPv6 addresses. CIDR ranges are not supported. Leave the list empty to permit requests from any IP address. ### Save the key Copy the key from the creation result. Store it in a secret manager or protected environment variable named `Y2_API_KEY`. Y2 displays the complete key only once. ### Verify access Run this command in an environment with `Y2_API_KEY` set: ``` curl --fail-with-body -sS -D - "https://api.y2.dev/api/v1/reports?limit=1" \ -H "Authorization: Bearer $Y2_API_KEY" ``` Expect HTTP `200` and a JSON collection. The collection can be empty. For a different status, see [authentication errors](https://y2.dev/docs/api/authentication#errors-and-lockout). Protect the key Keep the key out of browser bundles, prompts, tool arguments, query strings, and logs. [API Workbench](https://y2.dev/docs/api/workbench) uses the key you enter for requests but excludes it from copied examples. --- # Y2 Global Knowledge (https://y2.dev/docs/api/global-knowledge/) Retrieve bounded, authorized evidence across Y2 reports and signal assessments Search report sections, signal assessments, report graphs, and supported public documents found by Y2 research. Use report or Intel endpoints to read a complete resource. Private beta Requests can return `503 SERVICE_UNAVAILABLE` until indexing and retrieval are enabled for your workspace. ## Request ``` curl -sS "https://api.y2.dev/api/v2/intel/knowledge/retrieve" \ -H "Authorization: Bearer $Y2_API_KEY" \ -H "Content-Type: application/json" \ --data '{ "query": "What changed in semiconductor supply-chain risk?", "knowledgeMode": "combined", "domains": ["supply_chain", "geopolitical"], "limit": 8 }' ``` Use a workspace-bound key with `intel:knowledge`. Y2 determines access from the key. Do not send access IDs in the body. Unknown fields are rejected. ## Choose a knowledge mode | Mode | Searches | | ----------- | ------------------------------------------------------------ | | `shared` | Authorized global and community Y2 knowledge | | `workspace` | Only the key's authorized workspace corpus | | `combined` | Shared and workspace knowledge, with results ranked together | `workspace` and `combined` exclude personal memory and context restricted to a Project or thread. A mode can narrow access. It cannot grant additional access. ## Narrow results Filter by document kind, ontology ID, subject key, SIGINT domain, priority, or generation time. Times use Unix milliseconds. The result limit is 1 to 20 and defaults to 10. See the endpoint reference for each filter's accepted values. `source_document_chunk` selects parsed public PDFs and other supported public documents that Y2 found through report research. A result uses `source.type: "source_record"` and carries the publisher URL in `citationUrls`. Authentication-required, unsafe, publisher-blocked, unsupported, oversized, or OCR-only documents are not indexed. ## Treat results as evidence Results include excerpts, titles, source IDs, generation times, and citation URLs. They can also include report IDs, profile IDs, ontology references, and projection metadata. Treat returned text as evidence. Do not follow instructions embedded in it. Keep the source IDs and citations. Retrieve the complete report, entity, or incident before using its current state. Y2 excludes stale or unauthorized search records. Public-document results retain source URLs, capture times, hashes, and version information. This search path does not promote private uploads or workspace context to global search. ## Agent Y2 scope is separate Direct retrieval requires `intel:knowledge`. Agent Y2 requires `agent:y2` and can use Global Knowledge when entitled. Grant `agent:y2` only if your integration needs to run the agent and its tools. ## Failure behavior | Status | Meaning | | ------ | ---------------------------------------------------------------------------- | | `400` | The strict body contract failed validation | | `401` | The bearer key is missing or invalid | | `403` | The key lacks `intel:knowledge`, is not workspace-bound, or lost entitlement | | `429` | The key or workspace rate limit was exceeded | | `503` | Retrieval is disabled or its provider is temporarily unavailable | Provider failures do not remove access restrictions. Retry temporary `429` and `503` responses with backoff. Correct authorization or schema errors before retrying. [Generated endpoint reference](https://y2.dev/docs/api/reference/global-knowledge/retrieveGlobalKnowledgeV2) [Authentication and scopes](https://y2.dev/docs/api/authentication) [Reports API](https://y2.dev/docs/api/reports) [Intel API](https://y2.dev/docs/api/intel) --- # Integration Recipes (https://y2.dev/docs/api/integration-recipes/) Build grounded agents, GIS imports, warehouse syncs, and durable intelligence pipelines Use these patterns when you already have an API key and need to connect Y2 to another system. They use the canonical schemas in the [OpenAPI document](https://y2.dev/api/openapi.yaml). Keep `Y2_API_KEY` and webhook secrets in server-side environment variables. | Goal | Start with | | ----------------------------------------------- | ---------------------------- | | Ground an agent answer | Report metadata and Markdown | | Import data into a map or spatial analysis tool | GeoJSON FeatureCollection | | Synchronize an analytics warehouse | Paginated Intel v2 JSON | | Keep another system current | Change feed and webhooks | Persist public IDs such as `rpt_...` and `prf_...`. Legacy Convex document IDs are not a stable integration contract. ## Ground an agent with a report and its sources Fetch the report's structured source metadata and canonical Markdown representation in parallel. Retry only rate-limit and server failures, and retain `requestId` when logging a Problem Details response. ``` const authorization = `Bearer ${process.env.Y2_API_KEY}`; const reportId = "rpt_0123456789abcdef01234567"; const reportUrl = `https://api.y2.dev/api/v1/reports/${reportId}`; async function requireSuccess(response: Response) { if (response.ok) return response; const problem = await response.json(); const error = new Error( `${problem.code}: ${problem.detail} (request ${problem.requestId})`, ); Object.assign(error, { retryable: problem.status === 429 || problem.status >= 500, problem, }); throw error; } const [metadataResponse, markdownResponse] = await Promise.all([ fetch(`${reportUrl}?include=sources&view=agent`, { headers: { Authorization: authorization }, }), fetch(reportUrl, { headers: { Authorization: authorization, Accept: "text/markdown" }, }), ]); const [metadata, markdown] = await Promise.all([ requireSuccess(metadataResponse).then((response) => response.json()), requireSuccess(markdownResponse).then((response) => response.text()), ]); answerWithCitations( markdown, metadata.data.sources.map((source: { url: string }) => source.url), ); ``` The repository checks its generated TypeScript definitions with: ``` bun run generate:api-types bun run check:api-types ``` External TypeScript projects can generate their own types from `https://y2.dev/api/openapi.yaml` with an OpenAPI 3.1-compatible generator. ## Import regional intelligence into a GIS Request GeoJSON from the regional OSINT endpoint. Coordinates use WGS 84 longitude-first order: `[longitude, latitude]`. ``` import os import requests response = requests.get( "https://api.y2.dev/api/v1/osint/regional", headers={ "Authorization": f"Bearer {os.environ['Y2_API_KEY']}", "Accept": "application/geo+json", }, params={ "bbox": "-122.5,32.5,-96.8,49.2", "datetime": "2026-07-01T00:00:00Z/2026-07-21T23:59:59Z", "limit": 200, }, timeout=30, ) response.raise_for_status() feature_collection = response.json() assert feature_collection["type"] == "FeatureCollection" assert all( feature["type"] == "Feature" for feature in feature_collection["features"] ) next_page = next( ( link["href"] for link in feature_collection.get("links", []) if link.get("rel") == "next" ), None, ) ``` The bounding box filter excludes records without matching coordinates. Open the returned FeatureCollection directly in QGIS or ArcGIS, or load it with GeoPandas. Follow the item in `links` whose `rel` is `next` to retrieve another page. ## Sync financial intelligence into a warehouse Replace `warehouse.merge` with your database's idempotent upsert operation. This example uses Python and `httpx`. The semantic `/api/v2/finint` collection returns JSON with pagination in `meta.page` and `links.next`. Merge on the canonical public `id`, and treat the returned next link as an opaque, filter-bound continuation. ``` import os from urllib.parse import urljoin import requests origin = "https://api.y2.dev" url = f"{origin}/api/v2/finint?limit=500" headers = {"Authorization": f"Bearer {os.environ['Y2_API_KEY']}"} while url: response = requests.get(url, headers=headers, timeout=30) response.raise_for_status() page = response.json() warehouse.merge("y2_finint_facts", page["data"], key="id") next_link = page["links"]["next"] url = urljoin(origin, next_link) if next_link else None ``` `/api/v2/finint` does not offer NDJSON. If a row-oriented stream is required, use `/api/v1/osint/finint?format=ndjson`. That endpoint returns at most 100 rows per request and exposes continuation in `X-Y2-Next-Cursor`. Model semantic fields as facts and dimensions. Do not make deprecated epoch aliases or raw provider payloads part of the warehouse contract. ## Build a durable change pipeline Use webhooks for low-latency report notifications and `/api/v2/changes` to detect missed or updated resources. A bearer API key receives global intelligence changes plus changes belonging to its own user or workspace. It does not receive another tenant's records. Implement `applyPageAtomically` with a database transaction. Use `requireSuccess` from the first recipe. ``` async function ingestChanges(savedWatermark?: string) { const first = new URL("https://api.y2.dev/api/v2/changes"); first.searchParams.set("limit", "500"); if (savedWatermark) first.searchParams.set("watermark", savedWatermark); let next: URL | null = first; while (next) { const response = await requireSuccess( await fetch(next, { headers: { Authorization: `Bearer ${process.env.Y2_API_KEY}` }, }), ); const page = await response.json(); // Implement this as one transaction: apply every resource change or // tombstone, then persist the page watermark as the final write. await applyPageAtomically(page.data, page.meta.watermark); next = page.links.next ? new URL(page.links.next, "https://api.y2.dev") : null; } } ``` The watermark is an exclusive checkpoint. Reusing the last committed value after a failure is safe. Saving it before resource writes commit can lose changes. A tombstone instructs the consumer to remove or retire the named resource. For webhook requests, verify HMAC-SHA256 over the exact raw request bytes before parsing JSON. Deduplicate on the CloudEvent `id` (also sent as `Idempotency-Key` and `X-Y2-Event-Id`) before performing side effects, and acknowledge a duplicate with a `2xx` response. Temporary webhook failures receive bounded retries. A paused destination requires testing before reactivation. Use the change feed to recover missed state. See [delivery recovery](https://y2.dev/docs/api/webhooks#handle-attempts-and-failures). [Authentication and errors](https://y2.dev/docs/api/authentication) [Webhook contract](https://y2.dev/docs/api/webhooks) [OpenAPI and generated types](https://y2.dev/docs/api/openapi) [Migration guide](https://y2.dev/docs/api/migration-v1-1) --- # Query the Intel API (v2) (https://y2.dev/docs/api/intel/) Find ontology incidents, entities, signals, markets, financial indicators, disclosures, and cyber graphs Intel v2 turns normalized observations into stable incidents, entities, relationships, markets, and decision signals. Use it when your integration needs to follow identity and relationships instead of processing a raw event feed. The base URL is: ``` https://api.y2.dev/api/v2 ``` Explorer investigation boards are an in-app feature. The public Intel API exposes the ontology resources that can inform an investigation, but it does not expose investigation-board CRUD endpoints. ## Choose a collection | Goal | Endpoint | Primary scope | | ------------------------------------------------------ | ------------------------------------------------------------------------ | -------------------------------------------- | | Find normalized incidents | `GET /incidents` | Depends on `category` | | Search ontology entities | `GET /entities` | `intel:explorer` | | Read a single entity | `GET /entities/{entityId}` | `intel:explorer` | | Traverse relationships | `GET /entities/{entityId}/graph` | `intel:explorer` | | Read workspace company financial history | `GET /entities/{entityId}/financial-observations` | `intel:finint` (workspace key) | | Fuse cyber and market exposure for a company | `GET /entities/{entityId}/fusion` | `intel:explorer` (workspace key) | | Record and read evidenced claims | `/ledger/*` ([Ontology Ledger](https://y2.dev/docs/api/ontology-ledger)) | `ledger:read`, `ledger:write` | | Read prediction markets | `GET /markets` | `intel:finint` | | Read financial indicators | `GET /finint` | `intel:finint` | | Screen SEC filings, insider trades, and federal awards | `GET /disclosures` | `intel:disclosures` | | Find extracted decision signals | `GET /signals` | Depends on `domain` | | Traverse a cyber-focused graph | `GET /cyber/graph` | `intel:cyber` | | Search CVEs | `GET /cyber/cves` | `intel:cyber` | | Read a CVE disclosure or retained revision | `GET /cyber/cves/{cveId}` | `intel:cyber` | | Search threat actors | `GET /cyber/actors` | `intel:cyber` | | Look up a domain's DNS footprint | `POST /cyber/dns/lookups` | `intel:cyber` (Pro and Elite, workspace key) | | Read a domain's DNS snapshot history | `GET /cyber/dns/snapshots` | `intel:cyber` (Pro and Elite, workspace key) | `GET /api/v2/changes` is the durable change feed for public intelligence resources. It uses `osint:read`, not an Intel scope. See [Integration Recipes](https://y2.dev/docs/api/integration-recipes) for a checkpointed ingestion pattern. ## List incidents Start with the narrowest category, lifecycle, severity, and time filters your application can use. `sinceMs` is a lower bound on `lastObservedAt`, expressed in Unix milliseconds. Incident timestamps answer different questions: | Field | Meaning | | ----------------- | -------------------------------------------------------- | | `occurredAt` | When the incident happened or is forecast to happen | | `firstObservedAt` | When Y2 first observed the incident | | `lastObservedAt` | When Y2 most recently observed or refreshed the incident | A forecast incident can have an `occurredAt` value years in the future while both observation timestamps reflect when Y2 received the supporting information. Use `lastObservedAt`, not `occurredAt`, as an incremental polling watermark. ``` curl --get "https://api.y2.dev/api/v2/incidents" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "category=cyber" \ --data-urlencode "severity=high" \ --data-urlencode "status=active" \ --data-urlencode "limit=50" \ --data-urlencode "fields[incidents]=title,severity,status,lastObservedAt" ``` List collections return `data`, `meta`, and `links`. Follow `links.next` until it is `null`. The cursor is opaque and bound to the request's filters. Limits are clamped to `1–500`. For incremental polling, convert the largest returned `lastObservedAt` value to Unix milliseconds and pass it on the next request: ``` curl --get "https://api.y2.dev/api/v2/incidents" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "sinceMs=1786374126243" \ --data-urlencode "fields[incidents]=title,status,occurredAt,firstObservedAt,lastObservedAt" ``` ## Drill into related context An incident or entity detail request returns its primary resource by default. Use `include` to request only the bounded related collections you need. **Incident** ``` curl --get \ "https://api.y2.dev/api/v2/incidents/inc_0123456789abcdef01234567" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "include=observations,entities,primaryPlace" \ --data-urlencode "fields[incidents]=title,severity,status,lastObservedAt" \ --data-urlencode "fields[observations]=title,severity,observedAt,geometry" ``` Supported includes are `observations`, `markets`, `entities`, `primaryPlace`, and `relatedIncidents`. **Entity** ``` curl --get \ "https://api.y2.dev/api/v2/entities/ent_0123456789abcdef01234567" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "include=relations,relatedEntities,incidents" \ --data-urlencode "fields[entities]=kind,name,aliases,updatedAt" ``` Supported includes are `relations`, `relatedEntities`, `incidents`, `markets`, `observations`, `companyIdentity`, and `financialObservations`. The last two apply to organization and vendor entities. Financial observations are scoped to the key's workspace. Sparse fieldsets use `fields[incidents]`, `fields[entities]`, `fields[markets]`, `fields[observations]`, `fields[finint]`, or `fields[signals]` as appropriate. The server always retains resource identity fields and rejects unsupported fields or includes. A request can contain at most 24 values in each projection parameter. ## Traverse a graph Use the general entity graph after resolving an `ent_...` ID from `/entities`. Its breadth-first traversal accepts `depth=0–3`, supports a comma-separated `relationKinds` filter, and is capped at 200 nodes. ``` curl --get \ "https://api.y2.dev/api/v2/entities/ent_0123456789abcdef01234567/graph" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "depth=2" \ --data-urlencode "relationKinds=affects,targets,uses" ``` For a CVE, threat actor, or malware family, `/cyber/graph` offers a cyber-specific traversal. Pass at least one of `rootCveId`, `rootActorId`, or `rootMalwareFamilyId`. Its depth is limited to `1–2`. ## Follow a company across cyber and market events Company endpoints read workspace research, so they require a workspace-bound API key and never accept x402 payment. `GET /entities/{entityId}/financial-observations` pages through the workspace's recorded financial facts for an organization or vendor, newest recorded first. Filter with `metricKey` (an index) or `factType` (applied per page, so an empty page can still carry a next cursor). Each fact keeps its reporting period, recorded time, source provenance, and, for SEC imports, the retained JSON record pointer. History reflects what Y2 retained, not complete filing coverage. `GET /entities/{entityId}/fusion` places cyber, market, supply-chain, and geopolitical events about the company and the parties on its exposure path on one timeline: ``` curl --get \ "https://api.y2.dev/api/v2/entities/ent_0123456789abcdef01234567/fusion" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "windowDays=90" \ --data-urlencode "adjacencyDays=7" ``` | Field | Meaning | | ---------------- | ------------------------------------------------------------------------------------------------------------------------------ | | `counterparties` | Suppliers, customers, parents, subsidiaries, and operated systems, from catalog ties or evidenced ledger claims (`provenance`) | | `timeline` | Dated events, newest first, each with `domain`, `path`, `provenance`, and a public `source` ID | | `undated` | Events without a source time, kept visible instead of placed at a guessed date | | `adjacencies` | A market event that followed a cyber event within `adjacencyDays`. Timing, not causation | | `topics` | Workspace topics whose subject sits on the exposure path | | `coverage` | Read budgets that were reached and what each source does not cover | See [Cyber-market fusion](https://y2.dev/docs/ontology/explanation/cyber-market-fusion) for what the view claims and what it does not. ## Screen disclosures `GET /disclosures` lists primary-source records that companies and the federal government publish: | `kind` | Source | What one row is | | --------------------- | ------------------------------------ | ------------------------------------------------------------------- | | `material_event` | SEC Form 8-K and 8-K/A | One current report, classified by its most material item | | `insider_transaction` | SEC Forms 3, 4, and 5 and amendments | One Section 16 filing with up to 25 transaction lines | | `ownership_stake` | SEC Schedule 13D and 13D/A | One beneficial-ownership filing with its reporting persons | | `federal_award` | USAspending.gov | One contract action of $5M or more, or grant action of $10M or more | Y2 reads SEC EDGAR twice a day and USAspending once a day. Each row links to its primary record in `source.url`: the SEC filing index or the USAspending award page. Filter with `kind`, `category`, `severity`, `entityId`, `q`, `minAmountUsd`, and `sinceMs`. `sort=amount` orders insider values or award obligations largest first and requires `kind`. ``` curl "https://api.y2.dev/api/v2/disclosures?kind=insider_transaction&category=buy&sort=amount&limit=10" \ -H "Authorization: Bearer $Y2_API_KEY" ``` Every party is an ontology entity. Y2 matches an issuer, insider, or filer by SEC CIK and a recipient by SAM Unique Entity ID first. A new name is compared with existing entities by governed entity resolution before Y2 creates an entity, so a company that files with the SEC and receives federal contracts is one entity. A party that cannot be linked without risking a false merge has `entity: null`. Disclosures also add relationships to the graph: - An officer or director is `part_of` the issuer. - A contract recipient `supplies` the awarding office. A grant's awarding office `supplies` the recipient. An office is `part_of` its department. Each relationship records when it was first and last evidenced and cites the disclosure's observation in `provenance.observation`. Use `entityId` to list every disclosure that names a company, insider, or agency. `occurredAt` is the event, transaction, or action date. `publishedAt` is the SEC filing date or the award action date. Both are provider calendar dates at midnight UTC. ## Read CVE disclosures `GET /cyber/cves` keeps the entity list contract: stable `ent_...` identifiers, `data`, `meta`, `links`, cursor pagination, and `q` search. Each row adds a compact disclosure summary and links to its detail, public page, and share card. Use `fields[entities]` to select the fields your integration needs. The `cve` summary includes source status, primary CVSS, KEV membership, EPSS, remediation status, and affected-product/reference counts. `summaryAvailable: false` means the compact summary has not been projected yet; full detail may still be available. Existing catalog attributes remain present during collection updates. ``` curl --get "https://api.y2.dev/api/v2/cyber/cves" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "q=CVE-2021-27460" \ --data-urlencode "limit=10" curl "https://api.y2.dev/api/v2/cyber/cves/CVE-2021-27460" \ --header "Authorization: Bearer $Y2_API_KEY" ``` The detail contains source-specific CVSS metrics, affected products and version ranges, remediation, references, weaknesses, KEV, EPSS, SSVC, exploit references, and source retrieval times when collected. It reads the same normalized public disclosure as the Cyber UI and public page. Private workspace notes and investigations are excluded. The detail returns `data.type: "cve_disclosure"` and the same `data.id` as the ontology entity. Its numeric dates use Unix milliseconds, matching public JSON. Summary dates and `RecordSource.retrievedAt` use RFC 3339 as in other v2 lists. Pass `revision=<64-character SHA-256>` to retrieve a retained historical disclosure. An unknown CVE or revision returns `404`; an invalid identifier or revision returns `400`. Rejected CVEs remain readable with their status. A missing assessment or fix means the retained sources do not report one. Both endpoints retain the `intel:cyber` scope and documented x402 access. Reading a CVE does not trigger provider collection. See [CVE disclosures](https://y2.dev/docs/osint/cve-disclosures) for collection coverage, source authority, and ontology behavior. ## Look up DNS footprints `POST /cyber/dns/lookups` returns the DNS footprint of a domain from DNSDumpster. The footprint contains A, MX, NS, CNAME, and TXT records. Each address includes its network operator (ASN), netblock, country, reverse DNS, and HTTP and TLS banners. Send `domain`. Or send `entityId` to use the official website that Y2 records for that entity. ``` curl -X POST "https://api.y2.dev/api/v2/cyber/dns/lookups" \ -H "Authorization: Bearer $Y2_API_KEY" \ -H "Content-Type: application/json" \ -d '{"domain":"example.com"}' ``` A snapshot younger than 14 days answers every caller with `outcome: "reused"`. A reused snapshot does not use the workspace allowance. Otherwise Y2 takes a new snapshot with `outcome: "fetched"`. A new snapshot uses one monthly DNS lookup. Pro includes 5. Elite includes 1,000. `usage` reports the allowance after the request. A failed provider call returns the lookup to the allowance. The response is `429` or `503`. Retry after the `Retry-After` value. Each snapshot keeps `receivedAt`, the time when the answer arrived. `truncated` is `true` when the provider has more than the 50 A records that it returned. `GET /cyber/dns/snapshots?domain=` lists stored snapshots, newest first. It never uses the allowance. Snapshots add the domain, hosts, addresses, netblocks, and network operators to the graph. `ontology.linkedEntities` lists known organizations whose official website is the domain. See [DNS footprints in the graph](https://y2.dev/docs/ontology/explanation/dns-footprints) for each entity and relationship. Lookups need a workspace-bound key. They are not available through x402. With the [local MCP server](https://y2.dev/docs/api/mcp-reference#openapi-tools), call `createDnsLookupV2` or `listDnsSnapshotsV2` through `y2_call_api`. ## Select the correct scope | Scope | Accepted operations | | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | `intel:explorer` | Entities, entity details and graphs, cyber-market fusion, unfiltered incidents, and general signals | | `intel:finint` | Markets, FININT indicators, company financial history, non-cyber categorized incidents, and markets or supply-chain signals | | `intel:cyber` | Cyber graph, CVE lists and disclosures, actor lists, cyber incidents, cyber or technology signals, and DNS footprints (Pro and Elite) | | `intel:disclosures` | SEC 8-K, Form 3/4/5, and Schedule 13D filings and federal contract and grant awards (Pro and Elite) | When `/signals` has no `domain` filter, any Intel scope is accepted. Other signal domains require `intel:explorer`. Authenticated requests can receive authorized private and workspace rows. X402 callers receive global and community rows only. New API keys with Intel scopes require Pro or Elite. Existing Lite API keys remain valid under the current grace policy, while Lite retains its in-app Intel surfaces. See [Plans and Limits](https://y2.dev/docs/plans) for the complete product-entitlement matrix. ## Authenticate or pay per request Intel endpoints accept a scoped key or their documented [x402 payment flow](https://y2.dev/docs/api/x402). Company financial history and fusion require a workspace-bound key because they read workspace research. A request without `Authorization` begins with `402 Payment Required`. Retry it with the signed payment header described by that endpoint. Do not send both a bearer key and x402 payment for the same request. ## Intel v2 or OSINT v1? | Use Intel v2 when you need | Use [OSINT v1](https://y2.dev/docs/api/osint) when you need | | ------------------------------------ | ----------------------------------------------------------- | | Stable entity and incident identity | Broader normalized event feeds | | Relationships and graph traversal | Source-health and source-specific surfaces | | Bounded related-resource expansion | Country, regional, and geospatial feeds | | Semantic FININT and decision signals | NDJSON or GeoJSON representations where documented | ## Endpoint reference [Incidents](https://y2.dev/docs/api/reference/intel/listIncidentsV2) [Entities](https://y2.dev/docs/api/reference/intel/listEntitiesV2) [Markets](https://y2.dev/docs/api/reference/intel/listMarketsV2) [FININT](https://y2.dev/docs/api/reference/intel/listFinintIntelV2) [Signals](https://y2.dev/docs/api/reference/intel/listSignalsV2) [Cyber graph](https://y2.dev/docs/api/reference/intel/getCyberGraphV2) [CVE search](https://y2.dev/docs/api/reference/intel/listCVEsV2) [CVE disclosure](https://y2.dev/docs/api/reference/intel/getCVEDisclosureV2) [Company financial history](https://y2.dev/docs/api/reference/intel/listCompanyFinancialObservationsV2) [Cyber-market fusion](https://y2.dev/docs/api/reference/intel/getEntityFusionV2) [API Workbench](https://y2.dev/docs/api/workbench) [Authentication](https://y2.dev/docs/api/authentication) [OpenAPI](https://y2.dev/docs/api/openapi) [Agent integration context](https://y2.dev/docs/api/agentic-dx) --- # Connect Y2 through MCP (https://y2.dev/docs/api/mcp/) Connect Y2 Intel to an assistant with a hosted, read-only connection Connect Claude, ChatGPT, or another assistant to one Y2 workspace. You sign in to Y2; no API key is needed. For a local developer tool, use [the local MCP server](https://y2.dev/docs/api/mcp-local). ## Before you begin You need a Y2 account in a workspace whose plan includes connected intelligence access. Your assistant must support custom remote MCP connections. Its administrator may need to enable this feature. ## Connect 1. In your assistant's connector settings, add **Y2 Intel** with this server URL: ``` https://mcp.y2.dev/mcp ``` 2. Sign in to Y2 when prompted. Check that the assistant shown is the one you are connecting. 3. Choose the workspace and the permissions to share, then select **Allow selected access**. 4. Return to your assistant and ask: “List the Y2 Intel profiles in my connected workspace.” The assistant lists the workspace's profiles. An empty list means the workspace has no profiles you can access. Assistants that support MCP Apps show profile cards, signal feeds, and maps. Others show text results. ## Permissions | Permission | What the assistant can read | Tools | | --------------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------ | | Intelligence profiles | Profiles, monitoring topics, and profile details | `y2_list_profiles`, `y2_get_profile`, `y2_render_profile` | | Reports and sources | Existing reports and citations | `y2_list_reports`, `y2_get_report` | | Maps and regional events | Regional intelligence and event map layers | `y2_query_map`, `y2_render_map` | | Entities and intelligence signals | Entity details, relationships, and all signals | `y2_list_entities_v2`, `y2_get_entity_v2`, `y2_list_signals_v2`, `y2_render_signals` | | Financial intelligence signals | Market and supply chain signals | `y2_list_signals_v2`, `y2_render_signals` | | Cyber intelligence signals | Cyber and technology signals | `y2_list_signals_v2`, `y2_render_signals` | `y2_connection_info` shows the connected workspace and its permissions. It needs no permission. The connection is read-only. It cannot edit profiles, generate reports, send messages, or make purchases. Each call checks your permissions and current workspace access. A connection cannot read another workspace. ## Disconnect or change access [Settings → Connections](https://y2.dev/app/settings/connections) lists your connections, their permissions, and when they expire. Select **Disconnect** to stop access immediately. Connections expire after 30 days. To change the workspace or permissions, disconnect, then connect again from your assistant. Information shared with the assistant Data the assistant reads is shared with its provider under the provider's policies. Disconnecting stops future access but does not delete copies the provider already has. The assistant never receives your password or a Y2 API key. See the [Privacy Policy](https://y2.dev/privacy). ## Troubleshoot a connection | Problem | Action | | --------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | The connection uses `y2-intel-mcp.managed-services.workers.dev` | That address is retired. Remove Y2 Intel, then add it with `https://mcp.y2.dev/mcp` | | Sign-in completes but the connection fails | Connect again in the same browser and finish within 10 minutes | | A permission is missing | Ask your workspace administrator about your access | | The connection expired or was disconnected | Connect again from your assistant | For other issues, email with the assistant name and error text. Do not include tokens or credentials. [Local MCP server](https://y2.dev/docs/api/mcp-local) [Local MCP reference](https://y2.dev/docs/api/mcp-reference) --- # Configure the Local MCP Server (https://y2.dev/docs/api/mcp-local/) Connect a local MCP client to Y2 documentation and API tools Run `@y2-intel/mcp` on your machine to give a coding agent or MCP client Y2's documentation and API tools. This guide uses version `0.4.0`. To connect Claude or ChatGPT without an API key, use [the hosted connection](https://y2.dev/docs/api/mcp). ## Before you begin - Node.js 24.22.1 or later. Earlier releases have known security vulnerabilities. Check your version with `node -v`. - An MCP client that supports local stdio servers. - A Y2 API key for authenticated tools. [Create a key](https://y2.dev/docs/api/create-key) with only the scopes you need. Documentation and OpenAPI tools work without a key. ## Add the server **Codex** Run this from a shell where `Y2_API_KEY` is set: ``` codex mcp add y2 --env Y2_API_KEY="$Y2_API_KEY" -- npx -y @y2-intel/mcp@0.4.0 ``` Run `codex mcp list` to confirm. Codex saves the key in its configuration file, so protect that file. **Claude Code** Run this from a shell where `Y2_API_KEY` is set: ``` claude mcp add --transport stdio --env Y2_API_KEY="$Y2_API_KEY" y2 \ -- npx -y @y2-intel/mcp@0.4.0 ``` Run `claude mcp get y2` to confirm. **Claude Desktop** Add the server to the client's MCP configuration, then restart the client: ``` { "mcpServers": { "y2": { "command": "npx", "args": ["-y", "@y2-intel/mcp@0.4.0"], "env": { "Y2_API_KEY": "y2_..." } } } } ``` This file stores the key in plain text. Restrict access to it. Launch the server as a local stdio process: ``` Y2_API_KEY="$Y2_API_KEY" npx -y @y2-intel/mcp@0.4.0 ``` Provide `Y2_API_KEY` through the client's environment or secret settings. The client must keep stdin and stdout connected to the process. Omit `Y2_API_KEY` to use only documentation and OpenAPI tools. Keep credentials out of prompts and tool arguments. ## Check the connection Ask your client to call `y2_list_reports`. With a `reports:read` key, it returns a report list, which can be empty. To test the server outside a client, list its tools with the MCP Inspector: ``` npx -y @modelcontextprotocol/inspector --cli npx -y @y2-intel/mcp@0.4.0 \ -- \ --method tools/list ``` Version 0.4.0 exposes 62 tools by default. ## Call any API operation Use `y2_call_api` for operations without a dedicated tool: 1. Call `y2_list_api_operations` to find the `operationId`. 2. Call `y2_get_openapi_operation` to read its parameters and schema. 3. Call `y2_call_api` with the operation ID and inputs. Example `y2_call_api` arguments: ``` { "operationId": "listReports", "parameters": { "limit": 10 } } ``` The API key must include the operation's scopes. Write operations are off by default The server hides write tools and `y2_call_api` rejects write operations unless `Y2_MCP_ENABLE_WRITE_TOOLS=true`. Once enabled, the key's scopes are the only limit, so use a read-only key for read-only work. See [MCP reference](https://y2.dev/docs/api/mcp-reference) for configuration, optional tools, and troubleshooting. --- # Local MCP Reference (https://y2.dev/docs/api/mcp-reference/) Tools, environment variables, and errors for the local Y2 MCP server This reference covers `@y2-intel/mcp` version `0.4.0`. The package is released separately from the platform. Inspect `tools/list`, `resources/list`, and `prompts/list` for your installed version. Follow [local MCP setup](https://y2.dev/docs/api/mcp-local) to connect a client. ## OpenAPI tools | Tool | Purpose | Authorization | | -------------------------- | ---------------------------------------------- | ------------------------- | | `y2_list_api_operations` | List operation IDs, methods, and paths | None | | `y2_get_openapi_operation` | Read one operation's parameters and schemas | None | | `y2_call_api` | Call an operation using its OpenAPI definition | Operation-specific scopes | ## Typed read tools | Group | Count | Resources | | -------------------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Reports | 7 | Reports, signals, graphs, text, audio, and transcripts | | News | 3 | Items, recaps, and feeds | | OSINT | 18 | Events, country intelligence, maps, feeds, and source status | | Intel v2 | 17 | Incidents, entities, graphs, markets, indicators, company financials, cyber-market fusion, signals, cyber, DNS snapshot history, public disclosures, changes, and knowledge | | Evidence ledger | 5 | Ledger subjects, point-in-time folds, STIX 2.1 export, sealed records, and seal verification (`ledger:read`) | | Account and workflow | 8 | Profiles, webhooks, Projects, Automations, and runs | | Public receipts | 1 | `y2_get_x402_receipt` | Each authenticated call needs the underlying API operation's scope. Use `tools/list` for exact tool names and input schemas. ## Resources and prompts | Type | Names | | --------- | ---------------------------------------------------------------------- | | Resources | `y2://docs/index`, `y2://docs/full`, `y2://openapi`, `y2://quickstart` | | Prompts | `integrate-y2-api`, `ask-y2-brief`, `debug-y2-api-call` | ## Optional action tools `Y2_MCP_ENABLE_WRITE_TOOLS=true` adds 17 typed write tools and allows write operations through `y2_call_api`: - Profile create, update, patch, and delete - Project create and patch - Automation create, patch, and run - Webhook create, update, delete, and test - Subscription delivery update - Ledger subject open and record append (`ledger:write`) - Domain DNS lookup (`intel:cyber`), which uses one monthly workspace lookup for each new snapshot Each tool requires its operation's scope. `Y2_MCP_ENABLE_AGENT=true` adds `y2_ask_agent` and the OpenAI-compatible `y2_create_chat_completion`. Both require `agent:y2`. Agent Y2 can change resources Agent Y2 can use tools allowed by the key's scopes and plan. Enable it only when the integration needs those actions. ## Configuration Prop Type Both flags accept `true` or `1`. Restart the client after changing them. Change base URLs only for a Y2-controlled test or development environment. ## Troubleshooting | Symptom | Action | | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | Server exits immediately | Check that `node -v` is 24.22.1 or later. Then run `npx -y @y2-intel/mcp@0.4.0` in a terminal and read stderr | | Client does not show Y2 | Confirm that the configuration was saved. Restart the client | | `401` | Check the key for missing, invalid, revoked, or expired credentials | | `403` | Check the key's scopes, workspace access, and plan. Edit its scopes if needed | | `429`, `502`, `503`, or `504` | The server retries twice and honors `Retry-After`. Check the returned error after retries stop | | Agent tool is missing | Set `Y2_MCP_ENABLE_AGENT=true`. Restart the client and inspect `tools/list` | | Typed write tool is missing, or `y2_call_api` rejects a write | Set `Y2_MCP_ENABLE_WRITE_TOOLS=true`. Restart the client and inspect `tools/list` | | Agent credit error | Check the workspace Agent Y2 balance and plan. Agent Y2 does not use x402 | --- # Migrate to Canonical API Responses (https://y2.dev/docs/api/migration-v1-1/) Adopt public IDs, pagination, representations, mutation preconditions, and CloudEvents Use this guide to migrate a client that depends on legacy persistence-shaped fields or pagination behavior. The v1 routes remain at `/api/v1`. Their response contract was widened additively. Intel v2 routes under `/api/v2` emit canonical public DTOs. Read `X-Y2-API-Version` and `X-Y2-Schema-Version` to identify the response contract. See [current version headers](https://y2.dev/docs/api/responses#version-and-diagnostic-headers). ## Migration checklist ### Capture current client fixtures Save representative success, empty, error, and paginated responses before changing parsers. Include response headers in the fixtures. ### Store public resource IDs Replace saved Convex document IDs with the typed IDs emitted in current responses. Treat every ID as opaque. ### Adopt canonical fields Read RFC 3339 semantic timestamps, typed outcome rows, Problem Details, and the documented missing-value states. Stop creating new dependencies on deprecated aliases. ### Replace collection traversal Follow `links.next` or return `meta.page.nextCursor` unchanged. Do not infer another page from the number of rows. ### Harden writes and delivery consumers Add idempotency keys, ETag preconditions, CloudEvent deduplication, and a durable change-feed checkpoint where those features apply. ## Replace persistence IDs with public IDs | Resource | Prefix | | ----------------------- | ------ | | Report | `rpt_` | | Profile | `prf_` | | Subscription | `sub_` | | Webhook | `whk_` | | Observation | `obs_` | | Incident | `inc_` | | Entity | `ent_` | | Market | `mkt_` | | Financial indicator row | `fin_` | | Place | `plc_` | | Relation | `rel_` | | Signal | `sig_` | | Source | `src_` | Legacy Convex IDs remain accepted on migrated resource paths during the compatibility window, but responses and webhooks emit public IDs. Store the exact ID Y2 returns. Do not derive IDs, parse the hash, or depend on its current length. ## Traverse collections by link or cursor Canonical collections return `data`, `meta`, and `links`. `meta.pageCount` is the number of rows in the current page, not the collection total. A total exists only where a response explicitly defines `totalCount`. ``` let url: string | null = "https://api.y2.dev/api/v2/incidents?limit=100"; while (url) { const response = await fetch(url, { headers: { Authorization: `Bearer ${process.env.Y2_API_KEY}` }, }); if (!response.ok) throw await response.json(); const page = await response.json(); await persist(page.data); url = page.links.next ? new URL(page.links.next, "https://api.y2.dev").toString() : null; } ``` Cursors are opaque and filter-bound. Never edit them or reuse one with a different filter shape. Changing `limit` does not change the filter shape, but following `links.next` is the safest default because it preserves the server's continuation parameters. ## Distinguish omitted, null, and empty | State | Meaning | | --------------- | ------------------------------------------------------------------------ | | Field omitted | Optional enrichment or bounded relation was not requested or not present | | Field is `null` | The schema permits the field, but its value is unknown or unavailable | | Field is `[]` | The relationship or outcome set is known and empty | Numeric measurements include their documented unit, currency, or provider basis. Prediction outcomes are objects with `label` and a `0–1` `probability`. Do not parse JSON-encoded outcome strings in a new client. ## Replace deprecated compatibility fields | Surface | Deprecated | Canonical replacement | | ------------------------- | ------------------- | ------------------------------ | | Regional OSINT query | `since` | `datetime={RFC3339 start}/..` | | Regional OSINT query | `until` | `datetime=../{RFC3339 end}` | | Profile report metadata | `reportGeneratedAt` | `reportGeneratedAtISO` | | Profile delivery metadata | `generatedAt` | `generatedAtISO` | | Report audio metadata | `duration` | `durationSeconds` | | Collection metadata | `meta.count` | `meta.pageCount` for this page | The regional `since` and `until` parameters are inclusive epoch-millisecond bounds. Do not combine either one with `datetime`. The compatibility fields remain additive on v1 for the published migration window. New integrations should use only the canonical fields. ## Parse Problem Details JSON failures use `application/problem+json` with RFC 9457-style top-level fields: `type`, `title`, `status`, `detail`, `instance`, `code`, `requestId`, and `resolution`. Read `resolution` for a safe next step. No nested compatibility error object is returned. ``` if (!response.ok) { const problem = await response.json(); logger.error({ code: problem.code, status: problem.status, requestId: problem.requestId, resolution: problem.resolution, }); throw new Error(problem.detail); } ``` Retry only when the status and response headers indicate a retryable rate-limit or availability failure. A validation, authentication, scope, idempotency, or precondition failure requires a request change. ## Request specialized representations explicitly - Send `Accept: text/markdown` to a report endpoint that advertises canonical Markdown. - Send `format=ndjson` or `Accept: application/x-ndjson` only to collections whose OpenAPI operation advertises NDJSON. - Send `format=geojson` or `Accept: application/geo+json` only to spatial operations that advertise a GeoJSON FeatureCollection. Representation support is endpoint-specific Do not infer support from another collection. For example, `/api/v1/osint/finint` offers NDJSON, while `/api/v2/finint` currently returns JSON only. GeoJSON follows WGS 84 and uses `[longitude, latitude]`. For `/api/v1/osint/regional`, `bbox` is `west,south,east,north`. `datetime` accepts an RFC 3339 instant or `start/end` interval, with `..` as an open boundary. ## Make profile and webhook writes safe `POST /profiles` and `POST /webhooks` return `201`, the created resource, `Location`, and `ETag`. Both accept an `Idempotency-Key` containing 8–200 allowed characters. The key is scoped to the tenant and operation and retained for 24 hours. - Replaying the same key with the same canonical JSON body returns the original resource. - Reusing the key with a different body returns `409 IDEMPOTENCY_CONFLICT`. - `PUT` replaces mutable state. `PATCH` changes only supplied fields. - Updates and deletes accept `If-Match`. A stale value returns `412 PRECONDITION_FAILED` with the current `ETag`. - A successful delete returns `204` with no JSON body. ## Migrate webhook consumers to CloudEvents Report notifications use `Content-Type: application/cloudevents+json` and event type `dev.y2.report.generated.v1`. The body contains compact report and subscription IDs, a bounded summary, intelligence counts, audio availability, and API links. It excludes report HTML, storage IDs, model names, prompts, and generation costs. Deduplicate on the CloudEvent `id`, also sent as `Idempotency-Key` and `X-Y2-Event-Id`. When the same logical event is attempted again, its event ID and body remain stable. `X-Y2-Attempt-Id`, `X-Y2-Attempt`, and `X-Y2-Timestamp` identify the network attempt. Verify `X-Y2-Signature` over the exact raw bytes before parsing JSON. Recover paused webhook delivery Y2 retries temporary delivery failures within a fixed attempt limit. Paused destinations need a successful test before reactivation. See [webhook recovery](https://y2.dev/docs/api/webhooks#handle-attempts-and-failures). Use the change feed to recover missed resource state. ## Recover with the change feed `GET https://api.y2.dev/api/v2/changes` returns append-only resource changes from an exclusive watermark. Process each page, commit every resource update or tombstone, and persist `meta.watermark` as the final write. Deleted resources have `changeType: "deleted"` and `tombstone: true`. Authenticated keys receive global intelligence changes plus their user or workspace changes. Anonymous x402 requests receive global changes only. The current feed has no retention expiry, but consumers should still repair continuously instead of treating it as a permanent archive guarantee. [Integration recipes](https://y2.dev/docs/api/integration-recipes) [Authentication and errors](https://y2.dev/docs/api/authentication) [Webhook contract](https://y2.dev/docs/api/webhooks) [OpenAPI](https://y2.dev/docs/api/openapi) --- # Build with the News API (https://y2.dev/docs/api/news/) Discover feeds, page direct-source news items, and retrieve AI-generated topic recaps Use the News API to add current narrative context to dashboards, alerts, reports, or intelligence pipelines. The API reads Y2's cached direct-source terminal data. It does not run a new source fetch for each request. ## Choose an output | Need | Operation | | ---------------------------------- | ------------------------- | | Discover the current topic catalog | `GET /api/v1/news/feeds` | | Page individual source items | `GET /api/v1/news` | | Read a synthesized topic recap | `GET /api/v1/news/recaps` | The News base URL is: ``` https://api.y2.dev/api/v1/news ``` ## Authenticate Send a bearer key with `news:read`: ``` curl "https://api.y2.dev/api/v1/news/feeds" \ --header "Authorization: Bearer $Y2_API_KEY" ``` All three News operations also support [x402 pay-per-request](https://y2.dev/docs/api/x402). Without a bearer key, the first request returns `402 Payment Required`. Retry with the payment header described in that response. Do not send a bearer key and x402 payment together. ## Discover feed IDs Call `GET /feeds` instead of hard-coding the catalog. The current registry contains 40 topics grouped across crypto, AI and technology, macro and finance, politics and geopolitics, industry, and regional desks. ``` curl "https://api.y2.dev/api/v1/news/feeds" \ --header "Authorization: Bearer $Y2_API_KEY" ``` Each `data` row contains: | Field | Use | | --------------------- | ------------------------------------------------------- | | `id` | Machine-readable value for the `topics` query parameter | | `name`, `shortLabel` | Full and compact display labels | | `description` | Human-readable feed purpose | | `group`, `groupLabel` | Picker grouping metadata | | `color` | Current UI gradient classes. Do not use as identity | | `ingestOntology` | Whether eligible items can enter Y2's ontology pipeline | `meta.defaultTopics` currently contains `crypto`, `geopolitics`, `macro`, `equities`, `ai`, and `energy`. Omitting `topics` from item or recap requests uses that set. ## Page news items Pass one or more comma-separated feed IDs. The server merges matching caches, removes duplicate source items by their upstream ID, sorts newest first, and returns up to 200 rows. ``` curl --get "https://api.y2.dev/api/v1/news" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "topics=cyber,semiconductors,ai" \ --data-urlencode "limit=100" ``` The JSON response has `data`, `meta`, and `links`. Follow `links.next` until it is `null`. Do not edit the opaque cursor or reuse it with different topic filters. A canonical news item includes: Prop Type Treat source URL, publisher, language, and retrieval metadata as nullable. A source record can be identified even when the provider did not supply every attribution field. ## Stream rows as NDJSON For a warehouse or line-oriented processor, request NDJSON. Each non-empty line is one canonical news item. Continuation moves to `X-Y2-Next-Cursor` because the body contains rows only. ``` curl --get "https://api.y2.dev/api/v1/news" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Accept: application/x-ndjson" \ --data-urlencode "topics=geopolitics,energy" \ --data-urlencode "limit=200" ``` You can also send `format=ndjson`. Preserve the original topics and limit when sending the next cursor. ## Retrieve topic recaps Use recaps when an application needs synthesis rather than individual items. Supported timeframes are `12h`, `24h`, `3d`, and `7d`. The default is `12h`. ``` curl --get "https://api.y2.dev/api/v1/news/recaps" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "topics=macro,equities,rates_fx" \ --data-urlencode "timeframe=24h" ``` `data` is an object keyed by topic ID. A requested topic can be absent when no valid cached recap exists for that topic and timeframe. Use `meta.topics` and `meta.timeframe` to retain request context. Do not treat a missing topic as an empty recap. Cache initialization `/news` and `/news/recaps` can return `503 CACHE_NOT_READY` before their respective caches have any data. Retry with backoff. A successful empty or partially populated recap object means the cache exists but not every requested topic has a current recap. ## Combine News with structured intelligence News items are narrative observations. Use [OSINT v1](https://y2.dev/docs/api/osint) for broader normalized event, country, geospatial, and source-health surfaces. Use [Intel v2](https://y2.dev/docs/api/intel) when you need stable incidents, entities, relationships, FININT, or extracted decision signals. [List news items](https://y2.dev/docs/api/reference/news/listNews) [List recaps](https://y2.dev/docs/api/reference/news/listRecaps) [List feeds](https://y2.dev/docs/api/reference/news/listFeeds) [News product guide](https://y2.dev/docs/news) [Integration recipes](https://y2.dev/docs/api/integration-recipes) [API Workbench](https://y2.dev/docs/api/workbench) [Authentication](https://y2.dev/docs/api/authentication) --- # Ontology Ledger API (https://y2.dev/docs/api/ontology-ledger/) Open subjects, append evidenced records, fold at a record time and a valid time, export STIX 2.1, and verify the seal The ledger API reads and writes your workspace's passive entity ledger. It requires a **workspace-bound** API key and does not accept x402 payment. For the concepts, start with [Ontology and Cyber-Market Fusion](https://y2.dev/docs/ontology). The base URL is: ``` https://api.y2.dev/api/v2/ledger ``` ## Operations | Goal | Operation | Scope | | ------------------------------------------------ | ------------------------------------------------ | -------------- | | List subjects, optionally anchored to one entity | `GET /subjects?entityId=ent_…` | `ledger:read` | | Open a subject, optionally anchored | `POST /subjects` | `ledger:write` | | Fold one subject at the requested clocks | `GET /subjects/{subjectId}?recordedAt=&validAt=` | `ledger:read` | | Export one subject as STIX 2.1 | `GET /subjects/{subjectId}/stix` | `ledger:read` | | Export sealed lines | `GET /records?afterSeq=&limit=` | `ledger:read` | | Append a designator, observation, or claim | `POST /records` | `ledger:write` | | Verify the seal over a window | `GET /verify?afterSeq=&limit=` | `ledger:read` | Writes also require an owner, admin, or member role for the key's user. ## Append a record `POST /records` takes one record. The `kind` must match the payload key: **Observation** ``` { "kind": "observation", "observation": { "method": "public-registry", "sourceGrade": "primary", "sourceUrl": "https://filings.example/northwind/annual", "retrievedAt": "2026-06-01T11:40:00Z", "excerpt": "Northwind relies on Contoso for fulfillment.", "collector": "filings-sync" } } ``` `contentHash` is computed from the excerpt. Send it only when the excerpt is absent and `archiveUrl` holds the hashed content. Send `retrievedAt` when you fetched the page earlier. Omitted on a retrieval, it defaults to the time the line is recorded. **Designator** ``` { "kind": "designator", "designator": { "kind": "external-id", "namespace": "sec-cik", "value": "320193" } } ``` Values are canonicalized: this CIK is stored as `0000320193`. An existing designator with the same key is returned with `200` and `created: false`. **Claim** ``` { "kind": "claim", "claim": { "predicate": "supplies", "from": "sbj_…supplier", "to": "sbj_…issuer", "confidence": 70, "verification": "located", "validFrom": "2025-12-31T00:00:00Z", "evidenceRefs": ["obv_…"], "note": "The issuer's own filing names the supplier." } } ``` Send `supersedes` with the current head's `claimId` for every line after a claim key's first. Send an `Idempotency-Key` header to make a retry safe: a replay returns the original record with `200`. Reusing a key with a different body returns `409 IDEMPOTENCY_CONFLICT`. ## Handle rule failures A record that breaks a ledger rule is rejected before anything is written. `detail` lists each rule code and message. | Status | When | | ---------------------- | -------------------------------------------------------------------------------- | | `409 CONFLICT` | `assertion.chain`: the line does not supersede the current head of its claim key | | `400 VALIDATION_ERROR` | Any other rule, such as `assertion.verification` or `designator.value` | | `404 NOT_FOUND` | The anchored entity or subject does not exist | | `403 FORBIDDEN` | Personal key, missing role, or suspended seat | On `409`, fold the subject again to read the current head, then retry with `supersedes` set to it. ## Keep a copy in sync Page `GET /records` from `afterSeq=0` and store each `line` verbatim. Resume from `meta.nextAfterSeq`. Because the log is append-only and sealed, a synced copy stays valid, and the offline checker can prove it matches what Y2 recorded. See [Export STIX and verify the seal](https://y2.dev/docs/ontology/how-to/export-and-verify). ## Read the fused view Cyber-market fusion is an entity operation in the [Intel API](https://y2.dev/docs/api/intel): `GET /api/v2/entities/{entityId}/fusion` with `intel:explorer`. It uses the ledger's anchored subjects and supply ties to build the exposure path. ## Endpoint reference [Ontology Ledger operations](https://y2.dev/docs/api/reference/ontology-ledger) [Cyber-market fusion](https://y2.dev/docs/api/reference/intel/getEntityFusionV2) [Ledger record format](https://y2.dev/docs/ontology/reference/ledger-format) [Authentication](https://y2.dev/docs/api/authentication) --- # Use the OpenAPI Contract (https://y2.dev/docs/api/openapi/) Download the API specification and generate a client Use Y2's OpenAPI 3.1 document to inspect operations or generate a client. The [endpoint reference](https://y2.dev/docs/api/reference) uses the same document. ## Get the specification | Format | URL | | ------ | --------------------------------- | | YAML | `https://y2.dev/api/openapi.yaml` | | JSON | `https://y2.dev/openapi.json` | [Download the YAML specification](https://y2.dev/api/openapi.yaml). ## Compose the correct request URL | Operation path | Server | Complete URL | | ------------------- | --------------------------- | ------------------------------------- | | `/reports` | `https://api.y2.dev/api/v1` | `https://api.y2.dev/api/v1/reports` | | `/api/v2/incidents` | `https://api.y2.dev` | `https://api.y2.dev/api/v2/incidents` | Use an operation-level or path-level `servers` value before the document-level value. Do not add `/api/v1` to a path that starts with `/api/v2`. ## Import into an API client ### Import the specification Import `https://y2.dev/api/openapi.yaml` into a client that supports OpenAPI 3.1. Check the selected operation's server. ### Add a credential [Create a scoped key](https://y2.dev/docs/api/authentication#create-a-key). Store it in the client's secret or environment settings. Set the authorization header to `Bearer {{Y2_API_KEY}}`. Keep the key out of exported collections. ### Run a read request Start with a GET operation and a small `limit`. Check the status, body, and [response headers](https://y2.dev/docs/api/responses#version-and-diagnostic-headers). ## Generate TypeScript types ``` npx openapi-typescript https://y2.dev/api/openapi.yaml \ --immutable \ --alphabetize \ --output src/y2-api.d.ts ``` The command creates `src/y2-api.d.ts`. See [Build a TypeScript Client](https://y2.dev/docs/sdks/typescript) for a complete request. For other clients, choose an OpenAPI 3.1 generator that supports operation-level servers. Check its handling of errors, streaming, NDJSON, GeoJSON, and x402. SSE and payment flows can require additional transport code. ## Y2 extensions Prop Type The `security` array defines authentication alternatives. Agent Y2 accepts bearer keys only. Operations with an empty security alternative and `x-x402` start payment without `Authorization`. Receipt lookup is public. [Endpoint reference](https://y2.dev/docs/api/reference) [Client guides](https://y2.dev/docs/sdks) [x402 payments](https://y2.dev/docs/api/x402) --- # Query the OSINT API (https://y2.dev/docs/api/osint/) Read normalized events, country intelligence, geospatial feeds, source health, and FININT The OSINT API exposes source-oriented Situation Room data as canonical public resources. Use it for normalized event feeds, geospatial observations, country surfaces, provider health, prediction markets, transport and security feeds, or financial indicators. The base URL is: ``` https://api.y2.dev/api/v1/osint ``` ## Choose an endpoint ### Events and geography | Goal | Endpoint | Useful filters | | ------------------------------------ | ---------------- | ---------------------------------------------------------------- | | List normalized threat events | `GET /events` | `category`, `severity` | | Load only geolocated map events | `GET /map` | `region` | | Compose regional and spatial filters | `GET /regional` | `q`, `region`, `countryCode`, `sourceType`, `bbox`, radius, time | | Read report-extracted events | `GET /y2-events` | `category`, `severity`, `countryCode` | ### Country intelligence | Goal | Endpoint | | ----------------------------------------------------------- | ------------------------------------------ | | Periodically generated intelligence brief | `GET /countries/{countryCode}/brief` | | Primary stock index and weekly change | `GET /countries/{countryCode}/markets` | | Country-linked prediction markets | `GET /countries/{countryCode}/predictions` | | Recent news and report observations attributed to a country | `GET /countries/{countryCode}/news` | | Country Conflict Indicators Index | `GET /countries/{countryCode}/cii` | Country codes are ISO 3166-1 alpha-2 values such as `US` or `UA`. ### Specialized feeds | Family | Endpoints | | --------------------- | ------------------------------------------------------------- | | Conflict and security | `/cii`, `/cyber-threats`, `/military-posture`, `/gps-jamming` | | Transport | `/aircraft`, `/vessels` | | Markets | `/prediction-markets`, `/finint` | | Operations | `/sources/status` | Aircraft feeds run on adsb.lol; GPS interference is paused `/aircraft` and `/military-posture` refresh every 15 minutes from the adsb.lol community ADS-B network (ODbL 1.0). Rows carry a `source` object, and posture covers the nine conflict theaters with calibrated thresholds. `/gps-jamming` lost its Wingbits source on October 26, 2026, and returns an empty collection with `sourceStatus: unavailable` until it is re-sourced. ## Authenticate or use x402 Every published OSINT operation accepts a bearer key with `osint:read` or its documented [x402 pay-per-request flow](https://y2.dev/docs/api/x402). ``` curl "https://api.y2.dev/api/v1/osint/events?limit=50" \ --header "Authorization: Bearer $Y2_API_KEY" ``` A request without `Authorization` begins with `402 Payment Required`. Retry it with the signed payment header described in that response. Do not send bearer and x402 credentials together. ## Search regional events `/regional` combines text, source, category, severity, region, country, time, and coordinate filters with AND semantics. Events without coordinates remain unless you request a bounding box, radius, or `requireCoordinates=true`. ``` curl --get "https://api.y2.dev/api/v1/osint/regional" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "q=port disruption" \ --data-urlencode "sourceType=rss" \ --data-urlencode "category=economic" \ --data-urlencode "bbox=-10.0,35.0,40.0,65.0" \ --data-urlencode "datetime=2026-07-01T00:00:00Z/2026-07-21T23:59:59Z" \ --data-urlencode "limit=100" ``` `q` searches title and falls back to description substrings. `bbox` is exactly `west,south,east,north` in WGS 84 and cannot cross the antimeridian. Radius search requires all three of `nearLat`, `nearLon`, and `radiusKm`. The maximum radius is 20,000 km. Use `datetime` for new integrations. It accepts an RFC 3339 instant or inclusive `start/end` interval. `..` creates an open boundary. The inclusive epoch-millisecond `since` and `until` parameters are deprecated and cannot be combined with `datetime`. ## Read country news Use a two-letter country code to retrieve recent news and report observations: ``` curl "https://api.y2.dev/api/v1/osint/countries/SA/news?limit=8" \ --header "Authorization: Bearer $Y2_API_KEY" ``` The country filter uses the observation's geographic attribution. A Saudi pipeline event can qualify for `SA`. A regional Red Sea event does not qualify merely because Saudi Arabia is mentioned or exposed to its effects. Available geographic evidence appears in `provenance.geoResolution`, including the resolution method, matched text, and related or mentioned country codes when available. These associations do not expand the country filter. Country news includes unexpired `rss`, `gdelt`, `acled`, `news_terminal`, and `y2_report` observations, excluding seismic and weather categories. Source and expiry filters apply before the page limit, so satellite detections do not consume the news window. The default `limit` is 8 and the maximum is 20. Follow `links.next` to continue. The API returns canonical observations with stable `obs_` IDs. The country card can deduplicate articles for display, so its headline count can differ from the API's observation count. The [News API](https://y2.dev/docs/api/news) serves a separate topic-feed cache and requires `news:read`. This country-news endpoint requires `osint:read`. If a country-news cursor is invalid or obsolete, the API returns HTTP 400 with `VALIDATION_ERROR`. Restart without the cursor and follow the new continuation links. Integrations carrying a cursor from before the [September country-news update](https://y2.dev/docs/changelog/2026-09#more-dependable-country-news) need to restart their collection after that rollout. A scan that exceeds its read budget returns `QUERY_TOO_BROAD`. Neither error is evidence that the country has no news. See the [endpoint reference](https://y2.dev/docs/api/reference/osint/getCountryNews) for the full response contract. ## Choose JSON, NDJSON, or GeoJSON Representation support is operation-specific and listed on each generated reference page. **JSON** JSON collection responses contain `data`, `meta`, and `links`. Follow `links.next` until it is `null`. ``` curl "https://api.y2.dev/api/v1/osint/cyber-threats?limit=100" \ --header "Authorization: Bearer $Y2_API_KEY" ``` **NDJSON** Supported collection routes return one canonical `data` row per line. Read continuation from `X-Y2-Next-Cursor`. ``` curl "https://api.y2.dev/api/v1/osint/finint?format=ndjson&limit=100" \ --header "Authorization: Bearer $Y2_API_KEY" ``` **GeoJSON** Spatial routes return an RFC 7946 FeatureCollection. Coordinates are longitude-first, and the next page is the item in `links` whose `rel` is `next`. ``` curl "https://api.y2.dev/api/v1/osint/map?format=geojson&limit=200" \ --header "Authorization: Bearer $Y2_API_KEY" ``` You can use `Accept: application/x-ndjson` or `Accept: application/geo+json` instead of `format`. Do not assume that every OSINT operation supports every representation: country briefs, country stock indices, country CII, and source status return JSON only. ## Page collections safely JSON collections expose an opaque, filter-bound cursor through `meta.page.nextCursor` and `links.next`. Specialized representations move the cursor to `X-Y2-Next-Cursor` so their body can stay representation-native. Preserve the original filters on the next request. The maximum `limit` depends on the operation: for example, `/map` allows 500, `/regional` allows 200, and country prediction pages allow 10. Use the generated reference instead of assuming one global maximum. ## Check source health before declaring absence If a feed is empty or unexpectedly stale, inspect `/sources/status`: ``` curl "https://api.y2.dev/api/v1/osint/sources/status" \ --header "Authorization: Bearer $Y2_API_KEY" ``` | Field | Meaning | | ----------------------------------- | ----------------------------------------------------------------------------------------------------------- | | `state` | `closed` normally permits fetching. `open` isolates a failing source. `half_open` is a recovery probe state | | `failureCount` | Consecutive failures. A successful fetch resets it to zero | | `lastSuccessAt`, `lastSuccessAtISO` | Last success in epoch milliseconds and RFC 3339. Nullable before any success | | `lastFailureAt`, `lastFailureAtISO` | Most recent failure in both time formats | | `lastError` | Most recent provider error when available | Live-provider circuit breakers open after five consecutive failures and permit one probe after a five-minute cooldown. A `y2_report` row represents report-enrichment health rather than a polled provider: `open` means the newest recorded enrichment error is later than the latest success. A healthy source does not prove completeness, and an empty endpoint does not prove that no real-world event occurred. Preserve source attribution and corroborate high-impact conclusions. ## OSINT v1 or Intel v2? | Use OSINT v1 when you need | Use [Intel v2](https://y2.dev/docs/api/intel) when you need | | ----------------------------------------- | ----------------------------------------------------------- | | Source-oriented normalized observations | Stable entity and incident identity | | Country and provider-specific surfaces | Relationship and graph traversal | | GeoJSON or NDJSON where advertised | Sparse semantic projections and bounded relations | | Provider health and circuit-breaker state | Intel-specific FININT, cyber, or Explorer scopes | [OSINT Endpoint Reference](https://y2.dev/docs/api/reference/osint) [Regional search](https://y2.dev/docs/api/reference/osint/listOsintRegionalEvents) [Source status](https://y2.dev/docs/api/reference/osint/listSourceStatus) [FININT indicators](https://y2.dev/docs/api/reference/osint/listFinintIndicators) [Situation Room guide](https://y2.dev/docs/osint) [Integration recipes](https://y2.dev/docs/api/integration-recipes) [News API](https://y2.dev/docs/api/news) [API Workbench](https://y2.dev/docs/api/workbench) --- # Manage Profiles through the API (https://y2.dev/docs/api/profiles/) List subscriptions, create and update owned profiles, configure delivery, and retrieve reports Profiles define recurring intelligence research: topic, schedule, status, instructions, and report configuration. Subscriptions connect a profile to a delivery method. The API represents them as separate resources. List rows contain two resources `GET /api/v1/profiles` lists active subscriptions in the API key's workspace. Every row contains `subscription` and `profile`. It is not a flat catalog of every public profile. ## Required scopes | Operation | Scope | | ------------------------------------------------------------- | ----------------- | | List subscribed profiles | `profiles:read` | | Create, replace, patch, or delete an owned profile | `profiles:write` | | Change subscription delivery or manage webhook configurations | `webhooks:manage` | Profile creation and configuration features still follow the active workspace's [plan limits](https://y2.dev/docs/plans). API write access does not bypass profile, audio, branding, workspace, or delivery entitlements. ## List subscriptions and profiles ``` curl "https://api.y2.dev/api/v1/profiles" \ --header "Authorization: Bearer $Y2_API_KEY" ``` Each row has this shape: ``` { "subscription": { "id": "sub_0123456789abcdef01234567", "profileId": "prf_0123456789abcdef01234567", "active": true, "delivery": { "method": "email", "emailAudience": "individual", "webhookId": null } }, "profile": { "id": "prf_0123456789abcdef01234567", "name": "Critical Supplier Risk", "status": "active", "frequency": "daily" } } ``` Save both IDs. Use `prf_...` for research configuration and `sub_...` for delivery preferences. Use `limit` to request 1 to 50 rows. The default is 20. Follow `links.next` until it is `null`. Keep the search filter `q` unchanged when following a cursor. ## Create an owned profile Creation requires `name`, `topic`, `frequency`, and `scheduleTimeOfDay`. Times are UTC. The server creates the profile as `active`, schedules it, and creates an active subscription for the same tenant context. ``` curl "https://api.y2.dev/api/v1/profiles" \ --request POST \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: supplier-risk-2026-07-21" \ --data '{ "name": "Critical Supplier Risk", "topic": "Monitor disruption affecting semiconductor suppliers, ports, export controls, severe weather, labor actions, and cyber incidents.", "frequency": "daily", "scheduleTimeOfDay": "08:00", "isCommunity": false, "tags": ["supply-chain", "semiconductors"] }' ``` Supported frequencies are `daily`, `weekly`, `biweekly`, and `monthly`. Weekly and biweekly profiles can supply `scheduleDayOfWeek`. Monthly profiles can supply `scheduleDayOfMonth`. See [Scheduling](https://y2.dev/docs/profiles/scheduling) for the product semantics, including the twice-monthly biweekly schedule. A successful create returns `201` with: - the canonical `prf_...` resource in `data` - `Location` containing its canonical API path - `ETag` for that representation - the supplied `Idempotency-Key`, when present Idempotency keys must contain 8–200 letters, numbers, `.`, `_`, `:`, or `-`. They are tenant- and operation-scoped for 24 hours. Reusing a key with a different canonical body returns `409 IDEMPOTENCY_CONFLICT`. ## Patch one or more fields Use `PATCH` when omitted fields must remain unchanged. ``` curl "https://api.y2.dev/api/v1/profiles/$PROFILE_ID" \ --request PATCH \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Content-Type: application/json" \ --header "If-Match: $PROFILE_ETAG" \ --data '{ "status": "paused", "tags": ["supply-chain", "semiconductors", "paused-review"] }' ``` Mutable fields include the profile's name, topic, status, schedule inputs, community visibility, tags, custom instructions, report structure, search/model/budget/recursion/freshness/audio/tool configuration, and branding template. The generated reference defines each nested input. Profile updates do not change subscription delivery `PUT` and `PATCH /profiles/{profileId}` change profile configuration only. Use the subscription delivery endpoint with the `sub_...` ID to select email, SMS, or a webhook. ## Replace mutable state Use `PUT` only when sending the full intended mutable profile state. It requires the same four fields as creation. Optional mutable fields omitted from a replacement reset to their defaults or are cleared. ``` curl "https://api.y2.dev/api/v1/profiles/$PROFILE_ID" \ --request PUT \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "name": "Critical Supplier Risk", "topic": "Monitor current disruption across strategic semiconductor supply chains.", "frequency": "weekly", "scheduleTimeOfDay": "08:00", "isCommunity": false, "scheduleDayOfWeek": "monday", "tags": ["supply-chain"] }' ``` Use the `ETag` returned by create or a previous update as `If-Match` when preventing a lost update. `If-Match` is optional. A stale value returns `412 PRECONDITION_FAILED` and the current ETag. Use `GET /profiles/{profileId}` to retrieve the current profile and its `ETag`. This read requires `profiles:read`. ## Change delivery on the subscription Read `subscription.id` from `GET /profiles`, then call: ``` curl "https://api.y2.dev/api/v1/subscriptions/$SUBSCRIPTION_ID/delivery" \ --request PATCH \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "deliveryMethod": "webhook", "webhookConfigId": "whk_0123456789abcdef01234567" }' ``` Delivery methods are `email`, `sms`, `webhook`, and `both_email_sms`. A webhook delivery requires an active, authorized `whk_...` configuration. For email-capable delivery, `emailAudience` can be `individual` or, on a plan with member seats, `workspace`. ## Retrieve reports for a profile The profile's `links.reports` value is the canonical filtered collection. You can also compose it directly: ``` curl --get "https://api.y2.dev/api/v1/reports" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "profileId=$PROFILE_ID" \ --data-urlencode "limit=1" ``` This requires `reports:read` in addition to whichever profile scopes the client uses. ## Delete an owned profile ``` curl "https://api.y2.dev/api/v1/profiles/$PROFILE_ID" \ --request DELETE \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "If-Match: $PROFILE_ETAG" ``` Deletion is permanent. It cancels the scheduled job and deletes the profile's subscriptions, signals, reports, and stored audio before returning `204` with no body. The API returns `404` when the key cannot access or mutate the named profile, which avoids revealing another tenant's resource. In a shared workspace, write-role membership is required. Non-admin members can update or delete only profiles they created. Workspace administrators can manage tenant-scoped profiles. [List profiles](https://y2.dev/docs/api/reference/profiles/listProfiles) [Create a profile](https://y2.dev/docs/api/reference/profiles/createProfile) [Patch a profile](https://y2.dev/docs/api/reference/profiles/patchProfile) [Update delivery](https://y2.dev/docs/api/reference/subscriptions/updateDelivery) [Reports API](https://y2.dev/docs/api/reports) [Webhook API](https://y2.dev/docs/api/webhooks) [Profile product guide](https://y2.dev/docs/profiles) [Authentication](https://y2.dev/docs/api/authentication) --- # Projects API (https://y2.dev/docs/api/projects/) Create, list, inspect, update, archive, and restore owner-private Projects through the Y2 API. Projects are owner-private intelligence workspaces. API requests derive the user and workspace from the bearer key. Callers cannot select another workspace in the request body. ## Scopes | Operation | Scope | | ------------------------------------------------- | ---------------- | | List or get Projects | `projects:read` | | Create, update, archive, restore, or pin Projects | `projects:write` | Both scopes require a workspace-bound API key. New API keys are available on Pro and Elite, even though Projects are also available in the Lite application. ## Create a Project ``` curl -sS "https://api.y2.dev/api/v1/projects" \ -H "Authorization: Bearer $Y2_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: project-supply-chain-2026-07" \ -d '{ "name": "Supply chain watch", "objective": "Track disruptions affecting critical suppliers", "instructions": "Prefer primary sources and call out conflicting evidence." }' ``` The response returns a stable `prj_...` ID, `Location`, and `ETag`. Reusing an `Idempotency-Key` with the same canonical JSON body returns the original Project. ## Read and update ``` curl -sS "https://api.y2.dev/api/v1/projects?status=active&limit=20" \ -H "Authorization: Bearer $Y2_API_KEY" ``` Project collections use the same opaque `nextCursor` and `links.next` pagination contract as other Y2 collections. Send the returned cursor unchanged to retrieve older Projects. Use `PATCH /api/v1/projects/{projectId}` for metadata, view defaults, pinning, and reversible lifecycle changes. Send the latest `ETag` in `If-Match` when coordinating multiple writers. ``` curl -sS -X PATCH "https://api.y2.dev/api/v1/projects/$PROJECT_ID" \ -H "Authorization: Bearer $Y2_API_KEY" \ -H "Content-Type: application/json" \ -H "If-Match: $PROJECT_ETAG" \ -d '{"status":"archived"}' ``` Archiving keeps Project data and pauses active Automations bound to that Project. Restore it with `{"status":"active"}`. [Generated Projects reference](https://y2.dev/docs/api/reference/projects): Exact paths, parameters, request bodies, responses, and schemas [Projects product guide](https://y2.dev/docs/projects): App views, private knowledge, evidence, resources, and lifecycle behavior --- # Endpoint Reference (https://y2.dev/docs/api/reference/) Endpoint Reference # Endpoint Reference Y2 endpoints generated from the OpenAPI contract. [Agent Y2](https://y2.dev/docs/api/reference/agent-y2): API-key streams for the preconfigured Y2 Agent and compatibility endpoint [Reports](https://y2.dev/docs/api/reference/reports): Report retrieval, text, audio, signals, and ontology graphs [Profiles](https://y2.dev/docs/api/reference/profiles): Profile subscriptions, ownership, and configuration [Projects](https://y2.dev/docs/api/reference/projects): Owner-private intelligence workspaces in the API key workspace [Automations](https://y2.dev/docs/api/reference/automations): Durable Agent Y2 Automation definitions and run history [Webhooks](https://y2.dev/docs/api/reference/webhooks): Webhook configuration for paid workspaces [Subscriptions](https://y2.dev/docs/api/reference/subscriptions): Subscription delivery management [News](https://y2.dev/docs/api/reference/news): News Terminal items, feeds, and AI recaps [OSINT](https://y2.dev/docs/api/reference/osint): Situation Room events, feeds, country data, and source health [Intel](https://y2.dev/docs/api/reference/intel): Read incidents, entities, markets, financial indicators, disclosures, signals, and cyber graphs. [Global Knowledge](https://y2.dev/docs/api/reference/global-knowledge): Search authorized Y2 reports and signal assessments. [Payments](https://y2.dev/docs/api/reference/payments): x402 receipt lookup [Ontology Ledger](https://y2.dev/docs/api/reference/ontology-ledger): Read and append workspace ledger records. --- # Agent Y2 (https://y2.dev/docs/api/reference/agent-y2/) Endpoint Reference # Agent Y2 API-key streams for the preconfigured Y2 Agent and compatibility endpoint [POST /agent-y2/chat/stream](https://y2.dev/docs/api/reference/agent-y2/streamAgentY2Chat): Stream a Y2 Agent response [POST /chat/completions](https://y2.dev/docs/api/reference/agent-y2/createY2OpenAIChatCompletion): OpenAI-compatible Agent Y2 chat stream --- # OpenAI-compatible Agent Y2 chat stream (https://y2.dev/docs/api/reference/agent-y2/createY2OpenAIChatCompletion/) Endpoint Reference[Agent Y2](https://y2.dev/docs/api/reference/agent-y2) # OpenAI-compatible Agent Y2 chat stream Routes OpenAI-style chat completions requests to Agent Y2 and streams text or client-side tool-call responses to compatible clients. v1 supports \`messages\`, \`stream: true\`, optional \`model\` set to \`y2-agent\` or \`agent-y2\`, optional \`threadId\`, optional bounded \`metadata\`, and bounded OpenAI function tools. Arbitrary models are unsupported. Without client tools, Agent Y2 keeps its fixed Copilot instructions and Y2 tools. A non-empty \`tools\` array selects harness mode. System and developer messages become client instructions. Tool-call history is preserved. The client executes returned tool calls. v1 requires an API key and does not support x402. Both Agent Y2 routes share a throttle of 5 requests/minute and 100/day per key, plus 10 requests/minute and 250/day per user or workspace. A \`402\` indicates subscription, Agent Y2 credit, or upstream-provider credit exhaustion, not an x402 challenge. `POST https://api.y2.dev/api/v1/chat/completions` - Operation ID: `createY2OpenAIChatCompletion` - Required scopes: `agent:y2` - Contract: https://y2.dev/openapi.json ## Request body `application/json`: `OpenAICompatibleChatCompletionRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `model` | `y2-agent`, `agent-y2` | No | Optional Y2 Agent model alias. Arbitrary model selection is not supported. | | `messages[]` | array of `OpenAICompatibleChatMessage` | Yes | | | `messages[].role` | `system`, `developer`, `user`, `assistant`, `tool` | Yes | System, developer, and tool messages are used only when the request supplies a non-empty `tools` array. | | `messages[].content` | string or array of `AgentY2TextPart` or null | Yes | | | `messages[].tool_calls[]` | array of object | No | | | `messages[].tool_call_id` | string | No | | | `messages[].name` | string | No | | | `stream` | boolean | Yes | | | `threadId` | string | No | Optional Y2 thread ID. The `X-Thread-Id` request header is also accepted. | | `metadata` | `AgentY2RequestMetadata` | No | | | `metadata.source` | string | No | | | `metadata.externalUserId` | string | No | | | `metadata.externalThreadId` | string | No | | | `tools[]` | array of `OpenAICompatibleFunctionTool` | No | A non-empty array selects client harness mode. Y2 never executes these tools server-side. | | `tools[].type` | string | Yes | | | `tools[].function` | object | Yes | | | `tool_choice` | `auto`, `none`, `required` | No | | | `parallel_tool_calls` | boolean | No | | | `max_tokens` | integer | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | OpenAI-style streaming chat completion chunks | | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | Agent Y2 subscription, workspace Agent Y2 credit, or provider credit exhaustion | | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | --- # Stream a Y2 Agent response (https://y2.dev/docs/api/reference/agent-y2/streamAgentY2Chat/) Endpoint Reference[Agent Y2](https://y2.dev/docs/api/reference/agent-y2) # Stream a Y2 Agent response Streams the Y2 Agent used by the app copilot. Requests use the workspace tools, permissions, shared Agent Y2 credits, and API-key limits. This is not a general multi-model API. v1 callers cannot choose models, use onboarding mode, or attach files. Transcript history supplies user/assistant context but cannot override the fixed system instructions. v1 requires an API key and does not support x402. Both Agent Y2 routes share a throttle of 5 requests/minute and 100/day per key, plus 10 requests/minute and 250/day per user or workspace. A \`402\` indicates subscription, Agent Y2 credit, or upstream-provider credit exhaustion, not an x402 challenge. `POST https://api.y2.dev/api/v1/agent-y2/chat/stream` - Operation ID: `streamAgentY2Chat` - Required scopes: `agent:y2` - Contract: https://y2.dev/openapi.json ## Request body `application/json`: `AgentY2StreamRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `messages[]` | array of `AgentY2Message` | Yes | | | `messages[].role` | `user`, `assistant` | Yes | | | `messages[].content` | string or null | No | | | `messages[].parts[]` | array of `AgentY2TextPart` | No | | | `threadId` | string | No | Existing Y2 chat thread ID returned in `X-Thread-Id` | | `metadata` | `AgentY2RequestMetadata` | No | | | `metadata.source` | string | No | | | `metadata.externalUserId` | string | No | | | `metadata.externalThreadId` | string | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Vercel AI SDK UI message stream | | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | Agent Y2 subscription, workspace Agent Y2 credit, or provider credit exhaustion | | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | --- # Automations (https://y2.dev/docs/api/reference/automations/) Endpoint Reference # Automations Durable Agent Y2 Automation definitions and run history [GET /automations](https://y2.dev/docs/api/reference/automations/listAutomations): List Automation definitions [POST /automations](https://y2.dev/docs/api/reference/automations/createAutomation): Create an Automation [GET /automations/{automationId}](https://y2.dev/docs/api/reference/automations/getAutomation): Get an Automation definition [PATCH /automations/{automationId}](https://y2.dev/docs/api/reference/automations/patchAutomation): Update or archive an Automation [GET /automations/{automationId}/runs](https://y2.dev/docs/api/reference/automations/listAutomationRuns): List Automation run history [POST /automations/{automationId}/runs](https://y2.dev/docs/api/reference/automations/runAutomation): Request a manual Automation run --- # Create an Automation (https://y2.dev/docs/api/reference/automations/createAutomation/) Endpoint Reference[Automations](https://y2.dev/docs/api/reference/automations) # Create an Automation Creates a draft, active, or paused Agent Y2 Automation. `POST https://api.y2.dev/api/v1/automations` - Operation ID: `createAutomation` - Required scopes: `automations:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated retry key retained for 24 hours. Repeating the same key and canonical JSON body returns the original resource. Changing the body returns `409 IDEMPOTENCY_CONFLICT`. | ## Request body `application/json`: `AutomationCreateRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | | | `instructions` | string | Yes | | | `projectId` | string or null | No | | | `trigger` | `AutomationTrigger` | Yes | | | `notificationPolicy` | `all_runs`, `failures_only`, `none` | Yes | | | `status` | `draft`, `active`, `paused` | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 201 | Automation created | `AutomationMutationResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 409 | Resource conflict (e.g., webhook in use) | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 201 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `Automation` | | | `data.id` | string | | | `data.type` | string | | | `data.name` | string | | | `data.instructions` | string | | | `data.operation` | string | | | `data.projectId` | string or null | | | `data.trigger` | `AutomationTrigger` | | | `data.notificationPolicy` | `all_runs`, `failures_only`, `none` | | | `data.overlapPolicy` | string | | | `data.status` | `AutomationStatus` | | | `data.definitionRevision` | integer | | | `data.schedule` | null or `AutomationSchedule` | | | `data.lastRun` | null or `AutomationRun` | | | `data.createdAt` | string (date-time) | | | `data.updatedAt` | string (date-time) | | | `data.links` | object | | | `meta` | object | | | `meta.message` | string | | --- # Get an Automation definition (https://y2.dev/docs/api/reference/automations/getAutomation/) Endpoint Reference[Automations](https://y2.dev/docs/api/reference/automations) # Get an Automation definition Returns one Automation definition and its current lifecycle state in the API key's workspace. `GET https://api.y2.dev/api/v1/automations/{automationId}` - Operation ID: `getAutomation` - Required scopes: `automations:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `automationId` | path | string | Yes | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Automation details | `AutomationResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `Automation` | | | `data.id` | string | | | `data.type` | string | | | `data.name` | string | | | `data.instructions` | string | | | `data.operation` | string | | | `data.projectId` | string or null | | | `data.trigger` | `AutomationTrigger` | | | `data.notificationPolicy` | `all_runs`, `failures_only`, `none` | | | `data.overlapPolicy` | string | | | `data.status` | `AutomationStatus` | | | `data.definitionRevision` | integer | | | `data.schedule` | null or `AutomationSchedule` | | | `data.lastRun` | null or `AutomationRun` | | | `data.createdAt` | string (date-time) | | | `data.updatedAt` | string (date-time) | | | `data.links` | object | | --- # List Automation run history (https://y2.dev/docs/api/reference/automations/listAutomationRuns/) Endpoint Reference[Automations](https://y2.dev/docs/api/reference/automations) # List Automation run history Traverse bounded Automation run history with the returned opaque cursor. `GET https://api.y2.dev/api/v1/automations/{automationId}/runs` - Operation ID: `listAutomationRuns` - Required scopes: `automations:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `automationId` | path | string | Yes | | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `limit` | query | integer | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Bounded run history | `AutomationRunListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `AutomationRun` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].automationId` | string | | | `data[].projectId` | string or null | | | `data[].reportId` | string or null | | | `data[].triggerKind` | `manual`, `schedule`, `profile_report_completed` | | | `data[].status` | `queued`, `running`, `succeeded`, `failed`, `skipped`, `canceled` | | | `data[].definitionRevision` | integer | | | `data[].resultSummary` | string or null | | | `data[].model` | string or null | | | `data[].usage` | object | | | `data[].skipReason` | string or null | | | `data[].error` | null or object | | | `data[].scheduledFor` | string or null (date-time) | | | `data[].createdAt` | string (date-time) | | | `data[].startedAt` | string or null (date-time) | | | `data[].completedAt` | string or null (date-time) | | | `data[].links` | object | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # List Automation definitions (https://y2.dev/docs/api/reference/automations/listAutomations/) Endpoint Reference[Automations](https://y2.dev/docs/api/reference/automations) # List Automation definitions Lists owner-private Automation definitions in the API key workspace. Traverse the bounded result set with the returned opaque cursor. `GET https://api.y2.dev/api/v1/automations` - Operation ID: `listAutomations` - Required scopes: `automations:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `projectId` | query | string | No | | | `status` | query | `AutomationStatus` | No | | | `limit` | query | integer | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Bounded Automation list | `AutomationListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `Automation` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].name` | string | | | `data[].instructions` | string | | | `data[].operation` | string | | | `data[].projectId` | string or null | | | `data[].trigger` | `AutomationTrigger` | | | `data[].notificationPolicy` | `all_runs`, `failures_only`, `none` | | | `data[].overlapPolicy` | string | | | `data[].status` | `AutomationStatus` | | | `data[].definitionRevision` | integer | | | `data[].schedule` | null or `AutomationSchedule` | | | `data[].lastRun` | null or `AutomationRun` | | | `data[].createdAt` | string (date-time) | | | `data[].updatedAt` | string (date-time) | | | `data[].links` | object | | | `meta` | object | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `meta.status` | null or `AutomationStatus` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # Update or archive an Automation (https://y2.dev/docs/api/reference/automations/patchAutomation/) Endpoint Reference[Automations](https://y2.dev/docs/api/reference/automations) # Update or archive an Automation Applies a partial definition update or a status-only lifecycle change. Archived Automations cannot be resumed or edited. `PATCH https://api.y2.dev/api/v1/automations/{automationId}` - Operation ID: `patchAutomation` - Required scopes: `automations:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `automationId` | path | string | Yes | | | `If-Match` | header | string | No | Strong ETag from the latest representation. A mismatch returns 412. | ## Request body `application/json`: `AutomationPatchRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | No | | | `instructions` | string | No | | | `projectId` | string or null | No | | | `trigger` | `AutomationTrigger` | No | | | `notificationPolicy` | `all_runs`, `failures_only`, `none` | No | | | `status` | `AutomationStatus` | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Automation updated | `AutomationMutationResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 409 | Resource conflict (e.g., webhook in use) | | | 412 | The supplied If-Match validator does not match the current representation. | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `Automation` | | | `data.id` | string | | | `data.type` | string | | | `data.name` | string | | | `data.instructions` | string | | | `data.operation` | string | | | `data.projectId` | string or null | | | `data.trigger` | `AutomationTrigger` | | | `data.notificationPolicy` | `all_runs`, `failures_only`, `none` | | | `data.overlapPolicy` | string | | | `data.status` | `AutomationStatus` | | | `data.definitionRevision` | integer | | | `data.schedule` | null or `AutomationSchedule` | | | `data.lastRun` | null or `AutomationRun` | | | `data.createdAt` | string (date-time) | | | `data.updatedAt` | string (date-time) | | | `data.links` | object | | | `meta` | object | | | `meta.message` | string | | --- # Request a manual Automation run (https://y2.dev/docs/api/reference/automations/runAutomation/) Endpoint Reference[Automations](https://y2.dev/docs/api/reference/automations) # Request a manual Automation run Queues an idempotent manual run request for an active Automation. The \`Idempotency-Key\` header is required and identifies duplicate requests. `POST https://api.y2.dev/api/v1/automations/{automationId}/runs` - Operation ID: `runAutomation` - Required scopes: `automations:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `automationId` | path | string | Yes | | | `Idempotency-Key` | header | string | Yes | | ## Responses | Status | Description | Body | | --- | --- | --- | | 202 | Run request accepted | `AutomationRunRequestResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 409 | Resource conflict (e.g., webhook in use) | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 202 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.type` | string | | | `data.status` | string | | | `data.automationId` | string | | | `meta` | object | | | `meta.message` | string | | --- # Global Knowledge (https://y2.dev/docs/api/reference/global-knowledge/) Endpoint Reference # Global Knowledge Search authorized Y2 reports and signal assessments. Requires an API key. Does not support x402. [POST /api/v2/intel/knowledge/retrieve](https://y2.dev/docs/api/reference/global-knowledge/retrieveGlobalKnowledgeV2): Retrieve Y2 Global Knowledge --- # Retrieve Y2 Global Knowledge (https://y2.dev/docs/api/reference/global-knowledge/retrieveGlobalKnowledgeV2/) Endpoint Reference[Global Knowledge](https://y2.dev/docs/api/reference/global-knowledge) # Retrieve Y2 Global Knowledge Searches shared Y2 knowledge and, when requested, the key's workspace knowledge. Y2 determines access from the key. The request cannot supply a user or workspace ID. Results include source IDs and citations. They omit provider and access-control attributes. This operation requires a workspace-bound API key with \`intel:knowledge\`. It does not support x402. Agent Y2 keys continue to use \`agent:y2\`. The agent may invoke this retrieval tool internally when the workspace is entitled to Chat. `POST https://api.y2.dev/api/v2/intel/knowledge/retrieve` - Operation ID: `retrieveGlobalKnowledgeV2` - Required scopes: `intel:knowledge` - Contract: https://y2.dev/openapi.json ## Request body `application/json`: `GlobalKnowledgeRetrievalRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `query` | string | Yes | | | `knowledgeMode` | `shared`, `workspace`, `combined` | No | Narrows retrieval to shared, key-workspace, or both authorized corpora. | | `documentKinds[]` | array of `report_chunk`, `signal_assessment`, `report_graph_component`, `source_document_chunk` | No | | | `entityIds[]` | array of string | No | | | `incidentIds[]` | array of string | No | | | `subjectKeys[]` | array of string | No | | | `domains[]` | array of `cyber`, `markets`, `geopolitical`, `operational`, `supply_chain`, `policy`, `military`, `technology`, `other` | No | | | `priorities[]` | array of `low`, `medium`, `high`, `critical` | No | | | `generatedAfter` | integer | No | Inclusive lower bound as Unix milliseconds. | | `generatedBefore` | integer | No | Inclusive upper bound as Unix milliseconds. | | `limit` | integer | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Authorized, current-manifest Global Knowledge results. | `GlobalKnowledgeRetrievalResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | | 503 | Y2 Global Knowledge is disabled or its retrieval provider is unavailable. | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `GlobalKnowledgeResult` | | | `data[].documentId` | string | | | `data[].rank` | integer | | | `data[].documentKind` | `report_chunk`, `signal_assessment`, `report_graph_component`, `source_document_chunk` | | | `data[].title` | string | | | `data[].excerpt` | string | | | `data[].sectionPath` | string | | | `data[].source` | object | | | `data[].ontology` | object | | | `data[].canonicalRefs[]` | array of `GlobalKnowledgeCanonicalReference` | | | `data[].episode` | object | | | `data[].inferenceKind` | string | | | `data[].generatedAt` | integer | | | `data[].validFrom` | integer | | | `data[].validTo` | integer | | | `data[].citationUrls[]` | array of string (uri) | | | `meta` | object | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.knowledgeMode` | `shared`, `workspace`, `combined` | | | `meta.availability` | `GlobalKnowledgeRetrievalAvailability` | Whether every corpus the request covered answered. A `partial` response is still `200`: the listed corpora were skipped, so an empty or short `data` array does not mean nothing matched. | --- # Intel (https://y2.dev/docs/api/reference/intel/) Endpoint Reference # Intel Read incidents, entities, markets, financial indicators, disclosures, signals, and cyber graphs. The base URL is \`https\://api.y2.dev/api/v2\`. Check each operation for accepted scopes and x402 support. [GET /api/v2/changes](https://y2.dev/docs/api/reference/intel/listChangesV2): Read the public intelligence change feed [GET /api/v2/incidents](https://y2.dev/docs/api/reference/intel/listIncidentsV2): List intel incidents [GET /api/v2/incidents/{incidentId}](https://y2.dev/docs/api/reference/intel/getIncidentV2): Get an intel incident [GET /api/v2/entities](https://y2.dev/docs/api/reference/intel/listEntitiesV2): List intel entities [GET /api/v2/entities/{entityId}](https://y2.dev/docs/api/reference/intel/getEntityV2): Get an intel entity [GET /api/v2/entities/{entityId}/financial-observations](https://y2.dev/docs/api/reference/intel/listCompanyFinancialObservationsV2): List workspace company financial history [GET /api/v2/entities/{entityId}/fusion](https://y2.dev/docs/api/reference/intel/getEntityFusionV2): Get cyber-market fusion for a company [GET /api/v2/entities/{entityId}/graph](https://y2.dev/docs/api/reference/intel/getEntityGraphV2): Traverse an entity relationship graph [GET /api/v2/markets](https://y2.dev/docs/api/reference/intel/listMarketsV2): List intel markets [GET /api/v2/finint](https://y2.dev/docs/api/reference/intel/listFinintIntelV2): List FININT indicators [GET /api/v2/disclosures](https://y2.dev/docs/api/reference/intel/listDisclosuresV2): List public disclosures [GET /api/v2/signals](https://y2.dev/docs/api/reference/intel/listSignalsV2): List tagged emergent signals [GET /api/v2/cyber/graph](https://y2.dev/docs/api/reference/intel/getCyberGraphV2): Cyber entity graph [GET /api/v2/cyber/cves](https://y2.dev/docs/api/reference/intel/listCVEsV2): Search CVEs with disclosure summaries [GET /api/v2/cyber/cves/{cveId}](https://y2.dev/docs/api/reference/intel/getCVEDisclosureV2): Read a sourced CVE disclosure [GET /api/v2/cyber/actors](https://y2.dev/docs/api/reference/intel/listThreatActorsV2): List threat actor entities [POST /api/v2/cyber/dns/lookups](https://y2.dev/docs/api/reference/intel/createDnsLookupV2): Look up a domain's DNS footprint [GET /api/v2/cyber/dns/snapshots](https://y2.dev/docs/api/reference/intel/listDnsSnapshotsV2): List a domain's DNS snapshot history --- # Look up a domain's DNS footprint (https://y2.dev/docs/api/reference/intel/createDnsLookupV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # Look up a domain's DNS footprint Returns the DNS footprint of a domain from DNSDumpster. The footprint contains A, MX, NS, CNAME, and TXT records. Each address includes its network operator (ASN), netblock, country, reverse DNS, and service banners. Send \`domain\`. Or send \`entityId\` to use the official website that Y2 records for that entity. A snapshot younger than 14 days answers every caller with \`outcome: reused\`. It does not use the workspace allowance. Otherwise Y2 takes a new snapshot with \`outcome: fetched\`. A new snapshot uses one monthly DNS lookup. Pro includes 5. Elite includes 1,000. \`usage\` reports the allowance after this request. A failed provider call returns the lookup to the allowance. Y2 stores each snapshot with the time when it arrived. The snapshot adds the domain, hosts, addresses, netblocks, and network operators to the shared ontology. A known organization whose official website is the domain \`operates\` it. Each relation records when snapshots first and last evidenced it. The free tier returns up to 50 A records for each domain. \`truncated\` is true when the provider has more. The request can wait up to about 40 seconds while Y2 paces provider calls. Requires a workspace-bound API key with \`intel:cyber\` on a Pro or Elite plan. Not available through x402. `POST https://api.y2.dev/api/v2/cyber/dns/lookups` - Operation ID: `createDnsLookupV2` - Required scopes: `intel:cyber` - Contract: https://y2.dev/openapi.json ## Request body `application/json`: `DnsLookupRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `domain` | string | No | Domain name. Y2 reduces a URL or `www.` host to its domain | | `entityId` | string | No | Entity whose known official website to look up | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | The domain's current DNS snapshot and the workspace allowance | `DnsLookupResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | | 503 | Y2 Global Knowledge is disabled or its retrieval provider is unavailable. | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.outcome` | `fetched`, `reused` | `reused` when a snapshot younger than 14 days answered the request | | `data.snapshot` | `DnsSnapshot` | | | `usage` | `DnsLookupUsage` | | | `usage.period` | string | Calendar month (UTC) of the allowance | | `usage.used` | integer | Provider lookups the workspace has used this month | | `usage.limit` | integer | Monthly allowance of the workspace plan | --- # Read a sourced CVE disclosure (https://y2.dev/docs/api/reference/intel/getCVEDisclosureV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # Read a sourced CVE disclosure Returns the normalized public disclosure used by Cyber and the public CVE page, linked to its stable ontology entity. Includes all retained source assessments, affected products and versions, remediation, references, and provenance. Private workspace data is excluded. The request reads stored data and does not contact providers. Missing assessments are unknown, not evidence of absence. Pass \`revision\` to retrieve a retained immutable disclosure. Unknown CVEs or revisions return 404; rejected records remain readable. Disclosure timestamps are Unix milliseconds, matching the public JSON representation. Source calendar dates such as EPSS \`date\` remain strings. `GET https://api.y2.dev/api/v2/cyber/cves/{cveId}` - Operation ID: `getCVEDisclosureV2` - Required scopes: `intel:cyber` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cveId` | path | `CVEIdentifier` | Yes | Canonical CVE identifier. This is not an `ent_...` identifier. | | `revision` | query | `CVERevision` | No | SHA-256 revision from a previously returned disclosure. Omit for the current record. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Full retained public disclosure with ontology identity and discovery links | `CVEDisclosureResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `CVEDisclosureResource` | | | `data.cveId` | `CVEIdentifier` | | | `data.title` | string | | | `data.description` | string | | | `data.status` | `published`, `rejected`, `reserved` | | | `data.publishedAt` | `CVETime` | Unix milliseconds, or null when the source does not provide a time. | | `data.modifiedAt` | `CVETime` | Unix milliseconds, or null when the source does not provide a time. | | `data.metrics[]` | array of `CVEMetric` | Source-specific assessments; the primary authority leads when available. | | `data.affected[]` | array of `CVEAffected` | | | `data.cpeConfigurations[]` | array of `CVECpeConfiguration` | | | `data.remediation[]` | array of `CVERemediation` | | | `data.references[]` | array of `CVEReference` | | | `data.cwes[]` | array of string | | | `data.kev` | `CVEKEV` or null | | | `data.epss` | `CVEEPSS` or null | | | `data.ssvc` | `CVESSVC` or null | | | `data.exploits[]` | array of `CVEExploit` | | | `data.sources[]` | array of `CVESource` | | | `data.revision` | `CVERevision` | | | `data.updatedAt` | integer | Unix milliseconds when this disclosure snapshot was recorded. | | `data.id` | string | | | `data.type` | string | | | `data.links` | object | | --- # Cyber entity graph (https://y2.dev/docs/api/reference/intel/getCyberGraphV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # Cyber entity graph Returns a graph rooted at a CVE, threat actor, or malware family. Requires \`rootCveId\`, \`rootActorId\`, or \`rootMalwareFamilyId\`. Breadth-first search depth is capped at 2. `GET https://api.y2.dev/api/v2/cyber/graph` - Operation ID: `getCyberGraphV2` - Required scopes: `intel:cyber` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `rootCveId` | query | string | No | Root entity ID (kind=cve) for the traversal | | `rootActorId` | query | string | No | Root entity ID (kind=threat_actor) for the traversal | | `rootMalwareFamilyId` | query | string | No | Root entity ID (kind=malware_family) for the traversal | | `depth` | query | integer | No | Maximum BFS depth (1–2) | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Cyber graph (nodes + edges) | `CyberGraphResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `IntelGraph` | | | `data.nodes[]` | array of `PublicEntity` | | | `data.edges[]` | array of `PublicEntityRelation` | | | `data.capped` | boolean | True when traversal stopped early (200-node cap or depth cap) | | `data.depth` | integer | BFS depth traversed | | `meta` | `PublicGraphMeta` | | | `meta.depth` | integer | | | `meta.capped` | boolean | | --- # Get cyber-market fusion for a company (https://y2.dev/docs/api/reference/intel/getEntityFusionV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # Get cyber-market fusion for a company Requires a workspace-bound API key with intel:explorer. Places cyber, market, supply-chain, and geopolitical events about an organization or vendor, and about the parties on its exposure path, on one timeline. Exposure paths come from catalog relations (supplies, subsidiary\_of, operates) and from evidenced workspace ledger claims (supplies, subsidiary-of, operates) on subjects anchored to the entity. Workspace topics that track any path entity are listed. Adjacencies pair a cyber event with market events that followed it within adjacencyDays. They are temporal co-occurrence, not causation. Incidents and prediction markets come from a bounded recent scan. Coverage notes say so. The window ends at request time. Not available with anonymous x402 payment. `GET https://api.y2.dev/api/v2/entities/{entityId}/fusion` - Operation ID: `getEntityFusionV2` - Required scopes: `intel:explorer` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `entityId` | path | string | Yes | Stable public ID of an organization or vendor entity. | | `windowDays` | query | integer | No | Days of history ending now. | | `adjacencyDays` | query | integer | No | How long after a cyber event a market event counts as adjacent. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Fused exposure timeline for the entity. | `EntityFusionResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `EntityFusion` | | | `data.entity` | object | | | `data.window` | object | | | `data.counterparties[]` | array of object | | | `data.identifiers[]` | array of object | Live designations of ledger subjects anchored to the entity. | | `data.topics[]` | array of object | Workspace topics whose subject is on the exposure path. | | `data.timeline[]` | array of `FusionEvent` | | | `data.undated[]` | array of `FusionEvent` | | | `data.summaries[]` | array of object | | | `data.adjacencies[]` | array of object | A market event that followed a cyber event within adjacencyDays. Not causation. | | `data.coverage` | object | | --- # Traverse an entity relationship graph (https://y2.dev/docs/api/reference/intel/getEntityGraphV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # Traverse an entity relationship graph Traverses the ontology graph from \`entityId\` with breadth-first search. Returns nodes and edges to the requested depth, capped at 200 nodes. \`relationKinds\` limits traversed edge kinds. `GET https://api.y2.dev/api/v2/entities/{entityId}/graph` - Operation ID: `getEntityGraphV2` - Required scopes: `intel:explorer` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `entityId` | path | string | Yes | Root entity ID for the traversal | | `depth` | query | integer | No | Maximum BFS depth (0–3) | | `relationKinds` | query | string | No | Comma-separated list of relation kinds to traverse. Defaults to all kinds. Allowed values: `part_of`, `operates`, `located_in`, `ally_of`, `adversary_of`, `subsidiary_of`, `supplies`, `references`, `affects`, `targets`, `uses`. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Entity graph (nodes + edges) | `EntityGraphResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `IntelGraph` | | | `data.nodes[]` | array of `PublicEntity` | | | `data.edges[]` | array of `PublicEntityRelation` | | | `data.capped` | boolean | True when traversal stopped early (200-node cap or depth cap) | | `data.depth` | integer | BFS depth traversed | | `meta` | `PublicGraphMeta` | | | `meta.depth` | integer | | | `meta.capped` | boolean | | --- # Get an intel entity (https://y2.dev/docs/api/reference/intel/getEntityV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # Get an intel entity Returns an entity with inbound and outbound relations, related entities, participating incidents, subject markets, recent observations, and tenant-scoped company financial observations when requested. `GET https://api.y2.dev/api/v2/entities/{entityId}` - Operation ID: `getEntityV2` - Required scopes: `intel:explorer` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `include` | query | string | No | Bounded related resources to embed: `relations`, `relatedEntities`, `incidents`, `markets`, `observations`, `companyIdentity`, or `financialObservations`. Financial observations require an authenticated tenant context and are never returned across tenants. | | `fields[entities]` | query | string | No | Comma-separated allowlist of entity fields. Identity and links remain present. | | `fields[incidents]` | query | string | No | Comma-separated allowlist of incident fields. Identity and links remain present. | | `fields[markets]` | query | string | No | Comma-separated allowlist of market fields. Identity remains present. | | `fields[observations]` | query | string | No | Comma-separated allowlist of observation fields. Identity and source links remain present. | | `entityId` | path | string | Yes | Stable Y2 public entity ID (`ent_...`). Legacy IDs are accepted during migration. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Entity drill: entity, relations, incidents, markets | `EntityDetailResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `EntityDetail` | | | `data.entity` | `PublicEntity` | | | `data.fromRelations[]` | array of `PublicEntityRelation` | | | `data.toRelations[]` | array of `PublicEntityRelation` | | | `data.relatedEntities[]` | array of `PublicEntity` | | | `data.incidents[]` | array of `PublicIncident` | | | `data.markets[]` | array of `PublicMarket` | | | `data.observations[]` | array of `PublicObservation` | | | `data.companyIdentity` | `CompanyIdentityVerification` | | | `data.financialObservations[]` | array of `CompanyFinancialObservation` | | --- # Get an intel incident (https://y2.dev/docs/api/reference/intel/getIncidentV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # Get an intel incident Returns an incident with supporting observations, linked markets and entities, primary place, and related incidents. The server resolves the category before checking scope: \`intel:cyber\` for cyber, \`intel:finint\` for other categories, or \`intel:explorer\` for any. `GET https://api.y2.dev/api/v2/incidents/{incidentId}` - Operation ID: `getIncidentV2` - Required scopes: `intel:explorer`, `intel:finint`, `intel:cyber` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `include` | query | string | No | Bounded related resources to embed. | | `fields[incidents]` | query | string | No | Comma-separated allowlist of incident fields. Identity and links remain present. | | `fields[observations]` | query | string | No | Comma-separated allowlist of observation fields. Identity and source links remain present. | | `fields[markets]` | query | string | No | Comma-separated allowlist of market fields. Identity remains present. | | `fields[entities]` | query | string | No | Comma-separated allowlist of entity fields. Identity and links remain present. | | `incidentId` | path | string | Yes | Stable Y2 public incident ID (`inc_...`). Legacy IDs are accepted during migration. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Incident drill: incident, observations, markets, entities | `IncidentDetailResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `IncidentDetail` | | | `data.incident` | `PublicIncident` | | | `data.observations[]` | array of `PublicObservation` | | | `data.markets[]` | array of `PublicMarket` | | | `data.entities[]` | array of `PublicEntity` | | | `data.primaryPlace` | `PublicPlace` or null | Primary place for the incident (or null) | | `data.relatedIncidents[]` | array of `PublicIncident` | | --- # Read the public intelligence change feed (https://y2.dev/docs/api/reference/intel/listChangesV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # Read the public intelligence change feed Returns immutable public-resource lifecycle events in global order. An authenticated API key receives globally visible intelligence changes plus changes owned by its user or workspace tenant. Anonymous x402 requests receive globally visible intelligence changes only. Tenant records are never exposed across scopes. The \`watermark\` is an opaque exclusive checkpoint: persist the returned value and send it on the next request. Replaying a checkpoint never skips later events and may safely be retried after a consumer failure. Without \`watermark\` or \`since\`, the first page starts at the oldest retained event, so a new consumer replays the whole log. Pass \`since\` to start at a point in time instead; the response watermark then continues from there as usual. Deleted resources are represented as tombstones. Events are append-only in schema version \`1.0\`. No retention expiry is currently applied. `GET https://api.y2.dev/api/v2/changes` - Operation ID: `listChangesV2` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `format` | query | `json`, `ndjson` | No | `json` uses the resource envelope. `ndjson` streams one canonical row per line. | | `watermark` | query | string | No | Opaque exclusive checkpoint returned by an earlier response. | | `since` | query | string | No | Start at the first event that changed at or after this instant, as an RFC 3339 timestamp or Unix epoch milliseconds. Cannot be combined with `watermark`. | | `limit` | query | integer | No | Maximum number of change events to return. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Ordered public resource changes after the supplied watermark. | `ChangeFeedResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `PublicChangeEvent` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | | | `data[].type` | string | | | `data[].changeType` | `created`, `updated`, `deleted` | | | `data[].resource` | object | | | `data[].changedAt` | string (date-time) | | | `data[].tombstone` | boolean | True when the referenced resource has been deleted. | | `data[].schemaVersion` | string | | | `meta` | `ChangeFeedMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `meta.watermark` | string or null | Exclusive checkpoint after the final event in this response. | | `meta.fromExclusive` | boolean | | | `links` | `ChangeFeedLinks` | | | `links.self` | string | | | `links.next` | string or null | | | `links.resume` | string or null | URL containing the checkpoint to persist even when the feed is caught up. | --- # List workspace company financial history (https://y2.dev/docs/api/reference/intel/listCompanyFinancialObservationsV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # List workspace company financial history Requires a workspace-bound API key with intel:finint. Returns only that workspace's recorded observations, newest recorded first. Not available with anonymous x402 payment. Metric filtering uses an index. FactType is applied to each bounded page, so an empty page can still have a next cursor. History reflects retained Y2 observations, not complete filing coverage or guaranteed historical availability. SEC imports retain JSON record pointers, not page/quote spans, and do not establish original publication timestamps. Unsupported or repeated query parameters are rejected with HTTP 400. `GET https://api.y2.dev/api/v2/entities/{entityId}/financial-observations` - Operation ID: `listCompanyFinancialObservationsV2` - Required scopes: `intel:finint` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `entityId` | path | string | Yes | Stable public entity ID from the entity API. | | `metricKey` | query | string | No | Exact normalized metric key, such as eps_diluted. | | `factType` | query | `actual`, `estimate`, `guidance` | No | | | `limit` | query | integer | No | | | `cursor` | query | string | No | Opaque next cursor. Preserve the path and filters between pages. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Bounded workspace financial observations. | `CompanyFinancialHistoryResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of object | | | `data[].metric` | object | | | `data[].factType` | `actual`, `estimate`, `guidance` | | | `data[].filing` | `CompanyFilingFact` | | | `data[].value` | object | | | `data[].period` | object | | | `data[].confidence` | number | | | `data[].comparison` | object | | | `data[].sources[]` | array of string (uri) | | | `data[].availableAt` | string (date-time) | Conservative evidence-availability bound, using the latest retained source capture across all cited sources. Only present when every cited source has a verified archived span. Not the original publication date or a historical retrieval guarantee. | | `data[].availabilityBasis` | `first_capture`, `unknown` | first_capture requires revision-validated spans for all cited sources. Legacy, incomplete, or source-only evidence remains unknown. | | `data[].provenance[]` | array of `CompanyFinancialSourceProvenance` | | | `data[].recordedAt` | string (date-time) | Time the financial observation was recorded by Y2, independently of its reporting period and source times. | | `data[].id` | string | | | `data[].type` | string | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # Search CVEs with disclosure summaries (https://y2.dev/docs/api/reference/intel/listCVEsV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # Search CVEs with disclosure summaries Lists \`kind=cve\` ontology entities with compact disclosure summaries and links. Preserves public entity IDs, cursor pagination, and \`fields\[entities]\`. \`q\` searches CVE identifiers. Full affected-version arrays and source records are available from \`GET /api/v2/cyber/cves/{cveId}\`. Reading does not trigger collection. `GET https://api.y2.dev/api/v2/cyber/cves` - Operation ID: `listCVEsV2` - Required scopes: `intel:cyber` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `fields[entities]` | query | string | No | Comma-separated allowlist of entity fields. Identity and links remain present. | | `q` | query | string | No | CVE identifier search; in catalog mode, also searches vendor, product and disclosure text (up to 160 characters). | | `catalog` | query | `true` | No | Use the searchable collected disclosure catalog with priority filters. | | `severity` | query | `all`, `critical-high`, `critical`, `high`, `medium`, `low`, `info`, `unscored` | No | | | `remediation` | query | `any`, `fix_published`, `workaround_published`, `unknown` | No | Source-reported remediation; unknown does not establish that no fix exists. | | `kev` | query | `any`, `true` | No | Restrict to known exploited CVEs listed by CISA. | | `sort` | query | `updated`, `cvss` | No | Ordering without a search query. CVSS uses latest source update as its tie-breaker. | | `limit` | query | integer | No | Maximum number of CVEs to return | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | CVE entities with compact disclosure summaries | `CVEListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `PublicEntity` | Entities filtered to `kind=cve` | | `data[].cve` | `CVESummary` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | | | `data[].type` | string | | | `data[].kind` | `EntityKind` | | | `data[].name` | string | | | `data[].aliases[]` | array of string | | | `data[].externalIds` | object | | | `data[].attributes` | object | | | `data[].footprint` | object | | | `data[].createdAt` | string (date-time) | | | `data[].updatedAt` | string (date-time) | | | `data[].links` | `PublicResourceLinks` | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # List public disclosures (https://y2.dev/docs/api/reference/intel/listDisclosuresV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # List public disclosures Screens primary-source disclosures: SEC Form 8-K material events, Forms 3/4/5 insider transactions, Schedule 13D ownership stakes, and USAspending federal contract and grant actions. Y2 syncs SEC EDGAR twice daily and USAspending daily. Every party is resolved to a shared ontology entity, by SEC CIK or SAM UEI first and by governed entity resolution otherwise. Officer and director filings add \`part\_of\` relations; contracts add recipient-\`supplies\`-agency relations; grants add agency-\`supplies\`-recipient relations. Each relation cites the disclosure's observation. Federal awards cover contract actions of $5M or more in the last 14 days and grant actions of $10M or more in the last 30 days at each sync. \`publishedAt\` is the SEC filing date or the award action date. Requires \`intel:disclosures\` (Pro and Elite plans) or an x402 payment. `GET https://api.y2.dev/api/v2/disclosures` - Operation ID: `listDisclosuresV2` - Required scopes: `intel:disclosures` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `fields[disclosures]` | query | string | No | Comma-separated allowlist of disclosure fields (kind, source, form, category, severity, title, occurredAt, publishedAt, amount, subject, counterparty, entities, details, provenance). Identity remains present. | | `kind` | query | `DisclosureKind` | No | Disclosure type | | `category` | query | string | No | Screener facet. 8-K: `bankruptcy`, `cybersecurity`, `accounting`, `control_change`, `listing`, `leadership`, `deal`, `financing`, `results`, `governance`, `disclosure`, `other`. Insider: `buy`, `sell`, `grant`, `exercise`, `tax`, `gift`, `holdings`, `other`. Stake: `initial`, `amendment`. Award: `contract`, `grant`. With `kind`, the category must belong to that kind. | | `severity` | query | `low`, `medium`, `high`, `critical` | No | Materiality the screener assigns from the item, amount, or stake | | `entityId` | query | string | No | Public entity ID; returns disclosures naming it as subject or counterparty | | `q` | query | string | No | Title search (company, ticker, insider, agency, or recipient) | | `minAmountUsd` | query | number | No | Minimum insider transaction value or award obligation in USD | | `sinceMs` | query | integer | No | Earliest `publishedAt`, in Unix milliseconds | | `sort` | query | `recent`, `amount` | No | `recent` (default) or `amount`, largest first. `amount` requires `kind`. | | `limit` | query | integer | No | Maximum number of disclosures to return | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Page of disclosures | `DisclosureListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `PublicDisclosure` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].kind` | `DisclosureKind` | | | `data[].source` | object | | | `data[].form` | string or null | SEC form type; null for federal awards | | `data[].category` | string | | | `data[].severity` | `low`, `medium`, `high`, `critical` | | | `data[].title` | string | | | `data[].occurredAt` | string (date-time) | Event, transaction, or award action date (UTC midnight of the provider date) | | `data[].publishedAt` | string (date-time) | SEC filing date, or the award action date (UTC midnight) | | `data[].amount` | null or object | | | `data[].subject` | `DisclosureParty` | | | `data[].counterparty` | null or `DisclosureParty` | | | `data[].entities[]` | array of object | | | `data[].details` | `DisclosureMaterialEventDetails` or `DisclosureInsiderTransactionDetails` or `DisclosureOwnershipStakeDetails` or `DisclosureFederalAwardDetails` | | | `data[].provenance` | object | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # List a domain's DNS snapshot history (https://y2.dev/docs/api/reference/intel/listDnsSnapshotsV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # List a domain's DNS snapshot history Lists the stored DNS snapshots of one domain, newest first. Each snapshot includes the time when it arrived and its ontology links. Reading history never calls the provider. It does not use the workspace's DNS lookup allowance. Use \`createDnsLookupV2\` to take a new snapshot. Requires a workspace-bound API key with \`intel:cyber\` on a Pro or Elite plan. `GET https://api.y2.dev/api/v2/cyber/dns/snapshots` - Operation ID: `listDnsSnapshotsV2` - Required scopes: `intel:cyber` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `domain` | query | string | Yes | Domain name. Y2 reduces a URL or `www.` host to its domain | | `limit` | query | integer | No | Maximum number of snapshots to return | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Page of DNS snapshots, newest first | `DnsSnapshotListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `DnsSnapshot` | | | `data[].type` | string | | | `data[].domain` | string | | | `data[].receivedAt` | string or null (date-time) | When the provider response was received | | `data[].reusableUntil` | string or null (date-time) | Until this time every lookup of the domain returns this snapshot | | `data[].source` | object | | | `data[].truncated` | boolean | True when the provider reported more A records than the 50 returned | | `data[].totalARecords` | integer | | | `data[].changedFromPrevious` | boolean or null | Whether the records differ from the previous snapshot. Null for the first | | `data[].summary` | object | | | `data[].records` | object | | | `data[].ontology` | object | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # List intel entities (https://y2.dev/docs/api/reference/intel/listEntitiesV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # List intel entities Lists ontology entities, including people, organizations, countries, CVEs, threat actors, vessels, aircraft, facilities, vendors, software, and protocols. \`q\` searches \`canonicalName\`. \`kind\` filters by exact kind. `GET https://api.y2.dev/api/v2/entities` - Operation ID: `listEntitiesV2` - Required scopes: `intel:explorer` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `fields[entities]` | query | string | No | Comma-separated allowlist of entity fields. Identity and links remain present. | | `kind` | query | `person`, `organization`, `country`, `region`, `vessel`, `aircraft`, `facility`, `asset`, `indicator`, `cve`, `malware_family`, `threat_actor`, `vendor`, `software`, `ai_model`, `api_service`, `protocol` | No | Filter by entity kind | | `q` | query | string | No | Full-text search across `canonicalName` (filtered by `kind` when present) | | `limit` | query | integer | No | Maximum number of entities to return | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of intel entities | `EntityListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `PublicEntity` | | | `data[].cve` | `CVESummary` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | | | `data[].type` | string | | | `data[].kind` | `EntityKind` | | | `data[].name` | string | | | `data[].aliases[]` | array of string | | | `data[].externalIds` | object | | | `data[].attributes` | object | | | `data[].footprint` | object | | | `data[].createdAt` | string (date-time) | | | `data[].updatedAt` | string (date-time) | | | `data[].links` | `PublicResourceLinks` | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # List FININT indicators (https://y2.dev/docs/api/reference/intel/listFinintIntelV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # List FININT indicators Lists dimension-filtered FININT indicators from the same data as \`GET /api/v1/osint/finint\`, using the \`intel:finint\` scope and ontology-aware filters. `GET https://api.y2.dev/api/v2/finint` - Operation ID: `listFinintIntelV2` - Required scopes: `intel:finint` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `fields[finint]` | query | string | No | Comma-separated allowlist of financial observation fields (indicator, source, dimension, measurement, observedAt, period, provenance, entities, geometry, signals). Identity remains present. | | `dimensionType` | query | `facility`, `rto`, `port`, `state` | No | Restrict to per-dimension rows (e.g. `facility`, `rto`, `port`, `state`) | | `dimension` | query | string | No | Exact dimension key (e.g. `PJM`, `vogtle`, `houston`) | | `indicatorId` | query | string | No | Exact indicator key (e.g. `EIA:WTI`, `FRED:DGS10`) | | `category` | query | `rates`, `credit`, `inflation`, `labor`, `gdp`, `business`, `consumer`, `housing`, `money_supply`, `volatility`, `commodities`, `fx`, `equities`, `energy`, `crypto` | No | Filter by indicator category | | `source` | query | `fred`, `yfinance`, `eia` | No | Filter by data source | | `limit` | query | integer | No | Maximum number of indicators to return | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of FinInt indicators | `FinintIntelListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `PublicFinintObservation` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].indicator` | object | | | `data[].source` | object | | | `data[].dimension` | object or null | | | `data[].measurement` | object | | | `data[].observedAt` | string (date-time) | Existing cache fetch timestamp, not a provider quote time, reporting period, or original publication date. | | `data[].period` | `FinintPeriod` | Provider reporting label or a timestamp tied to the selected quote. Labels are not inferred UTC boundaries. Null when the adapter has no supported timing. Never inferred from fetch time. | | `data[].provenance` | `FinintProvenance` | Bounded provider metadata retained with the current cached value, not an archived source payload or evidence of original publication/availability. Null for rows without captured metadata. This feed does not retain historical vintages. | | `data[].entities[]` | array of object | Up to eight existing canonical ontology entity links per observation, with a lookup budget of 1000 distinct entity IDs across the page. Unresolved or over-budget references are omitted. No company identity is inferred from a ticker. Does not include tenant research or financial history. | | `data[].geometry` | `GeoJSONPoint` | WGS 84 point with longitude first, then latitude. | | `data[].signals[]` | array of string | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # List intel incidents (https://y2.dev/docs/api/reference/intel/listIncidentsV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # List intel incidents Lists deduplicated, scored ontology incidents linked from the OSINT cache. Filters by category, severity, status, or last-observed lower bound. Required scopes vary by \`category\` filter: - \`category=cyber\` → \`intel:cyber\` or \`intel:explorer\` - any other category → \`intel:finint\` or \`intel:explorer\` - no \`category\` filter → \`intel:explorer\` Supports x402 pay-per-request. Requests without \`Authorization\` return \`402 Payment Required\` with payment requirements. Retry with a signed \`PAYMENT-SIGNATURE\` header. `GET https://api.y2.dev/api/v2/incidents` - Operation ID: `listIncidentsV2` - Required scopes: `intel:explorer`, `intel:finint`, `intel:cyber` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `fields[incidents]` | query | string | No | Comma-separated allowlist of incident fields. Identity and links remain present. | | `category` | query | `seismic`, `conflict`, `political`, `economic`, `weather`, `health`, `cyber`, `maritime`, `fire`, `aviation`, `other` | No | Filter incidents by category | | `severity` | query | `low`, `medium`, `high`, `critical` | No | Filter by severity | | `status` | query | `active`, `resolved`, `forecast` | No | Filter by lifecycle status | | `sinceMs` | query | integer (int64) | No | Lower bound on `lastObservedAt` as Unix milliseconds. Useful for polling: pass the largest `lastObservedAt` you've seen. | | `limit` | query | integer | No | Maximum number of incidents to return | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of intel incidents | `IncidentListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `PublicIncident` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | | | `data[].type` | string | | | `data[].title` | string | | | `data[].category` | string | | | `data[].severity` | `low`, `medium`, `high`, `critical` | | | `data[].status` | `active`, `resolved`, `forecast` | | | `data[].occurredAt` | string (date-time) | | | `data[].endedAt` | string or null (date-time) | | | `data[].firstObservedAt` | string (date-time) | Earliest time Y2 observed the incident, independent of when it occurred. | | `data[].lastObservedAt` | string (date-time) | Latest time Y2 observed or refreshed the incident, independent of when it occurred. | | `data[].resolutionReason` | string or null | | | `data[].quality` | `PublicIncidentQuality` | | | `data[].links` | `PublicResourceLinks` | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # List intel markets (https://y2.dev/docs/api/reference/intel/listMarketsV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # List intel markets Lists Y2-derived, Polymarket, Kalshi, and Manifold ontology markets keyed by \`marketKey\`. Filters by source and lifecycle status. Each market links to subject entities and may link to an underlying incident. `GET https://api.y2.dev/api/v2/markets` - Operation ID: `listMarketsV2` - Required scopes: `intel:finint` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `fields[markets]` | query | string | No | Comma-separated allowlist of market fields. Identity remains present. | | `source` | query | `y2`, `polymarket`, `kalshi`, `manifold`, `derived` | No | Filter by market source | | `status` | query | `open`, `resolved`, `cancelled` | No | Filter by lifecycle status | | `limit` | query | integer | No | Maximum number of markets to return | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of markets | `MarketListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `PublicMarket` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].source` | string | | | `data[].question` | string | | | `data[].category` | string | | | `data[].status` | string | | | `data[].resolvesAt` | string or null (date-time) | | | `data[].probability` | `PublicProbability` | | | `data[].volume` | `PublicMoney` | | | `data[].liquidity` | `PublicMoney` | | | `data[].createdAt` | string (date-time) | | | `data[].updatedAt` | string (date-time) | | | `data[].links` | `PublicResourceLinks` | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # List tagged emergent signals (https://y2.dev/docs/api/reference/intel/listSignalsV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # List tagged emergent signals Lists cached Y2 emergent SIGINT signals with ontology-aligned subjects, normalized subject keys, tags, source-report metadata, timestamps, and available geographic, observation, or entity links. Required scopes vary by \`domain\` filter: - \`domain=cyber\` or \`domain=technology\` -> \`intel:cyber\` or \`intel:explorer\` - \`domain=markets\` or \`domain=supply\_chain\` -> \`intel:finint\` or \`intel:explorer\` - other domain filters -> \`intel:explorer\` - no \`domain\` filter -> any of \`intel:cyber\`, \`intel:finint\`, or \`intel:explorer\` Public x402 callers receive global and community signals. Authenticated API-key callers also receive authorized workspace and private rows. `GET https://api.y2.dev/api/v2/signals` - Operation ID: `listSignalsV2` - Required scopes: `intel:explorer`, `intel:finint`, `intel:cyber` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `fields[signals]` | query | string | No | Comma-separated allowlist of signal fields. Identity remains present. | | `domain` | query | `cyber`, `markets`, `geopolitical`, `operational`, `supply_chain`, `policy`, `military`, `technology`, `other` | No | Filter by SIGINT domain | | `actionType` | query | `invest`, `patch`, `upgrade`, `strategy`, `hedge`, `monitor`, `mitigate`, `escalate`, `defer`, `allocate` | No | Filter by candidate action type | | `priority` | query | `low`, `medium`, `high`, `critical` | No | Filter by priority | | `subjectKey` | query | string | No | Filter by normalized subject key returned in `subjectKeys` | | `subjectKind` | query | `person`, `organization`, `country`, `region`, `vessel`, `aircraft`, `facility`, `asset`, `indicator`, `cve`, `malware_family`, `threat_actor`, `vendor`, `software`, `ai_model`, `api_service`, `protocol` | No | Filter by ontology subject kind | | `entityId` | query | string | No | Filter by linked ontology entity public ID | | `profileId` | query | string | No | Filter by source profile public ID | | `reportId` | query | string | No | Filter by source report public ID | | `countryCode` | query | string | No | Filter by ISO-like country code when geo-linked | | `region` | query | string | No | Filter by region label when geo-linked | | `visibility` | query | `private`, `workspace`, `community`, `global` | No | Filter by signal visibility | | `q` | query | string | No | Text search across title, signal, decision, justification, tags, and subjects | | `sinceMs` | query | integer (int64) | No | Lower bound on signal extraction timestamp as Unix milliseconds | | `untilMs` | query | integer (int64) | No | Upper bound on signal extraction timestamp as Unix milliseconds | | `limit` | query | integer | No | Maximum number of signals to return | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of tagged emergent signals | `SignalListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `PublicSignal` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].visibility` | string | | | `data[].reportId` | string | | | `data[].profileId` | string | | | `data[].profileName` | string or null | | | `data[].profileTopic` | string or null | | | `data[].reportTopic` | string or null | | | `data[].occurredAt` | string (date-time) | | | `data[].reportGeneratedAt` | string (date-time) | | | `data[].domain` | string | | | `data[].actionType` | string | | | `data[].priority` | string | | | `data[].confidence` | number | | | `data[].inferenceType` | string | | | `data[].timeHorizon` | string | | | `data[].title` | string | | | `data[].signal` | string | | | `data[].decision` | string | | | `data[].justification` | string | | | `data[].summary` | string or null | | | `data[].subjects[]` | array of object | | | `data[].tags[]` | array of string | | | `data[].sources[]` | array of object | | | `data[].geometry` | `GeoJSONPoint` | WGS 84 point with longitude first, then latitude. | | `data[].location` | `PublicObservationLocation` | | | `data[].relationships` | object | | | `meta` | object | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `meta.filters` | object | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # List threat actor entities (https://y2.dev/docs/api/reference/intel/listThreatActorsV2/) Endpoint Reference[Intel](https://y2.dev/docs/api/reference/intel) # List threat actor entities Lists \`kind=threat\_actor\` ontology entities. Equivalent to \`GET /api/v2/entities?kind=threat\_actor\&q=...\`. `GET https://api.y2.dev/api/v2/cyber/actors` - Operation ID: `listThreatActorsV2` - Required scopes: `intel:cyber` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `fields[entities]` | query | string | No | Comma-separated allowlist of entity fields. Identity and links remain present. | | `q` | query | string | No | Full-text search on `canonicalName` | | `limit` | query | integer | No | Maximum number of threat actors to return | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of threat actor entities | `ThreatActorListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `PublicEntity` | Entities filtered to `kind=threat_actor` | | `data[].cve` | `CVESummary` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | | | `data[].type` | string | | | `data[].kind` | `EntityKind` | | | `data[].name` | string | | | `data[].aliases[]` | array of string | | | `data[].externalIds` | object | | | `data[].attributes` | object | | | `data[].footprint` | object | | | `data[].createdAt` | string (date-time) | | | `data[].updatedAt` | string (date-time) | | | `data[].links` | `PublicResourceLinks` | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # News (https://y2.dev/docs/api/reference/news/) Endpoint Reference # News News Terminal items, feeds, and AI recaps [GET /news](https://y2.dev/docs/api/reference/news/listNews): List news items [GET /news/recaps](https://y2.dev/docs/api/reference/news/listRecaps): List AI-generated recaps [GET /news/feeds](https://y2.dev/docs/api/reference/news/listFeeds): List available news feeds --- # List available news feeds (https://y2.dev/docs/api/reference/news/listFeeds/) Endpoint Reference[News](https://y2.dev/docs/api/reference/news) # List available news feeds Lists news feed topics and descriptions. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/news/feeds` - Operation ID: `listFeeds` - Required scopes: `news:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of available feeds | `FeedListResponse` | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `Feed` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | `TopicEnum` | Available Y2 News Terminal feed topics | | `data[].name` | string | Human-readable name | | `data[].shortLabel` | string | Compact display name | | `data[].description` | string | Feed description | | `data[].group` | string | Machine-readable topic group ID | | `data[].groupLabel` | string | Human-readable topic group name | | `data[].color` | string | UI gradient classes associated with the feed | | `data[].ingestOntology` | boolean | Whether eligible signals can enter the OSINT ontology pipeline | | `meta` | object | | | `meta.count` | integer | | | `meta.defaultTopics[]` | array of `TopicEnum` | | --- # List news items (https://y2.dev/docs/api/reference/news/listNews/) Endpoint Reference[News](https://y2.dev/docs/api/reference/news) # List news items Lists cached Y2 News Terminal items with topic filters and pagination. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/news` - Operation ID: `listNews` - Required scopes: `news:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `topics` | query | string | No | Comma-separated list of topics to filter by. Use `GET /news/feeds` to discover the current topic catalog. Default: crypto, geopolitics, macro, equities, ai, energy | | `limit` | query | integer | No | Maximum number of items to return | | `countryCode` | query | string | No | Filter by canonical ISO 3166-1 alpha-2 country code. When supplied without `topics`, the query searches every News Terminal topic. | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson` | No | Use `ndjson` for row-oriented streaming output. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of news items | `NewsListResponse` | | 400 | Invalid topics | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 503 | News cache is initializing | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `NewsItem` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].title` | string | | | `data[].summary` | string | | | `data[].content` | string | | | `data[].publishedAt` | string (date-time) | | | `data[].topics[]` | array of string | | | `data[].sentiment` | object | | | `data[].sources[]` | array of `NewsSource` | | | `data[].author` | string or null | | | `data[].links` | object | | | `data[].geography` | object or null | Normalized country, region, location, coordinates, and resolver provenance. | | `meta` | object | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `meta.topics[]` | array of `TopicEnum` | | | `meta.countryCode` | string or null | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # List AI-generated recaps (https://y2.dev/docs/api/reference/news/listRecaps/) Endpoint Reference[News](https://y2.dev/docs/api/reference/news) # List AI-generated recaps Lists AI-generated recaps for selected topics and timeframe. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/news/recaps` - Operation ID: `listRecaps` - Required scopes: `news:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `topics` | query | string | No | Comma-separated list of topics. Use `GET /news/feeds` to discover the current topic catalog. | | `timeframe` | query | `TimeframeEnum` | No | Time period for recaps | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Topic recaps | `RecapResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `meta` | object | | | `meta.timeframe` | `TimeframeEnum` | Time period for recap data | | `meta.topics[]` | array of `TopicEnum` | | --- # Ontology Ledger (https://y2.dev/docs/api/reference/ontology-ledger/) Endpoint Reference # Ontology Ledger Read and append workspace ledger records. Records contain subjects, designators, observations, and claims with verification states and valid-time intervals. Read a subject at a record time and a valid time. Export records as NDJSON or STIX 2.1. Use a workspace-bound key with \`ledger:read\` or \`ledger:write\`. x402 is not supported. [GET /api/v2/ledger/subjects](https://y2.dev/docs/api/reference/ontology-ledger/listLedgerSubjectsV2): List ledger subjects [POST /api/v2/ledger/subjects](https://y2.dev/docs/api/reference/ontology-ledger/openLedgerSubjectV2): Open a ledger subject [GET /api/v2/ledger/subjects/{subjectId}](https://y2.dev/docs/api/reference/ontology-ledger/getLedgerSubjectV2): Fold a ledger subject [GET /api/v2/ledger/subjects/{subjectId}/stix](https://y2.dev/docs/api/reference/ontology-ledger/getLedgerSubjectStixV2): Export a ledger subject as STIX 2.1 [GET /api/v2/ledger/records](https://y2.dev/docs/api/reference/ontology-ledger/listLedgerRecordsV2): Export sealed ledger lines [POST /api/v2/ledger/records](https://y2.dev/docs/api/reference/ontology-ledger/appendLedgerRecordV2): Append a ledger record [GET /api/v2/ledger/verify](https://y2.dev/docs/api/reference/ontology-ledger/verifyLedgerV2): Verify the ledger seal --- # Append a ledger record (https://y2.dev/docs/api/reference/ontology-ledger/appendLedgerRecordV2/) Endpoint Reference[Ontology Ledger](https://y2.dev/docs/api/reference/ontology-ledger) # Append a ledger record Requires a workspace-bound API key with ledger:write and an owner, admin, or member role. Appends one designator, observation, or claim. A designator with the same kind, namespace, and normalized value is reused (200, created false). Every claim cites at least one observation. The first line of a claim key supersedes nothing. Every later line, including a retraction, must supersede the current head, or the request fails with 409. Verification must be one the cited evidence supports: cross-linked and corroborated need retrievals of two different pages. Analytic means the only support is an analyst note. Other rule failures return 400 with the rule codes in detail. Send an Idempotency-Key header to make retries safe. `POST https://api.y2.dev/api/v2/ledger/records` - Operation ID: `appendLedgerRecordV2` - Required scopes: `ledger:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated retry key retained for 24 hours. Repeating the same key and canonical JSON body returns the original resource. Changing the body returns `409 IDEMPOTENCY_CONFLICT`. | ## Request body `application/json`: `LedgerRecordAppendRequest` (required) ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Designator reused, or an idempotent replay. | `LedgerRecordAppendResponse` | | 201 | Record appended. | `LedgerRecordAppendResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 409 | Resource conflict (e.g., webhook in use) | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.id` | string | | | `data.type` | string | | | `data.kind` | `subject`, `designator`, `observation`, `assertion` | | | `data.seq` | integer | | | `data.hash` | string | | | `data.line` | string | The exact canonical JSON line. Its SHA-256 without the hash field is hash. | | `data.record` | object | The parsed line, in the framework's snake_case field names. | | `data.created` | boolean | | --- # Export a ledger subject as STIX 2.1 (https://y2.dev/docs/api/reference/ontology-ledger/getLedgerSubjectStixV2/) Endpoint Reference[Ontology Ledger](https://y2.dev/docs/api/reference/ontology-ledger) # Export a ledger subject as STIX 2.1 Requires a workspace-bound API key with \`ledger:read\`. Exports the subject's fold as a STIX 2.1 bundle. Subjects become identity objects. Email, handle, domain, hostname, URL, and ASN designators become cyber-observable objects. Claims become relationship objects with confidence, start\_time, stop\_time, and cited observations as external references. Verification state and the claim key travel in a property extension. An unconfirmed same-as exports as related-to. Duplicate-of and attributed-to are never emitted. history=true adds retracted heads as revoked relationships. STIX ids carry the SHA-256 digest of a per-workspace key in UUID form, so they are stable and do not reveal the workspace. An explicit validAt cursor scopes object IDs to that valid-time snapshot. A reassertion after revocation starts a new relationship ID. If the bounded subject neighborhood is incomplete, returns HTTP 400 VALIDATION\_ERROR. Export the paginated ledger records and project the complete log offline instead. `GET https://api.y2.dev/api/v2/ledger/subjects/{subjectId}/stix` - Operation ID: `getLedgerSubjectStixV2` - Required scopes: `ledger:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `subjectId` | path | string | Yes | Ledger subject ID (sbj_ and 24 hex characters, from the public-ID digest strategy). | | `recordedAt` | query | string (date-time) | No | | | `validAt` | query | string (date-time) | No | | | `history` | query | boolean | No | Include retracted heads as revoked relationships. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | A STIX 2.1 bundle. | `StixBundle` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `type` | string | | | `id` | string | | | `objects[]` | array of object | | | `objects[].type` | string | | | `objects[].id` | string | | | `objects[].spec_version` | string | | --- # Fold a ledger subject (https://y2.dev/docs/api/reference/ontology-ledger/getLedgerSubjectV2/) Endpoint Reference[Ontology Ledger](https://y2.dev/docs/api/reference/ontology-ledger) # Fold a ledger subject Requires a workspace-bound API key with ledger:read. Returns the fold of one subject: the head of every claim key that touches it. recordedAt selects what the ledger had recorded by then. ValidAt keeps only heads whose valid interval contains that time. A designation outside validAt moves to unlinkedDesignations instead of disappearing. Retracted heads are listed separately. A pair with both a live same-as and a live distinct-from is contested. The fold picks no winner and never merges rows. Reads are bounded. Truncated is true when a budget was reached. `GET https://api.y2.dev/api/v2/ledger/subjects/{subjectId}` - Operation ID: `getLedgerSubjectV2` - Required scopes: `ledger:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `subjectId` | path | string | Yes | Ledger subject ID (sbj_ and 24 hex characters, from the public-ID digest strategy). | | `recordedAt` | query | string (date-time) | No | Record-time cursor (ISO 8601). Omit for the latest record. | | `validAt` | query | string (date-time) | No | Valid-time cursor (ISO 8601). Omit to ignore valid intervals. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | The subject's fold at the requested clocks. | `LedgerSubjectResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `LedgerSubject` | | | `data.id` | string | | | `data.type` | string | | | `data.class` | `LedgerSubjectClass` | Subjects never change class. An assessment would be another claim. | | `data.label` | string or null | Value of the live preferred-label designator, or null. | | `data.openedAt` | string (date-time) | | | `data.anchor` | `LedgerEntityAnchor` or null | | | `data.cursor` | object | | | `data.designations[]` | array of `LedgerDesignation` | | | `data.unlinkedDesignations[]` | array of `LedgerDesignation` | Designations whose valid interval excludes validAt. The string is not forgotten. | | `data.claims[]` | array of `LedgerClaim` | Live heads that touch the subject or its designators. | | `data.retracted[]` | array of `LedgerClaim` | | | `data.contested[]` | array of object | | | `data.counterparts[]` | array of `LedgerSubjectSummary` | | | `data.designators[]` | array of `LedgerDesignator` | | | `data.evidence[]` | array of `LedgerObservation` | | | `data.truncated` | boolean | | --- # Export sealed ledger lines (https://y2.dev/docs/api/reference/ontology-ledger/listLedgerRecordsV2/) Endpoint Reference[Ontology Ledger](https://y2.dev/docs/api/reference/ontology-ledger) # Export sealed ledger lines Requires a workspace-bound API key with ledger:read. Returns ledger lines in record order after afterSeq. Each item carries the exact canonical line text, so a client can write NDJSON and run the offline reference checker (\`y2-ledger check\`) against it. The log is append-only: continuing from meta.nextAfterSeq never skips or repeats a line. `GET https://api.y2.dev/api/v2/ledger/records` - Operation ID: `listLedgerRecordsV2` - Required scopes: `ledger:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `afterSeq` | query | integer | No | Return lines with seq greater than this. Start at 0. | | `limit` | query | integer | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Sealed lines after afterSeq. | `LedgerRecordListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `LedgerRecord` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].kind` | `subject`, `designator`, `observation`, `assertion` | | | `data[].seq` | integer | | | `data[].hash` | string | | | `data[].line` | string | The exact canonical JSON line. Its SHA-256 without the hash field is hash. | | `data[].record` | object | The parsed line, in the framework's snake_case field names. | | `meta` | `LedgerSeqWindowMeta` | | | `meta.afterSeq` | integer | | | `meta.nextAfterSeq` | integer | | | `meta.hasMore` | boolean | | --- # List ledger subjects (https://y2.dev/docs/api/reference/ontology-ledger/listLedgerSubjectsV2/) Endpoint Reference[Ontology Ledger](https://y2.dev/docs/api/reference/ontology-ledger) # List ledger subjects Requires a workspace-bound API key with \`ledger:read\`. Lists workspace ledger subjects, newest first. Each subject includes its display label and any linked catalog entity. The display label uses the live preferred-label claim when available. With entityId, returns the subjects anchored to that entity in one bounded page. An anchor is an index between the workspace ledger and the shared catalog. It is neither a claim nor a merge. Unsupported or repeated query parameters are rejected with HTTP 400. `GET https://api.y2.dev/api/v2/ledger/subjects` - Operation ID: `listLedgerSubjectsV2` - Required scopes: `ledger:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `entityId` | query | string | No | Only subjects anchored to this public entity ID. | | `limit` | query | integer | No | | | `cursor` | query | string | No | Opaque next cursor from the previous page. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | A page of ledger subjects. | `LedgerSubjectListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `LedgerSubjectSummary` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].class` | `LedgerSubjectClass` | Subjects never change class. An assessment would be another claim. | | `data[].label` | string or null | Value of the live preferred-label designator, or null. | | `data[].openedAt` | string (date-time) | | | `data[].anchor` | `LedgerEntityAnchor` or null | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # Open a ledger subject (https://y2.dev/docs/api/reference/ontology-ledger/openLedgerSubjectV2/) Endpoint Reference[Ontology Ledger](https://y2.dev/docs/api/reference/ontology-ledger) # Open a ledger subject Requires a workspace-bound API key with ledger:write and an owner, admin, or member role. Appends a subject line with a class and no attributes: opening a row is not a finding. Names and identifiers arrive later as designators and claims. With entityId, the subject is anchored to that catalog entity. The entity kind must align with the class (for example, a vendor anchors an organization. A CVE anchors nothing). Send an Idempotency-Key header to make retries safe. A replay returns 200. `POST https://api.y2.dev/api/v2/ledger/subjects` - Operation ID: `openLedgerSubjectV2` - Required scopes: `ledger:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated retry key retained for 24 hours. Repeating the same key and canonical JSON body returns the original resource. Changing the body returns `409 IDEMPOTENCY_CONFLICT`. | ## Request body `application/json`: `LedgerSubjectCreateRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `class` | `LedgerSubjectClass` | Yes | Subjects never change class. An assessment would be another claim. | | `entityId` | string | No | Catalog entity to anchor the subject to. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Idempotent replay of an earlier open. | `LedgerSubjectCreatedResponse` | | 201 | Subject opened. | `LedgerSubjectCreatedResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 409 | Resource conflict (e.g., webhook in use) | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `LedgerSubjectSummary` | | | `data.id` | string | | | `data.type` | string | | | `data.class` | `LedgerSubjectClass` | Subjects never change class. An assessment would be another claim. | | `data.label` | string or null | Value of the live preferred-label designator, or null. | | `data.openedAt` | string (date-time) | | | `data.anchor` | `LedgerEntityAnchor` or null | | --- # Verify the ledger seal (https://y2.dev/docs/api/reference/ontology-ledger/verifyLedgerV2/) Endpoint Reference[Ontology Ledger](https://y2.dev/docs/api/reference/ontology-ledger) # Verify the ledger seal Requires a workspace-bound API key with \`ledger:read\`. Recomputes the SHA-256 seal for lines after \`afterSeq\`. Checks canonical JSON, line hashes, consecutive \`seq\` values, and each \`prev\` reference to the previous line. Rules that look up earlier records are enforced at append time and by the offline checker over a full export. `GET https://api.y2.dev/api/v2/ledger/verify` - Operation ID: `verifyLedgerV2` - Required scopes: `ledger:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `afterSeq` | query | integer | No | Return lines with seq greater than this. Start at 0. | | `limit` | query | integer | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Seal verification for the window. | `LedgerVerifyResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.ok` | boolean | | | `data.checked` | integer | | | `data.problems[]` | array of object | | | `meta` | `LedgerSeqWindowMeta` | | | `meta.afterSeq` | integer | | | `meta.nextAfterSeq` | integer | | | `meta.hasMore` | boolean | | --- # OSINT (https://y2.dev/docs/api/reference/osint/) Endpoint Reference # OSINT Situation Room events, feeds, country data, and source health [GET /osint/events](https://y2.dev/docs/api/reference/osint/listOsintEvents): List threat events [GET /osint/map](https://y2.dev/docs/api/reference/osint/listOsintMapEvents): List map events with coordinates [GET /osint/cii](https://y2.dev/docs/api/reference/osint/listCII): Conflict Indicators Index [GET /osint/countries/{countryCode}/brief](https://y2.dev/docs/api/reference/osint/getCountryBrief): AI-generated intelligence brief [GET /osint/countries/{countryCode}/markets](https://y2.dev/docs/api/reference/osint/getCountryStockIndex): Stock market index [GET /osint/countries/{countryCode}/predictions](https://y2.dev/docs/api/reference/osint/getCountryPredictions): Prediction markets [GET /osint/countries/{countryCode}/news](https://y2.dev/docs/api/reference/osint/getCountryNews): Country-specific news [GET /osint/countries/{countryCode}/cii](https://y2.dev/docs/api/reference/osint/getCountryCII): Country instability index [GET /osint/military-posture](https://y2.dev/docs/api/reference/osint/listMilitaryPosture): Military posture by theater [GET /osint/aircraft](https://y2.dev/docs/api/reference/osint/listAircraft): Tracked military aircraft [GET /osint/vessels](https://y2.dev/docs/api/reference/osint/listVessels): Naval vessel positions [GET /osint/gps-jamming](https://y2.dev/docs/api/reference/osint/listGPSJamming): GPS interference zones [GET /osint/sources/status](https://y2.dev/docs/api/reference/osint/listSourceStatus): Data source health [GET /osint/cyber-threats](https://y2.dev/docs/api/reference/osint/listCyberThreats): List cyber threat indicators [GET /osint/prediction-markets](https://y2.dev/docs/api/reference/osint/listPredictionMarkets): List prediction markets [GET /osint/y2-events](https://y2.dev/docs/api/reference/osint/listY2Events): Y2 report-extracted events [GET /osint/regional](https://y2.dev/docs/api/reference/osint/listOsintRegionalEvents): Search regional OSINT events [GET /osint/finint](https://y2.dev/docs/api/reference/osint/listFinintIndicators): Financial intelligence indicators --- # AI-generated intelligence brief (https://y2.dev/docs/api/reference/osint/getCountryBrief/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # AI-generated intelligence brief Returns a periodically generated, cached intelligence brief for a country. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/countries/{countryCode}/brief` - Operation ID: `getCountryBrief` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `countryCode` | path | string | Yes | ISO 3166-1 alpha-2 country code | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Intelligence brief for the country | `IntelBriefResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Brief not available for this country | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.briefText` | string | AI-generated intelligence brief text | | `data.generatedAt` | integer (int64) | Generation time as Unix timestamp (milliseconds) | | `data.generatedAtISO` | string (date-time) | | | `data.publishedAt` | string (date-time) | | --- # Country instability index (https://y2.dev/docs/api/reference/osint/getCountryCII/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Country instability index Returns a country's Conflict Indicators Index (CII) score, baseline, delta, and components. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/countries/{countryCode}/cii` - Operation ID: `getCountryCII` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `countryCode` | path | string | Yes | ISO 3166-1 alpha-2 country code | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Country instability index | `CountryCIIResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Conflict-indicator data is not available for this country | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data.countryCode` | string | ISO alpha-2 country code | | `data.countryName` | string | Country display name | | `data.value` | number | Current instability index (0-100) | | `data.baseline` | number | Baseline instability score for this country | | `data.delta` | number | Change from baseline | | `data.components` | object | Breakdown of instability components | | `data.computedAt` | integer (int64) | Computation time as Unix timestamp (milliseconds) | | `data.computedAtISO` | string (date-time) | Computation time as ISO 8601 string | | `meta` | object | | | `meta.countryCode` | string | | --- # Country-specific news (https://y2.dev/docs/api/reference/osint/getCountryNews/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Country-specific news Returns recent country news from the OSINT event pipeline. Uses the observation's indexed ISO country attribution, not countries merely mentioned or exposed to a regional event. Includes unexpired RSS, GDELT, ACLED, News Terminal, and Y2 report observations, excluding seismic and weather categories. Filters apply before pagination. Satellite detections do not consume the news result window. Results retain canonical observation IDs. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/countries/{countryCode}/news` - Operation ID: `getCountryNews` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `countryCode` | path | string | Yes | ISO 3166-1 alpha-2 country code | | `limit` | query | integer | No | Maximum number of news items to return | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson`, `geojson` | No | Select the JSON resource envelope, row-oriented NDJSON, or an RFC 7946 FeatureCollection. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Country-specific news items | `CountryNewsListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `CountryNewsItem` | | | `data[].temporality` | `EventTemporality` | Whether the event time is at or before the request time (plus 15 minutes of clock skew) — `current` — or after it — `forecast`. | | `data[].confidence` | number or null | Extraction confidence for report-derived rows; null for directly ingested rows. | | `data[].provenanceTier` | `primary`, `derived`, `synthesized`, `null` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | News item ID | | `data[].title` | string | News headline | | `data[].description` | string | News description/summary | | `data[].severity` | `OsintSeverityEnum` | Event severity level | | `data[].category` | `OsintEventCategoryEnum` | OSINT event category classification | | `data[].eventTime` | integer (int64) | Event time as Unix timestamp (milliseconds) | | `data[].eventTimeISO` | string (date-time) | | | `data[].occurredAt` | string (date-time) | | | `data[].observedAt` | string or null (date-time) | | | `data[].fetchedAt` | integer or null (int64) | | | `data[].fetchedAtISO` | string or null (date-time) | | | `data[].url` | string (uri) | Source URL | | `data[].sourceType` | string | Data source type | | `data[].countryCode` | string | Canonical ISO 3166-1 alpha-2 country code used by the indexed query. | | `data[].region` | string or null | Normalized OSINT region, when known. | | `data[].locationName` | string or null | Most specific resolved sovereign location, when known. | | `data[].coordinates` | object or null | | | `data[].geometry` | `GeoJSONPoint` | WGS 84 point with longitude first, then latitude. | | `data[].provenance` | object | | | `meta` | object | | | `meta.countryCode` | string | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | --- # Prediction markets (https://y2.dev/docs/api/reference/osint/getCountryPredictions/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Prediction markets Returns prediction-market probabilities and trading volumes for a country. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/countries/{countryCode}/predictions` - Operation ID: `getCountryPredictions` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `countryCode` | path | string | Yes | ISO 3166-1 alpha-2 country code | | `limit` | query | integer | No | Maximum number of predictions to return | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson` | No | `json` uses the resource envelope. `ndjson` streams one canonical row per line. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Prediction markets for the country | `CountryPredictionMarketListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `CountryPredictionMarket` | | | `data[].source` | string | Prediction market platform | | `data[].id` | string | | | `data[].type` | string | | | `data[].marketId` | string | Prediction market identifier | | `data[].title` | string | Market question/title | | `data[].probability` | number | Current probability (0-1) | | `data[].volume` | number | Trading volume | | `data[].liquidity` | number or null | Market liquidity (null if unavailable) | | `data[].outcomes[]` | array of `PredictionOutcome` | Typed outcome labels with normalized fractional probabilities. | | `data[].probabilityBasis` | string | | | `data[].volumeMeasurement` | `ProviderReportedMeasurement` | | | `data[].liquidityMeasurement` | `ProviderReportedMeasurement` | | | `data[].slug` | string or null | URL-friendly market slug (null if unavailable) | | `data[].polymarketUrl` | string (uri) | Polymarket URL for this market | | `data[].endDate` | string (date-time) | Market resolution date | | `meta` | object | | | `meta.page` | `PublicPageMeta` | | | `meta.countryCode` | string | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | --- # Stock market index (https://y2.dev/docs/api/reference/osint/getCountryStockIndex/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Stock market index Returns a country's primary stock index, weekly change, and currency. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/countries/{countryCode}/markets` - Operation ID: `getCountryStockIndex` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `countryCode` | path | string | Yes | ISO 3166-1 alpha-2 country code | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Stock market index for the country | `StockIndexResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Stock-index data is not available for this country | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.ticker` | string | Stock index ticker symbol | | `data.indexName` | string | Human-readable index name | | `data.currentPrice` | number (float) | Current index price/value | | `data.weeklyChange` | number (float) | Weekly change percentage | | `data.currency` | string | Currency code | | `data.fetchedAt` | integer (int64) | Data fetch time as Unix timestamp (milliseconds) | | `data.fetchedAtISO` | string (date-time) | Data fetch time as ISO 8601 string | --- # Tracked military aircraft (https://y2.dev/docs/api/reference/osint/listAircraft/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Tracked military aircraft Lists military aircraft positions from the adsb.lol community ADS-B network (aircraft the ADS-B database flags as military), classified by type such as tanker, AWACS, or fighter and assigned to the smallest configured theater. Positions refresh every 15 minutes, expire 30 minutes after \`lastSeenAt\`, and carry a \`source\` linking to the aircraft on adsb.lol. Data: adsb.lol, ODbL 1.0. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/aircraft` - Operation ID: `listAircraft` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `theater` | query | string | No | Filter by theater ID (e.g. "iran", "taiwan", "blacksea", "scs") | | `limit` | query | integer | No | Maximum number of aircraft to return | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson`, `geojson` | No | Select the JSON resource envelope, row-oriented NDJSON, or an RFC 7946 FeatureCollection. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of tracked military aircraft | `AircraftListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `AircraftTrack` | | | `data[].id` | string | Public observation identifier for this position. | | `data[].type` | string | | | `data[].icao24` | string | ICAO 24-bit transponder address, lowercase hex. | | `data[].callsign` | string | Aircraft callsign, or `UNKNOWN`. | | `data[].registration` | string or null | Registration as reported by ADS-B, when known. | | `data[].typeCode` | string or null | ICAO type designator such as `KC135`, when known. | | `data[].squawk` | string or null | Transponder squawk, when known. | | `data[].aircraftType` | `fighter`, `tanker`, `awacs`, `recon`, `transport`, `bomber`, `drone`, `military_generic`, `unknown` | Y2's type classification. `military_generic` means only the ADS-B database military flag is known. | | `data[].operator` | string | Operating entity, or `unknown`. | | `data[].confidence` | `high`, `medium`, `low` | Classification confidence. | | `data[].coordinates` | object | | | `data[].geometry` | `GeoJSONPoint` | WGS 84 point with longitude first, then latitude. | | `data[].altitude` | number | Barometric altitude in meters; 0 on the ground. | | `data[].heading` | number | Track over ground in degrees true. | | `data[].speed` | number | Ground speed in meters per second. | | `data[].position` | object | | | `data[].motion` | object | | | `data[].theater` | string | Smallest configured theater containing the position. | | `data[].isInteresting` | boolean | Bomber, AWACS, reconnaissance aircraft, or an emergency squawk. | | `data[].lastSeenAt` | integer (int64) | Last seen time as Unix timestamp (milliseconds) | | `data[].lastSeenAtISO` | string (date-time) | Last seen time as ISO 8601 string | | `data[].observedAt` | string (date-time) | The `lastSeenAt` value as ISO 8601. | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `meta` | object | | | `meta.emptyReason` | `no_matching_activity`, `source_degraded`, `source_stale`, `source_unavailable`, `source_unknown`, `null` | | | `meta.sourceStatus` | `healthy`, `degraded`, `stale`, `unavailable`, `unknown` | | | `meta.lastSuccessfulIngestAt` | string or null (date-time) | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | | `meta.filters` | object | | --- # Conflict Indicators Index (https://y2.dev/docs/api/reference/osint/listCII/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Conflict Indicators Index Lists Conflict Indicators Index (CII) values with 0–100 scores and recent-change deltas. Supports region and category filters. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/cii` - Operation ID: `listCII` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `region` | query | `OsintRegionEnum` | No | Filter by geographic region | | `category` | query | `OsintEventCategoryEnum` | No | Filter by event category | | `limit` | query | integer | No | Maximum number of items to return | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson` | No | `json` uses the resource envelope. `ndjson` streams one canonical row per line. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of CII items | `CIIListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `CIIItem` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | CII item ID | | `data[].category` | string | Conflict indicator category | | `data[].region` | `OsintRegionEnum` | Geographic region identifier | | `data[].value` | number | Conflict indicator value (0-100) | | `data[].delta` | number | Recent change in value | | `data[].components` | object | Breakdown of indicator components | | `data[].computedAt` | integer (int64) | Computation time as Unix timestamp (milliseconds) | | `data[].computedAtISO` | string (date-time) | Computation time as ISO 8601 string | | `meta` | object | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | | `meta.filters` | object | | --- # List cyber threat indicators (https://y2.dev/docs/api/reference/osint/listCyberThreats/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # List cyber threat indicators Lists URLhaus malware URLs, Feodo Tracker C2 servers, and RSS cyber-feed indicators with malware family, tags, and host metadata. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/cyber-threats` - Operation ID: `listCyberThreats` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `severity` | query | `OsintSeverityEnum` | No | Filter by severity level | | `limit` | query | integer | No | Maximum number of threats to return | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson` | No | `json` uses the resource envelope. `ndjson` streams one canonical row per line. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of cyber threat indicators | `CyberThreatListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `CyberThreat` | | | `data[].id` | string | Stable public observation ID | | `data[].type` | string | | | `data[].sourceType` | `urlhaus`, `feodo`, `rss` | Threat intelligence source | | `data[].sourceId` | string | Source-specific identifier | | `data[].title` | string | Threat description | | `data[].description` | string or null | | | `data[].category` | `OsintEventCategoryEnum` | OSINT event category classification | | `data[].severity` | `OsintSeverityEnum` | Event severity level | | `data[].coordinates` | object or null | Country-centroid coordinates for geolocated infrastructure, null otherwise | | `data[].geometry` | `GeoJSONPoint` | WGS 84 point with longitude first, then latitude. | | `data[].locationName` | string or null | | | `data[].region` | `OsintRegionEnum` | Geographic region identifier | | `data[].countryCode` | string or null | ISO alpha-2 country code of threat origin | | `data[].eventTime` | integer (int64) | Provider occurrence time in Unix milliseconds: when URLhaus first saw the URL, or when Y2 observed a Feodo C2 server online. | | `data[].eventTimeISO` | string (date-time) | | | `data[].occurredAt` | string (date-time) | The `eventTime` value as ISO 8601. | | `data[].observedAt` | string or null (date-time) | When Y2 retrieved or last refreshed this indicator, independent of event time. | | `data[].temporality` | `EventTemporality` | Whether the event time is at or before the request time (plus 15 minutes of clock skew) — `current` — or after it — `forecast`. | | `data[].confidence` | number or null | Always null for directly ingested indicators. | | `data[].provenanceTier` | `primary`, `derived`, `synthesized`, `null` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].url` | string or null (uri) | Provider report page for URLhaus and Feodo rows (never the malicious URL itself), or the article link for RSS rows. | | `data[].threat` | object or null | Threat-specific metadata; null for RSS cyber-feed rows | | `meta` | object | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | | | `meta.filters` | object | | --- # Financial intelligence indicators (https://y2.dev/docs/api/reference/osint/listFinintIndicators/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Financial intelligence indicators Lists financial intelligence (FININT) indicators from FRED macroeconomic series, Yahoo Finance markets, and EIA energy data. Each includes current and previous values, percentage change, sparkline data, and active alerts. ### Aggregate and dimension rows Most indicators are US aggregates: one row per \`indicatorId\` (for example, \`EIA:WTI\`, \`FRED:DGS10\`). EIA also publishes per-dimension rows tagged with \`dimension\`, \`dimensionType\`, \`lat\`, and \`lon\`: - \`dimensionType=facility\`: reactor outages, such as \`EIA:NUKE\_OUTAGE:vogtle\` - \`dimensionType=rto\`: hourly US balancing-authority demand, such as \`EIA:RTO\_LOAD:PJM\` - \`dimensionType=port\`: monthly port-level crude imports, such as \`EIA:CRUDE\_IMPORT:houston\` Filter by \`dimensionType\` for dimension rows only. Aggregate rows set \`dimension\`, \`dimensionType\`, \`lat\`, and \`lon\` to null. Nuclear-outage rows with \`outagePct > 0\` publish \`economic\` map events to the OSINT cache. RTO and crude-import rows do not publish map events. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/finint` - Operation ID: `listFinintIndicators` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `category` | query | `rates`, `credit`, `inflation`, `labor`, `gdp`, `business`, `consumer`, `housing`, `money_supply`, `volatility`, `commodities`, `fx`, `equities`, `energy`, `crypto` | No | Filter by indicator category | | `source` | query | `fred`, `yfinance`, `eia` | No | Filter by data source | | `dimensionType` | query | `facility`, `rto`, `port`, `state` | No | Filter to per-dimension rows only (nuclear facilities, RTO balancing authorities, ports of entry, or US states). When provided, aggregate rows are excluded from the response. | | `limit` | query | integer | No | Maximum number of indicators to return | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson` | No | `json` uses the resource envelope. `ndjson` streams one canonical row per line. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of financial intelligence indicators | `FinintIndicatorListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `FinintIndicator` | | | `data[].period` | `FinintPeriod` | Provider reporting label or a timestamp tied to the selected quote. Labels are not inferred UTC boundaries. Null when the adapter has no supported timing. Never inferred from fetch time. | | `data[].provenance` | `FinintProvenance` | Bounded provider metadata retained with the current cached value, not an archived source payload or evidence of original publication/availability. Null for rows without captured metadata. This feed does not retain historical vintages. | | `data[].indicatorId` | string | Unique indicator key. Aggregate rows use `:` (e.g., `FRED:DGS10`, `YF:^GSPC`, `EIA:WTI`). Per-dimension rows use `::` (e.g., `EIA:NUKE_OUTAGE:vogtle`, `EIA:RTO_LOAD:PJM`, `EIA:CRUDE_IMPORT:houston`). | | `data[].source` | `fred`, `yfinance`, `eia` | Data source | | `data[].sourceUrl` | string or null (uri) | Canonical provider page for this indicator | | `data[].label` | string | Human-readable indicator name | | `data[].category` | `rates`, `credit`, `inflation`, `labor`, `gdp`, `business`, `consumer`, `housing`, `money_supply`, `volatility`, `commodities`, `fx`, `equities`, `energy`, `crypto` | Indicator category | | `data[].value` | number | Current indicator value | | `data[].previousValue` | number or null | Previous value (for change calculation) | | `data[].change` | number or null | Absolute change from previous value | | `data[].changePct` | number or null | Percentage change from previous value | | `data[].unit` | string or null | Value unit (e.g., "%", "$", "index", "$/bbl") | | `data[].recent[]` | array of object | Recent data points for sparkline rendering | | `data[].signals[]` | array of string | Active signal descriptions (threshold crossings) | | `data[].fetchedAt` | integer (int64) | Unix timestamp of last data fetch | | `data[].dimension` | string or null | Dimension key (e.g., `vogtle`, `PJM`, `houston`). Null on US-aggregate rows. | | `data[].dimensionType` | `facility`, `rto`, `port`, `state`, `null` | Dimension classifier. Null on US-aggregate rows. Currently only EIA emits per-dimension rows. | | `data[].lat` | number or null (double) | Latitude of the dimension (facility/RTO HQ/port). Null on aggregate rows. | | `data[].lon` | number or null (double) | Longitude of the dimension. Null on aggregate rows. | | `meta` | object | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | | `meta.filters` | object | Applied filter values | --- # GPS interference zones (https://y2.dev/docs/api/reference/osint/listGPSJamming/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # GPS interference zones Lists GPS interference zones inferred from ADS-B navigation-accuracy degradation and aggregated into H3 cells. > \*\*Status:\*\* Paused since October 26, 2026. The Wingbits feed that > supplied these zones was retired, so the operation returns an empty > collection with \`sourceStatus: unavailable\` until the feed is > re-sourced. \`/osint/aircraft\` and \`/osint/military-posture\` are > unaffected. Records expire 30 minutes after fetch. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/gps-jamming` - Operation ID: `listGPSJamming` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `severity` | query | `low`, `moderate`, `severe`, `critical` | No | Filter by interference severity | | `limit` | query | integer | No | Maximum number of zones to return | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson`, `geojson` | No | Select the JSON resource envelope, row-oriented NDJSON, or an RFC 7946 FeatureCollection. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of GPS interference zones | `GPSJammingListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `GPSJammingZone` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | Zone ID | | `data[].h3Index` | string | H3 hexagonal cell index | | `data[].coordinates` | object | | | `data[].sampleCount` | integer | Number of ADS-B samples in this cell | | `data[].aircraftCount` | integer | Number of distinct aircraft reporting | | `data[].navAccuracyAvg` | number | Average navigation accuracy category | | `data[].severity` | string | Severity classification of interference | | `data[].fetchedAt` | integer (int64) | Fetch time as Unix timestamp (milliseconds) | | `data[].fetchedAtISO` | string (date-time) | Fetch time as ISO 8601 string | | `meta` | object | | | `meta.emptyReason` | `no_matching_activity`, `source_degraded`, `source_stale`, `source_unavailable`, `source_unknown`, `null` | | | `meta.sourceStatus` | `healthy`, `degraded`, `stale`, `unavailable`, `unknown` | | | `meta.lastSuccessfulIngestAt` | string or null (date-time) | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | | `meta.filters` | object | | --- # Military posture by theater (https://y2.dev/docs/api/reference/osint/listMilitaryPosture/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Military posture by theater Lists Y2's theater posture assessments computed from adsb.lol military aircraft activity. Each includes a \`normal\`, \`elevated\`, or \`critical\` posture, aircraft counts by type, a strike assessment, and a \`source\` describing the computation. Posture covers the nine conflict theaters with calibrated thresholds (\`iran\`, \`blacksea\`, \`taiwan\`, \`israelgaza\`, \`emed\`, \`redsea\`, \`scs\`, \`korea\`, \`baltic\`). Assessments refresh every 15 minutes and expire after 30. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/military-posture` - Operation ID: `listMilitaryPosture` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `limit` | query | integer | No | Maximum number of items to return | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson`, `geojson` | No | Select the JSON resource envelope, row-oriented NDJSON, or an RFC 7946 FeatureCollection. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Military posture assessments by theater | `MilitaryPostureListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `MilitaryPostureItem` | | | `data[].id` | string | Public observation identifier for this assessment. | | `data[].type` | string | | | `data[].theater` | string | Theater identifier such as `iran`, `taiwan`, `blacksea`, or `scs`. | | `data[].posture` | `normal`, `elevated`, `critical` | Current military posture assessment | | `data[].aircraftCount` | integer | Military aircraft inside the theater at `computedAt`. | | `data[].breakdown` | object | Aircraft counts by type, the strike assessment, and up to 50 positions. | | `data[].computedAt` | integer (int64) | Assessment time as Unix timestamp (milliseconds) | | `data[].observedAt` | string (date-time) | Assessment time as ISO 8601. | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `meta` | object | | | `meta.emptyReason` | `no_matching_activity`, `source_degraded`, `source_stale`, `source_unavailable`, `source_unknown`, `null` | | | `meta.sourceStatus` | `healthy`, `degraded`, `stale`, `unavailable`, `unknown` | | | `meta.lastSuccessfulIngestAt` | string or null (date-time) | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | --- # List threat events (https://y2.dev/docs/api/reference/osint/listOsintEvents/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # List threat events Lists Situation Room threat events. Supports category and severity filters. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/events` - Operation ID: `listOsintEvents` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `temporality` | query | `EventTemporality` | No | `current` (default) returns events that have occurred or are under way, newest first; event times more than 15 minutes after the request are excluded. `forecast` returns scheduled, forecast, and speculative events dated after that point, soonest first. | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson`, `geojson` | No | Select the JSON resource envelope, row-oriented NDJSON, or an RFC 7946 FeatureCollection. | | `category` | query | `OsintEventCategoryEnum` | No | Filter by event category | | `severity` | query | `OsintSeverityEnum` | No | Filter by severity level | | `limit` | query | integer | No | Maximum number of events to return | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of OSINT threat events | `OsintEventListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `OsintEvent` | | | `data[].observedAt` | string or null (date-time) | When Y2 retrieved or last refreshed this observation, independent of event time. | | `data[].temporality` | `EventTemporality` | Whether the event time is at or before the request time (plus 15 minutes of clock skew) — `current` — or after it — `forecast`. | | `data[].confidence` | number or null | Extraction confidence for report-derived rows; null for directly ingested rows. | | `data[].provenanceTier` | `primary`, `derived`, `synthesized`, `null` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | Event ID | | `data[].sourceType` | string | Data source type | | `data[].sourceId` | string | Source-specific event identifier | | `data[].title` | string | Event title/headline | | `data[].description` | string | Detailed event description | | `data[].category` | `OsintEventCategoryEnum` | OSINT event category classification | | `data[].severity` | `OsintSeverityEnum` | Event severity level | | `data[].coordinates` | object or null | Geographic coordinates (null if unavailable) | | `data[].locationName` | string | Human-readable location name | | `data[].region` | `OsintRegionEnum` | Geographic region identifier | | `data[].countryCode` | string | ISO alpha-2 country code | | `data[].eventTime` | integer (int64) | Event time as Unix timestamp (milliseconds) | | `data[].eventTimeISO` | string (date-time) | Event time as ISO 8601 string | | `data[].fetchedAt` | integer or null (int64) | Data fetch time as Unix timestamp (milliseconds), null if unavailable | | `data[].fetchedAtISO` | string or null (date-time) | Data fetch time as ISO 8601 string, null if unavailable | | `data[].url` | string (uri) | Source URL for the event | | `data[].provenance` | `Y2EventProvenance` or null | Extraction provenance metadata. Populated only when `sourceType === "y2_report"`. Null for all other sources. Returned by `/osint/regional`. | | `meta` | object | | | `meta.page` | `PublicPageMeta` | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | | `meta.filters` | object | | --- # List map events with coordinates (https://y2.dev/docs/api/reference/osint/listOsintMapEvents/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # List map events with coordinates Lists geolocated OSINT events for map display. Excludes events without coordinates. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/map` - Operation ID: `listOsintMapEvents` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `region` | query | `OsintRegionEnum` | No | Filter by geographic region | | `limit` | query | integer | No | Maximum number of events to return | | `temporality` | query | `EventTemporality` | No | `current` (default) returns events that have occurred or are under way, newest first; event times more than 15 minutes after the request are excluded. `forecast` returns scheduled, forecast, and speculative events dated after that point, soonest first. | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson`, `geojson` | No | Select the JSON resource envelope, row-oriented NDJSON, or an RFC 7946 FeatureCollection. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of map events with coordinates | `OsintMapEventListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `OsintMapEvent` | | | `data[].observedAt` | string or null (date-time) | When Y2 retrieved or last refreshed this observation, independent of event time. | | `data[].temporality` | `EventTemporality` | Whether the event time is at or before the request time (plus 15 minutes of clock skew) — `current` — or after it — `forecast`. | | `data[].confidence` | number or null | Extraction confidence for report-derived rows; null for directly ingested rows. | | `data[].provenanceTier` | `primary`, `derived`, `synthesized`, `null` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | Event ID | | `data[].category` | `OsintEventCategoryEnum` | OSINT event category classification | | `data[].severity` | `OsintSeverityEnum` | Event severity level | | `data[].coordinates` | object | Geographic coordinates (always present: events without coordinates are excluded) | | `data[].title` | string | Event title/headline | | `data[].eventTime` | integer (int64) | Event time as Unix timestamp (milliseconds) | | `data[].eventTimeISO` | string (date-time) | Event time as ISO 8601 string | | `data[].sourceType` | string | Data source type | | `data[].description` | string | Detailed event description | | `data[].url` | string (uri) | Source URL for the event | | `data[].locationName` | string | Human-readable location name | | `data[].region` | `OsintRegionEnum` | Geographic region identifier | | `data[].countryCode` | string | ISO alpha-2 country code | | `meta` | object | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | | `meta.filters` | object | | --- # Search regional OSINT events (https://y2.dev/docs/api/reference/osint/listOsintRegionalEvents/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Search regional OSINT events Searches OSINT events across RSS, USGS, GDACS, ACLED, direct News Terminal items, other threat feeds, and Y2 report extractions. Filters by region, country code, bounding box, radius, source, category, severity, time window, or title text. Text search falls back to description substrings. All filters compose with AND, including coordinate and region filters. Events without coordinates remain unless \`requireCoordinates=true\` or a bounding-box or radius filter is supplied. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/regional` - Operation ID: `listOsintRegionalEvents` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `q` | query | string | No | Full-text search on title (also substring-matches description) | | `region` | query | `OsintRegionEnum` | No | Filter by geographic region | | `countryCode` | query | string | No | Filter by ISO 3166-1 alpha-2 country code | | `sourceType` | query | `usgs`, `rss`, `acled`, `gdelt`, `gdacs`, `eonet`, `firms`, `opensky`, `wingbits`, `adsblol`, `usni`, `polymarket`, `kalshi`, `urlhaus`, `feodo`, `y2_report`, `manual`, `fred`, `yfinance`, `eia`, `nvd`, `cisa_kev`, `cve_list`, `osv`, `intel_expansion`, `intel_discovery`, `news_terminal` | No | Filter by one data source. Omit to include all | | `category` | query | `OsintEventCategoryEnum` | No | Filter by event category | | `severity` | query | `OsintSeverityEnum` | No | Filter by severity level | | `bbox` | query | string | No | WGS 84 bounding box as `west,south,east,north` (longitude/latitude order). Exactly four values are required and antimeridian-crossing boxes are not accepted. | | `nearLat` | query | number | No | Center latitude for radius filter (requires nearLon + radiusKm) | | `nearLon` | query | number | No | Center longitude for radius filter (requires nearLat + radiusKm) | | `radiusKm` | query | number | No | Search radius in kilometers (requires nearLat + nearLon) | | `requireCoordinates` | query | boolean | No | When true, returns only rows with latitude and longitude | | `since` | query | integer | No | Inclusive lower bound on eventTime (epoch milliseconds) | | `until` | query | integer | No | Inclusive upper bound on eventTime (epoch milliseconds) | | `datetime` | query | string | No | OGC-style RFC 3339 instant or inclusive `start/end` interval. Use `..` for an open boundary. Cannot be combined with legacy `since` or `until`. | | `limit` | query | integer | No | Maximum number of events to return | | `temporality` | query | `EventTemporality` | No | `current` (default) returns events that have occurred or are under way, newest first; event times more than 15 minutes after the request are excluded. `forecast` returns scheduled, forecast, and speculative events dated after that point, soonest first. | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson`, `geojson` | No | Select the JSON resource envelope, row-oriented NDJSON, or an RFC 7946 FeatureCollection. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of regional events across all sources | `OsintEventListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `OsintEvent` | | | `data[].observedAt` | string or null (date-time) | When Y2 retrieved or last refreshed this observation, independent of event time. | | `data[].temporality` | `EventTemporality` | Whether the event time is at or before the request time (plus 15 minutes of clock skew) — `current` — or after it — `forecast`. | | `data[].confidence` | number or null | Extraction confidence for report-derived rows; null for directly ingested rows. | | `data[].provenanceTier` | `primary`, `derived`, `synthesized`, `null` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | Event ID | | `data[].sourceType` | string | Data source type | | `data[].sourceId` | string | Source-specific event identifier | | `data[].title` | string | Event title/headline | | `data[].description` | string | Detailed event description | | `data[].category` | `OsintEventCategoryEnum` | OSINT event category classification | | `data[].severity` | `OsintSeverityEnum` | Event severity level | | `data[].coordinates` | object or null | Geographic coordinates (null if unavailable) | | `data[].locationName` | string | Human-readable location name | | `data[].region` | `OsintRegionEnum` | Geographic region identifier | | `data[].countryCode` | string | ISO alpha-2 country code | | `data[].eventTime` | integer (int64) | Event time as Unix timestamp (milliseconds) | | `data[].eventTimeISO` | string (date-time) | Event time as ISO 8601 string | | `data[].fetchedAt` | integer or null (int64) | Data fetch time as Unix timestamp (milliseconds), null if unavailable | | `data[].fetchedAtISO` | string or null (date-time) | Data fetch time as ISO 8601 string, null if unavailable | | `data[].url` | string (uri) | Source URL for the event | | `data[].provenance` | `Y2EventProvenance` or null | Extraction provenance metadata. Populated only when `sourceType === "y2_report"`. Null for all other sources. Returned by `/osint/regional`. | | `meta` | object | | | `meta.page` | `PublicPageMeta` | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | | `meta.filters` | object | | --- # List prediction markets (https://y2.dev/docs/api/reference/osint/listPredictionMarkets/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # List prediction markets Lists Polymarket and Kalshi markets by descending volume with probabilities, volume, and outcomes. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/prediction-markets` - Operation ID: `listPredictionMarkets` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `countryCode` | query | string | No | Filter by ISO alpha-2 country code (e.g., US, CN, RU) | | `limit` | query | integer | No | Maximum number of markets to return | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson` | No | `json` uses the resource envelope. `ndjson` streams one canonical row per line. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of prediction markets | `PredictionMarketListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `PredictionMarket` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].marketId` | string | Market identifier (Polymarket event ID or Kalshi ticker) | | `data[].title` | string | Market question | | `data[].eventTitle` | string or null | Parent event title | | `data[].probability` | number | Current normalized probability from 0 to 1. | | `data[].volume` | number | Total trading volume | | `data[].liquidity` | number | Current liquidity | | `data[].outcomes[]` | array of `PredictionOutcome` | Typed outcome labels with normalized fractional probabilities. | | `data[].probabilityBasis` | string | | | `data[].volumeMeasurement` | `ProviderReportedMeasurement` | | | `data[].url` | string or null | Market URL (Polymarket or Kalshi) | | `data[].endDate` | string or null | Market close date | | `data[].source` | `polymarket`, `kalshi` | Prediction market platform | | `meta` | object | | | `meta.page` | `PublicPageMeta` | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | | | `meta.filters` | object | | --- # Data source health (https://y2.dev/docs/api/reference/osint/listSourceStatus/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Data source health Lists health for every monitored OSINT source that has reported at least once: derived freshness status, expected cadence, staleness threshold, circuit-breaker state, and failure counts. Retired sources are omitted. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/sources/status` - Operation ID: `listSourceStatus` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Data source health statuses | `SourceStatusListResponse` | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `SourceStatus` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].sourceType` | string | Data source identifier | | `data[].status` | `healthy`, `degraded`, `stale`, `unavailable`, `unknown` | Source health. `healthy` means the source succeeded within `staleAfterSeconds`; an untripped circuit breaker whose last success is older reports `stale`. Use this field, not `state`, to judge freshness. | | `data[].lastSuccessfulIngestAt` | string or null (date-time) | Last successful ingest time, or null if the source has never succeeded | | `data[].expectedCadenceSeconds` | integer | How often the source is expected to refresh | | `data[].staleAfterSeconds` | integer | Age of the last success after which the source reports `stale` | | `data[].state` | `closed`, `open`, `half_open` | Circuit breaker state. `closed` means requests are not being blocked; it does not mean the source is fresh. | | `data[].failureCount` | integer | Number of consecutive failures | | `data[].lastSuccessAt` | integer (int64) | Last successful fetch time (milliseconds) | | `data[].lastSuccessAtISO` | string or null (date-time) | Last successful fetch time as ISO 8601 string | | `data[].lastFailureAt` | integer (int64) | Last failure time (milliseconds) | | `data[].lastFailureAtISO` | string or null (date-time) | Last failure time as ISO 8601 string | | `data[].lastError` | string | Most recent error message | | `meta` | object | | | `meta.count` | integer | | --- # Naval vessel positions (https://y2.dev/docs/api/reference/osint/listVessels/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Naval vessel positions Lists USNI fleet-tracker positions for carrier strike groups and warships. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/vessels` - Operation ID: `listVessels` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `region` | query | string | No | Filter by region name | | `limit` | query | integer | No | Maximum number of vessels to return | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson`, `geojson` | No | Select the JSON resource envelope, row-oriented NDJSON, or an RFC 7946 FeatureCollection. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of naval vessel positions | `VesselListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `NavalVessel` | | | `data[].id` | string | Vessel ID | | `data[].name` | string | Vessel name | | `data[].hullNumber` | string | Hull number designation | | `data[].vesselType` | string | Vessel type classification | | `data[].operator` | string | Operating navy | | `data[].region` | string | Deployment region | | `data[].strikeGroup` | string | Strike group assignment | | `data[].status` | string | Current operational status | | `data[].coordinates` | object | | | `data[].confidence` | `low`, `medium`, `high` | Categorical position confidence from the source model. | | `data[].source` | string | Data source | | `data[].fetchedAt` | integer (int64) | Fetch time as Unix timestamp (milliseconds) | | `data[].fetchedAtISO` | string (date-time) | Fetch time as ISO 8601 string | | `meta` | object | | | `meta.emptyReason` | `no_matching_activity`, `source_degraded`, `source_stale`, `source_unavailable`, `source_unknown`, `null` | | | `meta.sourceStatus` | `healthy`, `degraded`, `stale`, `unavailable`, `unknown` | | | `meta.lastSuccessfulIngestAt` | string or null (date-time) | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | | `meta.filters` | object | | --- # Y2 report-extracted events (https://y2.dev/docs/api/reference/osint/listY2Events/) Endpoint Reference[OSINT](https://y2.dev/docs/api/reference/osint) # Y2 report-extracted events Lists Y2SOURCE events extracted from intelligence reports with classification, confidence, entities, and originating-report provenance. Returns only \`sourceType: "y2\_report"\` events. Supports category, severity, and country-code filters. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/osint/y2-events` - Operation ID: `listY2Events` - Required scopes: `osint:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `category` | query | `OsintEventCategoryEnum` | No | Filter by event category | | `severity` | query | `OsintSeverityEnum` | No | Filter by severity level | | `countryCode` | query | string | No | Filter by ISO alpha-2 country code (e.g., US, CN, RU) | | `limit` | query | integer | No | Maximum number of events to return | | `temporality` | query | `EventTemporality` | No | `current` (default) returns events that have occurred or are under way, newest first; event times more than 15 minutes after the request are excluded. `forecast` returns scheduled, forecast, and speculative events dated after that point, soonest first. | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson`, `geojson` | No | Select the JSON resource envelope, row-oriented NDJSON, or an RFC 7946 FeatureCollection. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of Y2 report-extracted events with provenance | `Y2EventListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `Y2Event` | | | `data[].observedAt` | string or null (date-time) | When Y2 retrieved or last refreshed this observation, independent of event time. | | `data[].temporality` | `EventTemporality` | Whether the event time is at or before the request time (plus 15 minutes of clock skew) — `current` — or after it — `forecast`. | | `data[].confidence` | number or null | Extraction confidence for report-derived rows; null for directly ingested rows. | | `data[].provenanceTier` | `primary`, `derived`, `synthesized`, `null` | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | Event ID | | `data[].sourceType` | `y2_report` | Data source type (always "y2_report") | | `data[].title` | string | Event title/headline | | `data[].description` | string | Detailed event description | | `data[].category` | `OsintEventCategoryEnum` | OSINT event category classification | | `data[].severity` | `OsintSeverityEnum` | Event severity level | | `data[].coordinates` | object or null | Geographic coordinates (null if unavailable) | | `data[].locationName` | string | Human-readable location name | | `data[].countryCode` | string | ISO alpha-2 country code | | `data[].region` | `OsintRegionEnum` | Geographic region identifier | | `data[].eventTime` | integer (int64) | Event time as Unix timestamp (milliseconds) | | `data[].url` | string | Link to the originating report | | `data[].provenance` | `Y2EventProvenance` or null | Extraction provenance metadata linking to the Y2 report | | `meta` | object | | | `meta.count` | integer | | | `meta.limit` | integer | | | `meta.hasMore` | boolean | Whether more results are available beyond the current limit | --- # Payments (https://y2.dev/docs/api/reference/payments/) Endpoint Reference # Payments x402 receipt lookup [GET /x402/receipts/{nonce}](https://y2.dev/docs/api/reference/payments/getX402Receipt): x402 receipt lookup --- # x402 receipt lookup (https://y2.dev/docs/api/reference/payments/getX402Receipt/) Endpoint Reference[Payments](https://y2.dev/docs/api/reference/payments) # x402 receipt lookup Returns sanitized x402 payment status by nonce. Public: anyone with the nonce can read the receipt status. `GET https://api.y2.dev/api/v1/x402/receipts/{nonce}` - Operation ID: `getX402Receipt` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `nonce` | path | string | Yes | Payment authorization nonce. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Sanitized x402 payment receipt | `X402ReceiptResponse` | | 400 | Invalid request parameters | | | 404 | Resource not found | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `nonce` | string | | | `payerAddress` | string | | | `endpoint` | string | | | `amountUsd` | number (double) | | | `network` | string | | | `status` | `verify_failed`, `rate_limited`, `replay_blocked`, `settle_failed`, `settled`, `handler_failed` | | | `txHash` | string | | | `settledAt` | number | Epoch milliseconds. | | `error` | string or null | | --- # Profiles (https://y2.dev/docs/api/reference/profiles/) Endpoint Reference # Profiles Profile subscriptions, ownership, and configuration [GET /profiles](https://y2.dev/docs/api/reference/profiles/listProfiles): List subscribed profiles [POST /profiles](https://y2.dev/docs/api/reference/profiles/createProfile): Create an intelligence profile [GET /profiles/{profileId}](https://y2.dev/docs/api/reference/profiles/getProfile): Get a subscribed profile [PATCH /profiles/{profileId}](https://y2.dev/docs/api/reference/profiles/patchProfile): Update a profile (partial) [DELETE /profiles/{profileId}](https://y2.dev/docs/api/reference/profiles/deleteProfile): Delete a profile [PUT /profiles/{profileId}](https://y2.dev/docs/api/reference/profiles/updateProfile): Update a profile (full replacement) --- # Create an intelligence profile (https://y2.dev/docs/api/reference/profiles/createProfile/) Endpoint Reference[Profiles](https://y2.dev/docs/api/reference/profiles) # Create an intelligence profile Creates an \`active\` intelligence profile owned by the authenticated user with the supplied configuration. `POST https://api.y2.dev/api/v1/profiles` - Operation ID: `createProfile` - Required scopes: `profiles:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated retry key retained for 24 hours. Repeating the same key and canonical JSON body returns the original resource. Changing the body returns `409 IDEMPOTENCY_CONFLICT`. | ## Request body `application/json`: `ProfileCreateRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | Profile display name | | `topic` | string | Yes | Topic description for research | | `frequency` | `FrequencyEnum` | Yes | Report generation frequency | | `scheduleTimeOfDay` | string | Yes | Time of day for report generation (HH:mm, UTC) | | `scheduleDayOfWeek` | string | No | Weekday name (case-insensitive) or 0-6 (Sunday-Saturday), required for weekly profiles | | `scheduleDayOfMonth` | string | No | Day of month for monthly profiles | | `customPrompt` | string | No | Custom system prompt for the AI analyst | | `tags[]` | array of string | No | Tags for categorization | | `isCommunity` | boolean | No | Whether this is a community (public) profile | | `blufStructure` | string | No | Custom BLUF report structure template | | `recursionConfig` | `RecursionConfigInput` | No | | | `recursionConfig.enabled` | boolean | Yes | When false, runs root-topic research without child subtopics. | | `recursionConfig.maxDepth` | integer | Yes | Requested child-layer depth. The current runtime defaults an enabled value of `0` to `1` and caps values above `1` at one child layer. This field is ignored when `enabled` is false. | | `recursionConfig.strategy` | `breadth-first`, `depth-first`, `hybrid` | Yes | Stored strategy preference. The current report engine executes its implemented breadth-first child-search path for every value. | | `searchConfig` | object | No | Web search configuration | | `searchConfig.searchDepth` | `basic`, `advanced` | No | | | `searchConfig.maxResults` | integer | No | | | `searchConfig.timeRange` | string | No | | | `searchConfig.topic` | string | No | | | `searchConfig.includeDomains[]` | array of string | No | | | `searchConfig.excludeDomains[]` | array of string | No | | | `modelConfig` | object | No | AI model configuration | | `modelConfig.modelId` | string | No | | | `modelConfig.temperature` | number | No | | | `modelConfig.maxOutputTokens` | integer | No | | | `budgetConfig` | object | No | Cost budget configuration | | `budgetConfig.maxCostPerReport` | number | No | | | `budgetConfig.alertThreshold` | number | No | | | `freshnessConfig` | object | No | Source freshness configuration | | `freshnessConfig.enabled` | boolean | No | | | `freshnessConfig.maxAgeMs` | integer | No | | | `freshnessConfig.preferRecentSources` | boolean | No | | | `freshnessConfig.recencyWeight` | number | No | | | `freshnessConfig.validateLinks` | boolean | No | | | `audioConfig` | object | No | Audio generation configuration | | `audioConfig.enabled` | boolean | No | | | `audioConfig.voiceId` | string | No | | | `audioConfig.speed` | number | No | | | `toolConfig` | object | No | Tool configuration for report generation | | `brandingTemplateId` | string | No | Branding template ID (paid workspace feature) | ## Responses | Status | Description | Body | | --- | --- | --- | | 201 | Profile created | `ProfileCreateResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 409 | Resource conflict (e.g., webhook in use) | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 201 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `PublicProfile` | | | `data.id` | string | | | `data.type` | string | | | `data.name` | string | | | `data.topic` | string | | | `data.status` | `ProfileStatusEnum` | Profile status | | `data.frequency` | `FrequencyEnum` or null | | | `data.schedule` | object | | | `data.visibility` | object | | | `data.tags[]` | array of string | | | `data.customInstructions` | string or null | | | `data.reportStructure` | string or null | | | `data.configuration` | `PublicProfileConfiguration` | | | `data.lastDeliveredAt` | string or null (date-time) | | | `data.createdAt` | string (date-time) | | | `data.links` | object | | | `meta` | object | | | `meta.message` | string | | --- # Delete a profile (https://y2.dev/docs/api/reference/profiles/deleteProfile/) Endpoint Reference[Profiles](https://y2.dev/docs/api/reference/profiles) # Delete a profile Permanently deletes a profile owned by the authenticated user and all its subscriptions. This action cannot be undone. `DELETE https://api.y2.dev/api/v1/profiles/{profileId}` - Operation ID: `deleteProfile` - Required scopes: `profiles:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `profileId` | path | string | Yes | Stable public profile ID. Legacy IDs remain accepted during the migration window. | | `If-Match` | header | string | No | Strong ETag from the latest representation. A mismatch returns 412. | ## Responses | Status | Description | Body | | --- | --- | --- | | 204 | Profile deleted. The response has no body. | | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 412 | The supplied If-Match validator does not match the current representation. | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | --- # Get a subscribed profile (https://y2.dev/docs/api/reference/profiles/getProfile/) Endpoint Reference[Profiles](https://y2.dev/docs/api/reference/profiles) # Get a subscribed profile Returns a profile from an active subscription in the API key's workspace. Requires current workspace membership, including the viewer role. Private profiles must still belong to the selected workspace. Community and global profiles require an active workspace subscription. Missing, unsubscribed, and inaccessible profiles all return 404. Only stable public IDs are accepted. `GET https://api.y2.dev/api/v1/profiles/{profileId}` - Operation ID: `getProfile` - Required scopes: `profiles:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `profileId` | path | string | Yes | Stable public profile ID returned by listProfiles. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Authorized profile details | `ProfileDetailResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `PublicProfile` | | | `data.id` | string | | | `data.type` | string | | | `data.name` | string | | | `data.topic` | string | | | `data.status` | `ProfileStatusEnum` | Profile status | | `data.frequency` | `FrequencyEnum` or null | | | `data.schedule` | object | | | `data.visibility` | object | | | `data.tags[]` | array of string | | | `data.customInstructions` | string or null | | | `data.reportStructure` | string or null | | | `data.configuration` | `PublicProfileConfiguration` | | | `data.lastDeliveredAt` | string or null (date-time) | | | `data.createdAt` | string (date-time) | | | `data.links` | object | | | `meta` | object | | | `meta.asOf` | string (date-time) | | --- # List subscribed profiles (https://y2.dev/docs/api/reference/profiles/listProfiles/) Endpoint Reference[Profiles](https://y2.dev/docs/api/reference/profiles) # List subscribed profiles Lists active subscriptions in the API key's workspace, with profile details and delivery preferences. Requires current workspace membership. Viewers can read. Private profiles must still belong to that workspace. Results are ordered by subscription creation time, newest first. Each request examines at most \`limit\` subscription rows. The optional text filter matches name, topic, or tags without regard to case and may return a sparse or empty page. Follow \`meta.page.nextCursor\` while \`hasMore\` is true, including when \`data\` is empty. Cursors are bound to the filter. `GET https://api.y2.dev/api/v1/profiles` - Operation ID: `listProfiles` - Required scopes: `profiles:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `limit` | query | integer | No | Maximum subscription rows examined in one page. | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `q` | query | string | No | Case-insensitive substring in profile name, topic, or tags. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of subscribed profiles | `ProfileListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `ProfileSubscription` | | | `data[].subscription` | `PublicSubscription` | | | `data[].profile` | `PublicProfile` or null | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # Update a profile (partial) (https://y2.dev/docs/api/reference/profiles/patchProfile/) Endpoint Reference[Profiles](https://y2.dev/docs/api/reference/profiles) # Update a profile (partial) Updates supplied mutable fields on a profile owned by the authenticated user. Omitted fields remain unchanged. `PATCH https://api.y2.dev/api/v1/profiles/{profileId}` - Operation ID: `patchProfile` - Required scopes: `profiles:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `profileId` | path | string | Yes | Stable public profile ID. Legacy IDs remain accepted during the migration window. | | `If-Match` | header | string | No | Strong ETag from the latest representation. A mismatch returns 412. | ## Request body `application/json`: `ProfileUpdateRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | No | | | `topic` | string | No | | | `status` | `ProfileStatusEnum` | No | Profile status | | `frequency` | `FrequencyEnum` | No | Report generation frequency | | `scheduleTimeOfDay` | string | No | | | `scheduleDayOfWeek` | string | No | Weekday name (case-insensitive) or 0-6 (Sunday-Saturday) | | `scheduleDayOfMonth` | string | No | | | `customPrompt` | string | No | | | `tags[]` | array of string | No | | | `isCommunity` | boolean | No | | | `blufStructure` | string | No | | | `searchConfig` | object | No | | | `searchConfig.searchDepth` | `basic`, `advanced` | No | | | `searchConfig.maxResults` | integer | No | | | `searchConfig.timeRange` | string | No | | | `searchConfig.topic` | string | No | | | `searchConfig.includeDomains[]` | array of string | No | | | `searchConfig.excludeDomains[]` | array of string | No | | | `modelConfig` | object | No | | | `modelConfig.modelId` | string | No | | | `modelConfig.temperature` | number | No | | | `modelConfig.maxOutputTokens` | integer | No | | | `budgetConfig` | object | No | | | `budgetConfig.maxCostPerReport` | number | No | | | `budgetConfig.alertThreshold` | number | No | | | `recursionConfig` | `RecursionConfigInput` | No | | | `recursionConfig.enabled` | boolean | Yes | When false, runs root-topic research without child subtopics. | | `recursionConfig.maxDepth` | integer | Yes | Requested child-layer depth. The current runtime defaults an enabled value of `0` to `1` and caps values above `1` at one child layer. This field is ignored when `enabled` is false. | | `recursionConfig.strategy` | `breadth-first`, `depth-first`, `hybrid` | Yes | Stored strategy preference. The current report engine executes its implemented breadth-first child-search path for every value. | | `freshnessConfig` | object | No | | | `freshnessConfig.enabled` | boolean | No | | | `freshnessConfig.maxAgeMs` | integer | No | | | `freshnessConfig.preferRecentSources` | boolean | No | | | `freshnessConfig.recencyWeight` | number | No | | | `freshnessConfig.validateLinks` | boolean | No | | | `audioConfig` | object | No | | | `audioConfig.enabled` | boolean | No | | | `audioConfig.voiceId` | string | No | | | `audioConfig.speed` | number | No | | | `brandingTemplateId` | string | No | Branding template ID (paid workspace feature) | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Profile updated | `ProfileUpdateResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 412 | The supplied If-Match validator does not match the current representation. | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `PublicProfile` | | | `data.id` | string | | | `data.type` | string | | | `data.name` | string | | | `data.topic` | string | | | `data.status` | `ProfileStatusEnum` | Profile status | | `data.frequency` | `FrequencyEnum` or null | | | `data.schedule` | object | | | `data.visibility` | object | | | `data.tags[]` | array of string | | | `data.customInstructions` | string or null | | | `data.reportStructure` | string or null | | | `data.configuration` | `PublicProfileConfiguration` | | | `data.lastDeliveredAt` | string or null (date-time) | | | `data.createdAt` | string (date-time) | | | `data.links` | object | | | `meta` | object | | | `meta.message` | string | | --- # Update a profile (full replacement) (https://y2.dev/docs/api/reference/profiles/updateProfile/) Endpoint Reference[Profiles](https://y2.dev/docs/api/reference/profiles) # Update a profile (full replacement) Replaces every mutable field on a profile owned by the authenticated user. `PUT https://api.y2.dev/api/v1/profiles/{profileId}` - Operation ID: `updateProfile` - Required scopes: `profiles:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `profileId` | path | string | Yes | Stable public profile ID. Legacy IDs remain accepted during the migration window. | | `If-Match` | header | string | No | Strong ETag from the latest representation. A mismatch returns 412. | ## Request body `application/json`: `ProfileReplaceRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | | | `topic` | string | Yes | | | `frequency` | `FrequencyEnum` | Yes | Report generation frequency | | `scheduleTimeOfDay` | string | Yes | | | `scheduleDayOfWeek` | string | No | Weekday name (case-insensitive) or 0-6 (Sunday-Saturday) | | `scheduleDayOfMonth` | string | No | | | `customPrompt` | string | No | | | `tags[]` | array of string | No | | | `isCommunity` | boolean | No | | | `blufStructure` | string | No | | | `recursionConfig` | `RecursionConfigInput` | No | | | `recursionConfig.enabled` | boolean | Yes | When false, runs root-topic research without child subtopics. | | `recursionConfig.maxDepth` | integer | Yes | Requested child-layer depth. The current runtime defaults an enabled value of `0` to `1` and caps values above `1` at one child layer. This field is ignored when `enabled` is false. | | `recursionConfig.strategy` | `breadth-first`, `depth-first`, `hybrid` | Yes | Stored strategy preference. The current report engine executes its implemented breadth-first child-search path for every value. | | `searchConfig` | object | No | | | `searchConfig.searchDepth` | `basic`, `advanced` | No | | | `searchConfig.maxResults` | integer | No | | | `searchConfig.timeRange` | string | No | | | `searchConfig.topic` | string | No | | | `searchConfig.includeDomains[]` | array of string | No | | | `searchConfig.excludeDomains[]` | array of string | No | | | `modelConfig` | object | No | | | `modelConfig.modelId` | string | No | | | `modelConfig.temperature` | number | No | | | `modelConfig.maxOutputTokens` | integer | No | | | `budgetConfig` | object | No | | | `budgetConfig.maxCostPerReport` | number | No | | | `budgetConfig.alertThreshold` | number | No | | | `freshnessConfig` | object | No | | | `freshnessConfig.enabled` | boolean | No | | | `freshnessConfig.maxAgeMs` | integer | No | | | `freshnessConfig.preferRecentSources` | boolean | No | | | `freshnessConfig.recencyWeight` | number | No | | | `freshnessConfig.validateLinks` | boolean | No | | | `audioConfig` | object | No | | | `audioConfig.enabled` | boolean | No | | | `audioConfig.voiceId` | string | No | | | `audioConfig.speed` | number | No | | | `toolConfig` | object | No | Tool configuration for report generation | | `brandingTemplateId` | string | No | Branding template ID (paid workspace feature) | | `status` | `ProfileStatusEnum` | No | Profile status | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Profile updated | `ProfileUpdateResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 412 | The supplied If-Match validator does not match the current representation. | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `PublicProfile` | | | `data.id` | string | | | `data.type` | string | | | `data.name` | string | | | `data.topic` | string | | | `data.status` | `ProfileStatusEnum` | Profile status | | `data.frequency` | `FrequencyEnum` or null | | | `data.schedule` | object | | | `data.visibility` | object | | | `data.tags[]` | array of string | | | `data.customInstructions` | string or null | | | `data.reportStructure` | string or null | | | `data.configuration` | `PublicProfileConfiguration` | | | `data.lastDeliveredAt` | string or null (date-time) | | | `data.createdAt` | string (date-time) | | | `data.links` | object | | | `meta` | object | | | `meta.message` | string | | --- # Projects (https://y2.dev/docs/api/reference/projects/) Endpoint Reference # Projects Owner-private intelligence workspaces in the API key workspace [GET /projects](https://y2.dev/docs/api/reference/projects/listProjects): List owned Projects [POST /projects](https://y2.dev/docs/api/reference/projects/createProject): Create a Project [GET /projects/{projectId}](https://y2.dev/docs/api/reference/projects/getProject): Get a Project [PATCH /projects/{projectId}](https://y2.dev/docs/api/reference/projects/patchProject): Update, archive, or restore a Project --- # Create a Project (https://y2.dev/docs/api/reference/projects/createProject/) Endpoint Reference[Projects](https://y2.dev/docs/api/reference/projects) # Create a Project Creates an active owner-private Project in the API key workspace. `POST https://api.y2.dev/api/v1/projects` - Operation ID: `createProject` - Required scopes: `projects:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated retry key retained for 24 hours. Repeating the same key and canonical JSON body returns the original resource. Changing the body returns `409 IDEMPOTENCY_CONFLICT`. | ## Request body `application/json`: `ProjectCreateRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | | | `objective` | string | No | | | `instructions` | string | No | | | `icon` | string | No | | | `color` | string | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 201 | Project created | `ProjectMutationResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 409 | Resource conflict (e.g., webhook in use) | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 201 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `Project` | | | `data.id` | string | | | `data.type` | string | | | `data.name` | string | | | `data.objective` | string or null | | | `data.instructions` | string or null | | | `data.status` | `ProjectStatus` | | | `data.contextPolicy` | string | | | `data.icon` | string or null | | | `data.color` | string or null | | | `data.revision` | integer | | | `data.defaultView` | `graph`, `timeline`, `situation`, `reports`, `evidence`, `knowledge` | | | `data.defaultTimeWindow` | `24h`, `7d`, `30d`, `custom` | | | `data.pinned` | boolean | | | `data.lastActivityAt` | string (date-time) | | | `data.createdAt` | string (date-time) | | | `data.updatedAt` | string (date-time) | | | `data.links` | object | | | `meta` | object | | | `meta.message` | string | | --- # Get a Project (https://y2.dev/docs/api/reference/projects/getProject/) Endpoint Reference[Projects](https://y2.dev/docs/api/reference/projects) # Get a Project Returns one Project and its current lifecycle state in the API key's workspace. `GET https://api.y2.dev/api/v1/projects/{projectId}` - Operation ID: `getProject` - Required scopes: `projects:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `projectId` | path | string | Yes | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Project details | `ProjectResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `Project` | | | `data.id` | string | | | `data.type` | string | | | `data.name` | string | | | `data.objective` | string or null | | | `data.instructions` | string or null | | | `data.status` | `ProjectStatus` | | | `data.contextPolicy` | string | | | `data.icon` | string or null | | | `data.color` | string or null | | | `data.revision` | integer | | | `data.defaultView` | `graph`, `timeline`, `situation`, `reports`, `evidence`, `knowledge` | | | `data.defaultTimeWindow` | `24h`, `7d`, `30d`, `custom` | | | `data.pinned` | boolean | | | `data.lastActivityAt` | string (date-time) | | | `data.createdAt` | string (date-time) | | | `data.updatedAt` | string (date-time) | | | `data.links` | object | | --- # List owned Projects (https://y2.dev/docs/api/reference/projects/listProjects/) Endpoint Reference[Projects](https://y2.dev/docs/api/reference/projects) # List owned Projects Lists owner-private Projects in the API key workspace. Results are bounded, ordered by recent activity, and traversable with an opaque cursor. `GET https://api.y2.dev/api/v1/projects` - Operation ID: `listProjects` - Required scopes: `projects:read` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `status` | query | `ProjectStatus` | No | | | `limit` | query | integer | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Bounded Project list | `ProjectListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `Project` | | | `data[].id` | string | | | `data[].type` | string | | | `data[].name` | string | | | `data[].objective` | string or null | | | `data[].instructions` | string or null | | | `data[].status` | `ProjectStatus` | | | `data[].contextPolicy` | string | | | `data[].icon` | string or null | | | `data[].color` | string or null | | | `data[].revision` | integer | | | `data[].defaultView` | `graph`, `timeline`, `situation`, `reports`, `evidence`, `knowledge` | | | `data[].defaultTimeWindow` | `24h`, `7d`, `30d`, `custom` | | | `data[].pinned` | boolean | | | `data[].lastActivityAt` | string (date-time) | | | `data[].createdAt` | string (date-time) | | | `data[].updatedAt` | string (date-time) | | | `data[].links` | object | | | `meta` | object | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `meta.status` | `ProjectStatus` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # Update, archive, or restore a Project (https://y2.dev/docs/api/reference/projects/patchProject/) Endpoint Reference[Projects](https://y2.dev/docs/api/reference/projects) # Update, archive, or restore a Project Applies a partial Project update. Set \`status\` to \`archived\` or \`active\` for the reversible lifecycle transition. Archiving pauses active bound Automations. `PATCH https://api.y2.dev/api/v1/projects/{projectId}` - Operation ID: `patchProject` - Required scopes: `projects:write` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `projectId` | path | string | Yes | | | `If-Match` | header | string | No | Strong ETag from the latest representation. A mismatch returns 412. | ## Request body `application/json`: `ProjectPatchRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | No | | | `objective` | string or null | No | | | `instructions` | string or null | No | | | `icon` | string or null | No | | | `color` | string or null | No | | | `defaultView` | `graph`, `timeline`, `situation`, `reports`, `evidence`, `knowledge` | No | | | `defaultTimeWindow` | `24h`, `7d`, `30d`, `custom` | No | | | `status` | `ProjectStatus` | No | | | `pinned` | boolean | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Project updated | `ProjectMutationResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 409 | Resource conflict (e.g., webhook in use) | | | 412 | The supplied If-Match validator does not match the current representation. | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `Project` | | | `data.id` | string | | | `data.type` | string | | | `data.name` | string | | | `data.objective` | string or null | | | `data.instructions` | string or null | | | `data.status` | `ProjectStatus` | | | `data.contextPolicy` | string | | | `data.icon` | string or null | | | `data.color` | string or null | | | `data.revision` | integer | | | `data.defaultView` | `graph`, `timeline`, `situation`, `reports`, `evidence`, `knowledge` | | | `data.defaultTimeWindow` | `24h`, `7d`, `30d`, `custom` | | | `data.pinned` | boolean | | | `data.lastActivityAt` | string (date-time) | | | `data.createdAt` | string (date-time) | | | `data.updatedAt` | string (date-time) | | | `data.links` | object | | | `meta` | object | | | `meta.message` | string | | --- # Reports (https://y2.dev/docs/api/reference/reports/) Endpoint Reference # Reports Report retrieval, text, audio, signals, and ontology graphs [GET /reports](https://y2.dev/docs/api/reference/reports/listReports): List intelligence reports [GET /reports/{reportId}](https://y2.dev/docs/api/reference/reports/getReport): Get a report [GET /reports/{reportId}/signals](https://y2.dev/docs/api/reference/reports/getReportSignals): Get report emergent signals [GET /reports/{reportId}/graph](https://y2.dev/docs/api/reference/reports/getReportGraph): Get report ontology graph [GET /reports/{reportId}/audio](https://y2.dev/docs/api/reference/reports/getReportAudio): Get report audio [GET /reports/{reportId}/text](https://y2.dev/docs/api/reference/reports/getReportText): Get report as plain text [GET /reports/{reportId}/audio-text](https://y2.dev/docs/api/reference/reports/getReportAudioText): Get TTS-preprocessed report text --- # Get a report (https://y2.dev/docs/api/reference/reports/getReport/) Endpoint Reference[Reports](https://y2.dev/docs/api/reference/reports) # Get a report Returns a compact report by default. Use bounded \`include\` values or \`view=agent\`. Request \`text/markdown\` for the canonical Markdown representation. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/reports/{reportId}` - Operation ID: `getReport` - Required scopes: `reports:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `include` | query | string | No | Comma-separated `content,sources,signals,graph,audio` expansions. | | `view` | query | `agent` | No | Compact projection optimized for grounded agent context. | | `format` | query | `markdown` | No | Explicit representation override. | | `reportId` | path | string | Yes | Stable Y2 public report ID (`rpt_...`). Legacy IDs are accepted during migration. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Report details | `ReportDetailResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `PublicReportDetail` | | | `data.source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data.id` | string | | | `data.type` | string | | | `data.profileId` | string | | | `data.topic` | string or null | | | `data.summary` | string or null | | | `data.status` | string | | | `data.generatedAt` | string (date-time) | | | `data.publishedAt` | string (date-time) | | | `data.language` | string | | | `data.intelligence` | `PublicReportIntelligenceSummary` | | | `data.audio` | `PublicReportAudioSummary` | | | `data.links` | `PublicResourceLinks` | | | `data.profile` | object | | | `data.content` | object | | | `data.sources[]` | array of `PublicSource` | | | `data.signals[]` | array of `PublicReportSignal` | | | `data.graph` | `PublicReportGraph` | | | `data.audioRepresentation` | `AudioMetadata` | | --- # Get report audio (https://y2.dev/docs/api/reference/reports/getReportAudio/) Endpoint Reference[Reports](https://y2.dev/docs/api/reference/reports) # Get report audio Returns audio file metadata or redirects to the CDN URL. Requires the \`reports:audio\` scope. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/reports/{reportId}/audio` - Operation ID: `getReportAudio` - Required scopes: `reports:audio` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `reportId` | path | string | Yes | Stable Y2 public report ID (`rpt_...`). Legacy IDs are accepted during migration. | | `redirect` | query | boolean | No | When true, redirects with `302` to the audio CDN URL | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Audio metadata | `AudioResponse` | | 302 | Redirect to audio CDN URL | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Report not found or no audio available | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `AudioMetadata` | | | `data.url` | string (uri) | CDN URL for audio file | | `data.duration` | number | Duration in seconds | | `data.durationSeconds` | number or null | Canonical duration in seconds. | | `data.durationFormatted` | string | Duration as HH:MM:SS | | `data.format` | `mp3` | | | `data.mimeType` | `audio/mpeg` | | | `data.fileSizeBytes` | integer or null | File size in bytes. | --- # Get TTS-preprocessed report text (https://y2.dev/docs/api/reference/reports/getReportAudioText/) Endpoint Reference[Reports](https://y2.dev/docs/api/reference/reports) # Get TTS-preprocessed report text Returns the report content preprocessed for text-to-speech synthesis. Applies pronunciation normalization for acronyms, currency, and percentages. Strips HTML and Markdown. Adds branding intro/outro text. Cartesia TTS generation uses this pipeline. Requires the \`reports:read\` scope. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/reports/{reportId}/audio-text` - Operation ID: `getReportAudioText` - Required scopes: `reports:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `reportId` | path | string | Yes | Stable Y2 public report ID (`rpt_...`). Legacy IDs are accepted during migration. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | TTS-preprocessed report text | `ReportAudioTextResponse` | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Report not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.text` | string | TTS-preprocessed text with pronunciation normalization and branding | | `data.charCount` | integer | Character count of the preprocessed text | | `data.estimatedAudioDuration` | integer | Estimated audio duration in seconds (~750 chars/min) | | `data.profileName` | string | Profile name used in branding intro/outro | --- # Get report ontology graph (https://y2.dev/docs/api/reference/reports/getReportGraph/) Endpoint Reference[Reports](https://y2.dev/docs/api/reference/reports) # Get report ontology graph Returns the report's bounded ontology graph: report-local nodes, edges, incident anchors, citations, and counts. Reports created before graph extraction return \`graph: null\` with zero counts. Requires the \`reports:read\` scope. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/reports/{reportId}/graph` - Operation ID: `getReportGraph` - Required scopes: `reports:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `reportId` | path | string | Yes | Stable Y2 public report ID (`rpt_...`). Legacy IDs are accepted during migration. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Report ontology graph snapshot | `ReportGraphResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.reportId` | string | | | `data.profileId` | string | | | `data.reportGeneratedAt` | integer (int64) | | | `data.reportGeneratedAtISO` | string (date-time) | | | `data.topic` | string or null | | | `data.graph` | `PublicReportGraph` or null | | | `meta` | object | | | `meta.nodeCount` | integer | | | `meta.edgeCount` | integer | | | `meta.incidentCount` | integer | | --- # Get report emergent signals (https://y2.dev/docs/api/reference/reports/getReportSignals/) Endpoint Reference[Reports](https://y2.dev/docs/api/reference/reports) # Get report emergent signals Returns structured emergent SIGINT signals inferred from a report. Reports created before signal extraction return an empty \`signals\` array. Requires the \`reports:read\` scope. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/reports/{reportId}/signals` - Operation ID: `getReportSignals` - Required scopes: `reports:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `reportId` | path | string | Yes | Stable Y2 public report ID (`rpt_...`). Legacy IDs are accepted during migration. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Structured report emergent signals | `ReportSignalsResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.reportId` | string | | | `data.profileId` | string | | | `data.reportGeneratedAt` | integer (int64) | | | `data.reportGeneratedAtISO` | string (date-time) | | | `data.topic` | string or null | | | `data.summary` | string or null | | | `data.generatedAt` | integer or null (int64) | | | `data.generatedAtISO` | string or null (date-time) | | | `data.signals[]` | array of `PublicReportSignal` | | | `meta` | object | | | `meta.count` | integer | | --- # Get report as plain text (https://y2.dev/docs/api/reference/reports/getReportText/) Endpoint Reference[Reports](https://y2.dev/docs/api/reference/reports) # Get report as plain text Returns the report content stripped of all HTML tags as plain text, along with word count and estimated reading time. Requires the \`reports:read\` scope. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/reports/{reportId}/text` - Operation ID: `getReportText` - Required scopes: `reports:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `reportId` | path | string | Yes | Stable Y2 public report ID (`rpt_...`). Legacy IDs are accepted during migration. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Plain text report content | `ReportTextResponse` | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 404 | Report not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.text` | string | Report content as plain text (HTML stripped) | | `data.wordCount` | integer | Total word count | | `data.readingTimeMinutes` | integer | Estimated reading time in minutes (~200 wpm) | --- # List intelligence reports (https://y2.dev/docs/api/reference/reports/listReports/) Endpoint Reference[Reports](https://y2.dev/docs/api/reference/reports) # List intelligence reports Lists reports for the user's subscribed profiles by generation date, newest first. Accepts a bearer API key or \[x402 payment]\(https\://y2.dev/docs/api/x402). Without a key, read the \`402\` challenge in \`PAYMENT-REQUIRED\`. Retry with \`PAYMENT-SIGNATURE\`. `GET https://api.y2.dev/api/v1/reports` - Operation ID: `listReports` - Required scopes: `reports:read` - Accepts x402 pay-per-request payment - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `cursor` | query | string | No | Opaque continuation token from the previous response. Bound to the original filters and ordering. | | `format` | query | `json`, `ndjson` | No | `json` uses the resource envelope. `ndjson` streams one canonical row per line. | | `profileId` | query | string | No | Filter by stable public profile ID (`prf_...`). | | `limit` | query | integer | No | Maximum number of reports to return for this page. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | List of reports | `ReportListResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 402 | x402 payment required | `X402PaymentRequiredResponse` | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of object | | | `data[].source` | `RecordSource` | Where a record came from, how Y2 obtained it, and when. | | `data[].id` | string | | | `data[].type` | string | | | `data[].profileId` | string | | | `data[].topic` | string or null | | | `data[].summary` | string or null | | | `data[].status` | string | | | `data[].generatedAt` | string (date-time) | | | `data[].publishedAt` | string (date-time) | | | `data[].language` | string | | | `data[].intelligence` | `PublicReportIntelligenceSummary` | | | `data[].audio` | `PublicReportAudioSummary` | | | `data[].links` | `PublicResourceLinks` | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # Subscriptions (https://y2.dev/docs/api/reference/subscriptions/) Endpoint Reference # Subscriptions Subscription delivery management [PATCH /subscriptions/{subscriptionId}/delivery](https://y2.dev/docs/api/reference/subscriptions/updateDelivery): Update subscription delivery method --- # Update subscription delivery method (https://y2.dev/docs/api/reference/subscriptions/updateDelivery/) Endpoint Reference[Subscriptions](https://y2.dev/docs/api/reference/subscriptions) # Update subscription delivery method Changes a subscription's delivery method. Setting \`webhook\` requires an active \`webhookConfigId\`. On plans with member seats, set \`emailAudience\` to \`workspace\` to email active workspace members. `PATCH https://api.y2.dev/api/v1/subscriptions/{subscriptionId}/delivery` - Operation ID: `updateDelivery` - Required scopes: `webhooks:manage` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `subscriptionId` | path | string | Yes | Stable public subscription ID. | ## Request body `application/json`: `DeliveryUpdateRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `deliveryMethod` | `DeliveryMethodEnum` | Yes | Subscription delivery method | | `emailAudience` | `EmailAudienceEnum` | No | Email recipients for email-capable subscription delivery | | `webhookConfigId` | string | No | Required when deliveryMethod is "webhook" | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Delivery method updated | `DeliveryUpdateResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.id` | string | | | `data.type` | string | | | `data.delivery` | object | | | `data.links` | object | | | `meta` | object | | | `meta.message` | string | | --- # Webhooks (https://y2.dev/docs/api/reference/webhooks/) Endpoint Reference # Webhooks Webhook configuration for paid workspaces [GET /webhooks](https://y2.dev/docs/api/reference/webhooks/listWebhooks): List webhook configurations [POST /webhooks](https://y2.dev/docs/api/reference/webhooks/createWebhook): Create a webhook configuration [DELETE /webhooks/{webhookId}](https://y2.dev/docs/api/reference/webhooks/deleteWebhook): Delete a webhook configuration [PUT /webhooks/{webhookId}](https://y2.dev/docs/api/reference/webhooks/updateWebhook): Update a webhook configuration [POST /webhooks/{webhookId}/test](https://y2.dev/docs/api/reference/webhooks/testWebhook): Test a webhook endpoint --- # Create a webhook configuration (https://y2.dev/docs/api/reference/webhooks/createWebhook/) Endpoint Reference[Webhooks](https://y2.dev/docs/api/reference/webhooks) # Create a webhook configuration Creates a webhook configuration. Requires a paid workspace plan with webhook access. The URL must use HTTPS and pass SSRF validation. `POST https://api.y2.dev/api/v1/webhooks` - Operation ID: `createWebhook` - Required scopes: `webhooks:manage` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `Idempotency-Key` | header | string | No | Client-generated retry key retained for 24 hours. Repeating the same key and canonical JSON body returns the original resource. Changing the body returns `409 IDEMPOTENCY_CONFLICT`. | ## Request body `application/json`: `WebhookCreateRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | Webhook display name | | `url` | string (uri) | Yes | Webhook endpoint URL (must be HTTPS) | | `secret` | string | No | Shared secret for signature verification | | `headers` | object | No | Custom headers to include in webhook deliveries | ## Responses | Status | Description | Body | | --- | --- | --- | | 201 | Webhook configuration created | `WebhookCreateResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 409 | Resource conflict (e.g., webhook in use) | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 201 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `WebhookConfig` | | | `data.id` | string | Stable public webhook configuration ID | | `data.type` | string | | | `data.name` | string | Webhook display name | | `data.url` | string (uri) | Webhook endpoint URL | | `data.status` | `active`, `disabled` | | | `data.signing` | object | | | `data.customHeaders[]` | array of string | Configured header names. Values are never returned. | | `data.deliveryHealth` | object | | | `data.createdAt` | string (date-time) | | | `data.updatedAt` | string (date-time) | | | `data.links` | object | | | `meta` | object | | | `meta.message` | string | | --- # Delete a webhook configuration (https://y2.dev/docs/api/reference/webhooks/deleteWebhook/) Endpoint Reference[Webhooks](https://y2.dev/docs/api/reference/webhooks) # Delete a webhook configuration Deletes a webhook configuration. Returns \`409\` if any subscription uses it. `DELETE https://api.y2.dev/api/v1/webhooks/{webhookId}` - Operation ID: `deleteWebhook` - Required scopes: `webhooks:manage` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `webhookId` | path | string | Yes | Stable public webhook configuration ID. | | `If-Match` | header | string | No | Strong ETag from the latest representation. A mismatch returns 412. | ## Responses | Status | Description | Body | | --- | --- | --- | | 204 | Webhook configuration deleted. The response has no body. | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 409 | Resource conflict (e.g., webhook in use) | | | 412 | The supplied If-Match validator does not match the current representation. | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | --- # List webhook configurations (https://y2.dev/docs/api/reference/webhooks/listWebhooks/) Endpoint Reference[Webhooks](https://y2.dev/docs/api/reference/webhooks) # List webhook configurations Lists the authenticated user's webhook configurations. Masks secrets. `GET https://api.y2.dev/api/v1/webhooks` - Operation ID: `listWebhooks` - Required scopes: `webhooks:manage` - Contract: https://y2.dev/openapi.json ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Webhook configurations | `WebhookListResponse` | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data[]` | array of `WebhookConfig` | | | `data[].id` | string | Stable public webhook configuration ID | | `data[].type` | string | | | `data[].name` | string | Webhook display name | | `data[].url` | string (uri) | Webhook endpoint URL | | `data[].status` | `active`, `disabled` | | | `data[].signing` | object | | | `data[].customHeaders[]` | array of string | Configured header names. Values are never returned. | | `data[].deliveryHealth` | object | | | `data[].createdAt` | string (date-time) | | | `data[].updatedAt` | string (date-time) | | | `data[].links` | object | | | `meta` | `PublicListMeta` | | | `meta.count` | integer | | | `meta.pageCount` | integer | | | `meta.limit` | integer | | | `meta.isDone` | boolean | | | `meta.hasMore` | boolean | | | `meta.nextCursor` | string or null | | | `meta.asOf` | string (date-time) | | | `meta.page` | `PublicPageMeta` | | | `links` | `PublicCollectionLinks` | | | `links.self` | string | | | `links.next` | string or null | | --- # Test a webhook endpoint (https://y2.dev/docs/api/reference/webhooks/testWebhook/) Endpoint Reference[Webhooks](https://y2.dev/docs/api/reference/webhooks) # Test a webhook endpoint Sends a test payload to the webhook URL, including disabled destinations. Returns \`422\` if the endpoint responds with an error. A successful response returns the updated webhook configuration's ETag for a subsequent enabling PUT. `POST https://api.y2.dev/api/v1/webhooks/{webhookId}/test` - Operation ID: `testWebhook` - Required scopes: `webhooks:manage` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `webhookId` | path | string | Yes | Stable public webhook configuration ID. | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Webhook test successful | `WebhookTestResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 422 | Webhook test failed (endpoint returned error) | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | object | | | `data.success` | boolean | | | `data.statusCode` | integer | HTTP status code from the webhook endpoint | | `data.error` | string | Error message if the test failed | | `data.responseTime` | integer | Response time in milliseconds | | `meta` | object | | | `meta.message` | string | | --- # Update a webhook configuration (https://y2.dev/docs/api/reference/webhooks/updateWebhook/) Endpoint Reference[Webhooks](https://y2.dev/docs/api/reference/webhooks) # Update a webhook configuration Replaces mutable webhook configuration fields. \`name\` and \`url\` are required. Omitted secret and headers are cleared. Omitted isActive preserves the current status. Enabling requires a successful test of the same configuration within 15 minutes. `PUT https://api.y2.dev/api/v1/webhooks/{webhookId}` - Operation ID: `updateWebhook` - Required scopes: `webhooks:manage` - Contract: https://y2.dev/openapi.json ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `webhookId` | path | string | Yes | Stable public webhook configuration ID. | | `If-Match` | header | string | No | Strong ETag from the latest representation. A mismatch returns 412. | ## Request body `application/json`: `WebhookReplaceRequest` (required) | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | string | Yes | Webhook display name | | `url` | string (uri) | Yes | Webhook endpoint URL (must be HTTPS) | | `secret` | string | No | Shared secret for signature verification | | `headers` | object | No | Custom headers to include in webhook deliveries | | `isActive` | boolean | No | | ## Responses | Status | Description | Body | | --- | --- | --- | | 200 | Webhook configuration updated | `WebhookUpdateResponse` | | 400 | Invalid request parameters | | | 401 | Missing or invalid API key | | | 403 | Insufficient permissions or access denied | | | 404 | Resource not found | | | 409 | WEBHOOK_TEST_REQUIRED: test the current configuration successfully before enabling. | | | 412 | The supplied If-Match validator does not match the current representation. | | | 429 | Rate limit exceeded (per-key or per-account aggregate) | | | 500 | Internal server error | | ### 200 response fields | Field | Type | Description | | --- | --- | --- | | `data` | `WebhookConfig` | | | `data.id` | string | Stable public webhook configuration ID | | `data.type` | string | | | `data.name` | string | Webhook display name | | `data.url` | string (uri) | Webhook endpoint URL | | `data.status` | `active`, `disabled` | | | `data.signing` | object | | | `data.customHeaders[]` | array of string | Configured header names. Values are never returned. | | `data.deliveryHealth` | object | | | `data.createdAt` | string (date-time) | | | `data.updatedAt` | string (date-time) | | | `data.links` | object | | | `meta` | object | | | `meta.message` | string | | --- # Retrieve Reports through the API (https://y2.dev/docs/api/reports/) List published reports and choose compact JSON, Markdown, text, signals, graph, or audio Use the Reports API to retrieve published intelligence generated for profiles. Start with compact report metadata, then request only the representation or extracted artifact your integration needs. ## Choose a representation | Consumer | Representation | | ------------------------ | --------------------------- | | Agent | Markdown with cited sources | | Application | Compact or expanded JSON | | Analytics workflow | Signals or graph | | Human reader or listener | Plain text or audio | ## Required scopes | Operation | Bearer scope | | ----------------------------------------------------------------------------- | --------------- | | List, detail, Markdown, plain text, signals, graph, and TTS-preprocessed text | `reports:read` | | Audio metadata or CDN redirect | `reports:audio` | The audio operation also depends on audio entitlement and an available recording. Every Report operation supports [x402 pay-per-request](https://y2.dev/docs/api/x402) as an alternative to a bearer key. ## List reports For a bearer-key request without `profileId`, Y2 lists reports newest first across the active profiles subscribed in that key's user or workspace context. ``` curl --get "https://api.y2.dev/api/v1/reports" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "limit=20" ``` To target one profile, pass its canonical `prf_...` ID: ``` curl --get "https://api.y2.dev/api/v1/reports" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "profileId=$PROFILE_ID" \ --data-urlencode "limit=20" ``` The endpoint supports only `profileId`, `limit`, `cursor`, and `format`. It does not provide a date range filter. `limit` defaults to 20 and is capped at 100. x402 list requests need a profile ID An anonymous x402 caller has no subscription context, so `profileId` is required for `GET /reports`. Single-report and subresource calls identify the resource with `reportId`. JSON pages return `data`, `meta`, and `links`. Follow `links.next` until it is `null`. For NDJSON, send `format=ndjson` or `Accept: application/x-ndjson`. Each line is one compact report and the next cursor is in `X-Y2-Next-Cursor`. ## Read compact report metadata ``` curl "https://api.y2.dev/api/v1/reports/$REPORT_ID" \ --header "Authorization: Bearer $Y2_API_KEY" ``` The default response contains report and profile IDs, topic, summary, timestamps, and language. It also includes signal and graph counts, audio availability, profile details, and representation links. It does not include the full report body or full source rows by default. An authenticated detail or subresource request must be subscribed to the report's profile. A missing report returns `404`. An authenticated key without that subscription returns `403`. ## Expand structured JSON Use the comma-separated `include` parameter to embed bounded related data. | Include | Added field | | --------- | --------------------------------------------------------------------------- | | `content` | `content.markdown` and its media type | | `sources` | Canonical source records with `src_...` IDs and available attribution | | `signals` | Report-local emergent decision signals | | `graph` | Report-local ontology nodes, edges, incidents, and citations when available | | `audio` | Audio representation metadata or `null` | ``` curl --get "https://api.y2.dev/api/v1/reports/$REPORT_ID" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "include=content,sources,signals" ``` `view=agent` is shorthand for `content,sources,signals`. It does not add the ontology graph or audio representation. ## Choose Markdown or plain text **Markdown** Request the canonical stored report representation: ``` curl "https://api.y2.dev/api/v1/reports/$REPORT_ID" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Accept: text/markdown" ``` `format=markdown` is equivalent. This returns the report body directly, not a JSON envelope. **Plain text** Request content with HTML stripped: ``` curl "https://api.y2.dev/api/v1/reports/$REPORT_ID/text" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Accept: text/plain" ``` **Text metrics** Omit `Accept: text/plain` to receive JSON with `text`, `wordCount`, and an estimated `readingTimeMinutes` at approximately 200 words per minute. ``` curl "https://api.y2.dev/api/v1/reports/$REPORT_ID/text" \ --header "Authorization: Bearer $Y2_API_KEY" ``` Use Markdown for grounded agents and publishing pipelines. Use `/text` when the consumer cannot render markup or needs reading-time metadata. ## Retrieve signals or the report graph The subresources avoid transferring the full report body: ``` curl "https://api.y2.dev/api/v1/reports/$REPORT_ID/signals" \ --header "Authorization: Bearer $Y2_API_KEY" curl "https://api.y2.dev/api/v1/reports/$REPORT_ID/graph" \ --header "Authorization: Bearer $Y2_API_KEY" ``` Signals include decision fields, confidence, time horizon, normalized subjects, entity links when resolved, tags, and cited sources. Reports created before signal extraction return an empty `signals` array. The graph is a bounded snapshot extracted from that report, not a live traversal of the full Intel ontology. It contains report-local nodes, relationships, incident anchors, citations, and counts. Reports created before graph extraction return `graph: null` and zero counts. ## Retrieve narration or TTS text Request audio metadata with `reports:audio`: ``` curl "https://api.y2.dev/api/v1/reports/$REPORT_ID/audio" \ --header "Authorization: Bearer $Y2_API_KEY" ``` The JSON body contains the MP3 URL, duration, formatted duration, media type, and file size when known. To redirect directly to the CDN asset, pass `redirect=true` or send an `Accept` header that contains an audio media type. The redirect is `302`, and the redirect response can be cached for 24 hours. A report without audio returns `404 NO_AUDIO`. `/audio-text` requires `reports:read`, not `reports:audio`. It returns the exact preprocessing path used for narration, including pronunciation normalization and applicable profile branding: ``` curl "https://api.y2.dev/api/v1/reports/$REPORT_ID/audio-text" \ --header "Authorization: Bearer $Y2_API_KEY" ``` The duration fields on this endpoint are estimates based on character count. They are not measured audio duration. Reports, summaries, signals, and ontology graphs are synthesized intelligence. Preserve source URLs and confidence fields, and verify high-impact conclusions against primary evidence. [List reports](https://y2.dev/docs/api/reference/reports/listReports) [Get a report](https://y2.dev/docs/api/reference/reports/getReport) [Get report signals](https://y2.dev/docs/api/reference/reports/getReportSignals) [Get report graph](https://y2.dev/docs/api/reference/reports/getReportGraph) [Profiles API](https://y2.dev/docs/api/profiles) [Integration recipes](https://y2.dev/docs/api/integration-recipes) [Audio guide](https://y2.dev/docs/audio) [Authentication](https://y2.dev/docs/api/authentication) --- # API Response Reference (https://y2.dev/docs/api/responses/) Response formats, pagination, errors, and version headers Use this page for shared response rules. The [endpoint reference](https://y2.dev/docs/api/reference) defines each operation's fields and exceptions. ## Success representations The response format depends on the operation. Check its generated reference page. | Contract kind | Typical response | | -------------- | ------------------------------------------------------------------------------------------ | | Collection | `{ "data": [...], "meta": {...}, "links": {...} }` or operation-specific pagination fields | | Resource | `{ "data": {...} }` plus operation-specific fields and headers | | Representation | Plain text, audio metadata, or an optional redirect as documented | | Agent stream | `text/event-stream` in AI SDK UI or OpenAI-compatible chunk format | | Delete | `204 No Content` for the documented destructive operations | Collection cursors are opaque. Store the returned cursor or watermark. Send it back unchanged. Do not construct cursors from record IDs. ## Errors JSON errors use `application/problem+json`. Read `resolution` for the next action: ``` { "type": "https://api.y2.dev/problems/unauthorized", "title": "Unauthorized", "status": 401, "detail": "Invalid API key", "instance": "urn:y2:request:req_...", "code": "INVALID_API_KEY", "requestId": "req_...", "resolution": "Send a valid Y2 API key in the Authorization: Bearer header." } ``` | Status | Common meaning | | ------------- | ------------------------------------------------------------------------------------ | | `400` | Invalid query, ID, cursor, JSON, or request body | | `401` | Missing or invalid bearer authentication | | `402` | x402 challenge or rejection. Agent Y2 uses this status for plan or credit exhaustion | | `403` | Missing scope, ineligible plan, IP restriction, or tenant authorization failure | | `404` | Resource or thread not found in the allowed scope | | `409` | Idempotency or resource-state conflict | | `412` | `If-Match` does not match the current representation | | `415` / `422` | Unsupported representation or operation-specific semantic failure | | `429` | Key, account, endpoint, wallet, or abuse-control limit exceeded | | `500` / `503` | Internal failure, unavailable dependency, or unavailable data path | Keep `X-Request-Id` and the problem `code` in logs. Follow `Retry-After` when the response identifies a temporary limit or availability failure. ## Version and diagnostic headers | Header | Meaning | | -------------------------------------------------- | --------------------------------------------------------------- | | `X-Y2-API-Version` | `1.0` for v1 operations and `2.0` for v2 operations | | `X-Y2-Schema-Version` | Shared response-schema version, currently `1.2` | | `X-Request-Id` | Per-request diagnostic identifier | | `ETag` | Strong validator on operations that support conditional writes | | `Location` | Canonical URL after resource creation | | `Idempotency-Key` | Echoed retry key on operations that support idempotent creation | | `X-Y2-Next-Cursor`, `X-Y2-As-Of`, `X-Y2-Watermark` | Collection and change-feed checkpoints where applicable | [Endpoint reference](https://y2.dev/docs/api/reference) [Response migration](https://y2.dev/docs/api/migration-v1-1) --- # Configure Report Webhooks (https://y2.dev/docs/api/webhooks/) Create a signed webhook, attach it to a subscription, and process CloudEvents safely Use a webhook when your application should react as soon as Y2 publishes a report. This guide covers configuration and consumption through the public API. For the delivery product overview, see [Webhook delivery](https://y2.dev/docs/delivery/webhooks). ## Before you begin You need: - a paid workspace plan with webhook delivery. - an API key with `webhooks:manage`. - a public HTTPS endpoint that accepts `POST` requests. - a secret generated and stored by your application if you want signed deliveries. Y2 rejects loopback, private, link-local, cloud metadata, multicast, and other reserved network destinations. In production, webhook URLs must use HTTPS. Custom headers must have string values. `Host`, `Content-Length`, and `Content-Type` cannot be configured. ## 1. Create a webhook configuration Send a stable `Idempotency-Key` when a client may retry the request: ``` curl --request POST "https://api.y2.dev/api/v1/webhooks" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: create-primary-webhook-01" \ --data '{ "name": "Primary report receiver", "url": "https://example.com/webhooks/y2", "secret": "replace-with-a-random-secret", "headers": { "X-Integration": "intelligence-pipeline" } }' ``` A successful request returns `201`, a canonical `whk_...` ID, `Location`, and `ETag`. Store the ID. You need it to test the endpoint and attach it to a subscription. Secrets and headers are write-only List and mutation responses reveal whether signing is configured and return custom header names, but never return the secret or custom header values. ## 2. Test the receiver ``` curl --request POST "https://api.y2.dev/api/v1/webhooks/$WEBHOOK_ID/test" \ --header "Authorization: Bearer $Y2_API_KEY" ``` The test request is a CloudEvents 1.0 event with type `dev.y2.webhook.test.v1`. Y2 waits up to 10 seconds. A `2xx` response from your receiver produces `200`. A timeout, network error, or non-`2xx` response produces `422`. The test verifies connectivity and signing, but it does not attach the configuration to a report subscription. ## 3. Attach the webhook to a subscription Use the subscription's canonical `sub_...` ID, not its profile ID: ``` curl --request PATCH \ "https://api.y2.dev/api/v1/subscriptions/$SUBSCRIPTION_ID/delivery" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Content-Type: application/json" \ --data "{\"deliveryMethod\":\"webhook\",\"webhookConfigId\":\"$WEBHOOK_ID\"}" ``` The webhook must be active and belong to the same user or workspace scope as the subscription. Changing a profile does not change its subscription delivery settings. ## 4. Process the report event Production deliveries use structured CloudEvents with media type `application/cloudevents+json` and event type `dev.y2.report.generated.v1`: ``` { "specversion": "1.0", "id": "y2mexamplelogicalevent01", "source": "https://api.y2.dev/api/v1/profiles/prf_0123456789abcdef01234567", "type": "dev.y2.report.generated.v1", "subject": "reports/rpt_0123456789abcdef01234567", "time": "2026-07-21T18:00:00.000Z", "datacontenttype": "application/json", "dataschema": "https://api.y2.dev/schemas/events/report-generated-v1.json", "data": { "report": { "id": "rpt_0123456789abcdef01234567", "profileId": "prf_0123456789abcdef01234567", "summary": "A concise report summary.", "status": "published", "generatedAt": "2026-07-21T17:59:42.000Z", "language": "en", "intelligence": { "signalCount": 3, "graphNodeCount": 12 }, "audio": { "status": "available", "durationSeconds": 284 } }, "subscription": { "id": "sub_0123456789abcdef01234567" }, "links": { "report": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567", "markdown": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567?format=markdown", "sources": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567?include=sources", "signals": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567/signals", "graph": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567/graph", "audio": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567/audio" } } } ``` The event is intentionally compact. Use the supplied links and a key with the relevant Reports scope to retrieve full Markdown, sources, signals, graph, or audio. ## Delivery headers | Header | Meaning | | ----------------- | ---------------------------------------------- | | `Content-Type` | `application/cloudevents+json` | | `User-Agent` | `Y2-Webhook-Delivery/3.0` | | `X-Y2-Timestamp` | Attempt time as Unix seconds | | `X-Y2-Event-Id` | Stable logical event ID. Matches the body `id` | | `X-Y2-Attempt-Id` | Unique transport-attempt ID | | `X-Y2-Attempt` | One-based attempt number | | `Idempotency-Key` | Stable logical event ID | | `X-Y2-Signature` | `sha256=` when a secret is configured | Configured custom headers are sent first. Y2's delivery headers take precedence if names collide. ## Verify the signature Compute HMAC-SHA256 over the exact raw request bytes. Do not parse and reserialize the JSON before verification. ``` import { createHmac, timingSafeEqual } from "node:crypto"; export function verifyY2Webhook( rawBody: Buffer, signatureHeader: string | null, secret: string, ): boolean { if (!signatureHeader) return false; const expected = Buffer.from( `sha256=${createHmac("sha256", secret).update(rawBody).digest("hex")}`, ); const actual = Buffer.from(signatureHeader); return actual.length === expected.length && timingSafeEqual(actual, expected); } ``` Also compare `X-Y2-Timestamp` with your current time and reject values outside your replay window. Five minutes is a practical default. Only return `2xx` after the event has been durably accepted. ## Handle attempts and failures The event body and `X-Y2-Event-Id` remain stable if the same logical delivery is attempted again. `X-Y2-Attempt-Id` and `X-Y2-Attempt` identify the transport attempt. Deduplicate on the body `id`, `X-Y2-Event-Id`, or `Idempotency-Key` before starting downstream work. Each event has at most five automatic attempts, with a 10-second timeout and delays of 5 seconds, 30 seconds, 5 minutes, and 30 minutes. Network errors, timeouts, HTTP 408/429, and 5xx responses are retried. Other HTTP rejections pause the destination immediately. Five consecutive failures across a destination also pause it. Successful delivery resets that counter. Retries reuse the original payload and event ID and do not restart report generation. The configuration owner receives one warning email on the first temporary failure and one email when delivery is paused. Paused destinations receive no further automatic attempts. Reports, configuration, and delivery history remain available. Other destinations continue independently. `GET /webhooks` exposes status and delivery health, including the failure reason/status, last success, suspension time, and last successful test. To recover: 1. Save repaired configuration with `PUT`, keeping `isActive: false`. 2. Call `POST /webhooks/{webhookId}/test`. Disabled destinations can be tested. A successful response includes the configuration's new `ETag`, because testing updates its delivery health. 3. Within 15 minutes, `PUT` the same configuration with `isActive: true`, using the test response's `ETag` in `If-Match`. Include the same secret and headers: changing the endpoint, signing secret, or headers invalidates the test. 4. In **Delivery history and replay** in webhook settings, explicitly replay retained failed events. Enabling delivery does not automatically replay the backlog. Enabling without a current successful test returns `409 WEBHOOK_TEST_REQUIRED`. A test failure does not consume the production retry budget. ## Replace or delete a configuration `PUT /webhooks/{webhookId}` replaces the complete mutable configuration. `name` and `url` are required. Omitted `secret` and `headers` are cleared. Omitted `isActive` preserves the current status. Send the latest returned `ETag` in `If-Match` when you have one to prevent overwriting a concurrent change. Before deleting a webhook, move every attached subscription to another delivery method or webhook. Deletion returns `409 WEBHOOK_IN_USE` while any subscription still references the configuration. A successful deletion returns `204` with no body. [Webhook endpoint reference](https://y2.dev/docs/api/reference/webhooks) [Update subscription delivery](https://y2.dev/docs/api/reference/subscriptions/updateDelivery) [Reports API](https://y2.dev/docs/api/reports) [Authentication](https://y2.dev/docs/api/authentication) --- # Explore the API with Workbench (https://y2.dev/docs/api/workbench/) Run live read requests and generate secret-safe curl, TypeScript, and Python examples Use API Workbench to inspect operations, run requests, and copy code examples. Open **[Developers → API Workbench](https://y2.dev/app/developers/api-workbench)** in the dashboard. API-key access is required [Create an API key](https://y2.dev/docs/api/create-key) or use an eligible existing Lite key. The key needs the selected operation's scopes. Request bodies are not supported Use Workbench for requests with path and query parameters. For JSON request bodies, use examples from the [endpoint reference](https://y2.dev/docs/api/reference). ## Run a read request ### Paste an API key Enter a key in the password field. Workbench keeps it in the current page session. It sends the key when you run a request. ### Open a category and endpoint Open a category such as **News**. Select an endpoint. Check its method, path, required scopes, and parameters. ### Fill required values Fill the required path and query parameters. Enable only the optional parameters you need. ### Run the request Select **Run request**. Workbench calls the production API from your browser. It shows the status and response body. Successful read requests return `200`. Workbench shows local validation errors before sending a request. Missing parameters produce `400`. A missing key produces `401`. Requests use the workspace associated with the pasted key. Switching your active workspace in the app does not change the key's workspace. ## Generate a copy-safe snippet Select the **curl**, **TypeScript**, or **Python** tab in an expanded endpoint. Copied examples use environment variables for credentials and missing inputs. They exclude the key entered in Workbench. For example, after enabling `limit` without entering a value, a curl snippet can contain: ``` # Required: # countryCode (path): ISO 3166-1 alpha-2 country code # # Optional: # limit (query · integer · default: 8): Maximum results curl "https://api.y2.dev/api/v1/osint/countries/$COUNTRY_CODE/news?limit=$LIMIT" \ -H "Authorization: Bearer $Y2_API_KEY" \ -H "Accept: application/json" ``` Set the placeholders before running the copied command: ``` export Y2_API_KEY="y2_..." export COUNTRY_CODE="UA" export LIMIT="8" ``` | Example | Runtime | | ---------- | -------------------------------------------------- | | curl | Shell variables such as `$COUNTRY_CODE` | | TypeScript | Native `fetch` and `process.env` on a server | | Python | `httpx` and `os.environ`, with a 30-second timeout | ## Use the AI Quickstart prompt **Copy prompt** gives a coding agent links to the Y2 guides. It excludes your API key. After pasting it, state the endpoint and task you need. Keep `Y2_API_KEY` in the agent runtime or MCP client environment. Do not put it in the prompt or tool arguments. ## Know the current boundaries | Capability | Current behavior | | --------------------- | ------------------------------------------------------------------------- | | API target | Production server from OpenAPI. Falls back to `https://api.y2.dev/api/v1` | | Path and query fields | Interactive and OpenAPI-driven | | Request body fields | Not rendered. Use endpoint reference examples | | Live response | Status and response body | | Response headers | Not displayed in the inline pane | | Authentication | Bearer key required by the runner | | x402 | Use curl or an x402 client outside Workbench | | Saved state | Key and parameter values remain in the current page session only | Before using copied code in production, add timeouts, error handling, and secret management. Add pagination and retries where the operation requires them. [Endpoint reference](https://y2.dev/docs/api/reference) [OpenAPI contract](https://y2.dev/docs/api/openapi) [Integration recipes](https://y2.dev/docs/api/integration-recipes) [x402 requests](https://y2.dev/docs/api/x402) --- # Pay per Request with x402 (https://y2.dev/docs/api/x402/) Call supported read endpoints without an API key by settling USDC on Base x402 lets an agent or application pay for a supported Y2 read request without creating an account or API key. Y2 advertises an x402 v2 payment requirement, verifies and settles the signed payment, then serves the normal endpoint response. ## Choose bearer auth or x402 | Mode | Use it for | | -------------- | --------------------------------------------------------------------------- | | Bearer API key | Recurring integrations, workspace-scoped data, writes, and plan rate limits | | x402 | Anonymous, one-off, agent-driven access to supported public read operations | A request with `Authorization: Bearer ...` always takes the API-key path. An invalid bearer token returns its normal `401` or `403`. Y2 does not silently fall back to x402. Omit `Authorization` entirely when you intend to pay per request. ## Supported API surfaces x402 is enabled on registered read operations in these families: - Reports, including Markdown, text, signals, graph, audio, and TTS text. - News items, recaps, and feed discovery. - OSINT feeds and country intelligence. - Intel v2 incidents, entities, markets, financial intelligence, signals, cyber, and changes. It is not an alternative for API-key-only surfaces such as profile management, webhook configuration, or Agent Y2. Check an operation's `security` and `x-x402` fields in the [generated endpoint reference](https://y2.dev/docs/api/reference) before building a payment flow. Some list routes need explicit public context Anonymous callers do not have a user or workspace context. For example, `GET /reports` requires a canonical `profileId` query parameter on the x402 path. ## Read the payment challenge Send the exact resource request without a bearer key: ``` curl --include \ "https://api.y2.dev/api/v1/news?topics=markets&limit=5" ``` The `402` response includes a base64-encoded `PAYMENT-REQUIRED` header and the decoded requirement as JSON. Its shape is similar to: ``` { "x402Version": 2, "error": "Payment required", "resource": { "url": "https://api.y2.dev/api/v1/news?topics=markets&limit=5", "description": "Real-time direct-source news terminal items", "mimeType": "application/json" }, "accepts": [ { "scheme": "exact", "network": "eip155:8453", "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "amount": "2000", "payTo": "0x...", "maxTimeoutSeconds": 60, "extra": { "name": "USD Coin", "version": "2" } } ], "extensions": { "bazaar": { "discoverable": true } } } ``` Do not hard-code `asset`, `payTo`, EIP-712 domain fields, or the amount from this example. Read and validate the returned requirement every time. `amount` is expressed in atomic token units. USDC uses six decimals, so `"2000"` represents `$0.002`. Production requirements use Base mainnet (`eip155:8453`). Development deployments can use Base Sepolia (`eip155:84532`). The network is a CAIP-2 identifier, not the legacy `base` slug. ## Make a paid request in TypeScript The following flow matches the x402 packages used by the current Y2 implementation: ``` npm install @x402/core@^2.18.0 @x402/evm@^2.18.0 viem@^2.55.2 ``` Create the signer in a server-side runtime or secure wallet environment. Never expose a raw private key in browser code. ``` import { x402Client } from "@x402/core/client"; import { x402HTTPClient } from "@x402/core/http"; import { ExactEvmScheme } from "@x402/evm/exact/client"; import { privateKeyToAccount } from "viem/accounts"; const privateKey = process.env.X402_PRIVATE_KEY as `0x${string}` | undefined; if (!privateKey) throw new Error("X402_PRIVATE_KEY is required"); const signer = privateKeyToAccount(privateKey); const core = new x402Client().register("eip155:*", new ExactEvmScheme(signer)); const x402 = new x402HTTPClient(core); const url = "https://api.y2.dev/api/v1/news?topics=markets&limit=5"; const challengeResponse = await fetch(url, { headers: { Accept: "application/json" } }); if (challengeResponse.status !== 402) { throw new Error(`Expected an x402 challenge, received ${challengeResponse.status}`); } const challengeBody = await challengeResponse.json(); const requirement = x402.getPaymentRequiredResponse( (name) => challengeResponse.headers.get(name), challengeBody, ); const option = requirement.accepts[0]; if (!option || option.scheme !== "exact" || option.network !== "eip155:8453") { throw new Error("Y2 returned an unsupported payment option"); } const maxAtomicUsdc = 2_000n; if (BigInt(option.amount) > maxAtomicUsdc) { throw new Error("Payment exceeds the client price ceiling"); } const payment = await x402.createPaymentPayload(requirement); const paidResponse = await fetch(url, { headers: { Accept: "application/json", ...x402.encodePaymentSignatureHeader(payment), }, }); const settlement = paidResponse.headers.has("PAYMENT-RESPONSE") ? x402.getPaymentSettleResponse((name) => paidResponse.headers.get(name)) : null; const result = await paidResponse.json(); console.log({ status: paidResponse.status, settlement, result }); ``` The price ceiling above is specific to the `$0.002` News example. Set a ceiling appropriate to the operation you selected. Keep the first and second request URL, method, query, and body identical. ## Understand the headers | Header | Direction | Meaning | | ------------------- | --------- | ------------------------------------------ | | `PAYMENT-REQUIRED` | Response | Base64-encoded x402 v2 challenge | | `PAYMENT-SIGNATURE` | Request | Base64-encoded signed payment payload | | `PAYMENT-RESPONSE` | Response | Base64-encoded settlement result | | `Authorization` | Request | Selects bearer authentication when present | `X-PAYMENT` and `X-PAYMENT-RESPONSE` are legacy x402 v1 names. New Y2 clients should use the v2 headers above. ## Prices and wallet limits Each operation maps to one current tier. The generated endpoint page is the source of truth for the operation's exact price. | Tier | Price | Per wallet/minute | Per wallet/day | | --------------------- | ------ | ----------------- | -------------- | | Health/meta | $0.001 | 60 | 10,000 | | Standard read | $0.002 | 60 | 5,000 | | Enriched data | $0.01 | 30 | 2,000 | | Premium report list | $0.05 | 10 | 500 | | Premium single report | $0.25 | 10 | 200 | | Premium report audio | $0.50 | 5 | 100 | Y2 also applies a global per-endpoint circuit breaker. A wallet limit returns `429`. An endpoint capacity limit returns `503`. Both are checked before settlement, so the rejected request is not charged. ## Store and inspect a receipt The EIP-3009 authorization inside the signed payment contains a nonce. Treat that nonce as a receipt lookup capability and store it with the request result: ``` curl "https://api.y2.dev/api/v1/x402/receipts/$PAYMENT_NONCE" ``` The lookup is public to anyone who knows the nonce. It returns the payer address, endpoint, USD amount, network, and status. It includes the transaction hash and settlement time when available. It does not return the signature, token authorization, pay-to address, or full payment payload. | Receipt status | Meaning | | ---------------- | --------------------------------------------------------------- | | `verify_failed` | The facilitator rejected the payment | | `rate_limited` | Wallet or endpoint limits blocked the request before settlement | | `replay_blocked` | The payer and nonce combination was already recorded | | `settle_failed` | Verification passed but settlement did not complete | | `settled` | Payment settled and Y2 invoked the resource handler | | `handler_failed` | Payment settled, then the resource handler threw | Settlement happens before resource execution A settled payment can still be followed by an application response such as `400`, `404`, or a temporary data-readiness error. Validate resource IDs and parameters before signing, inspect the paid response status and body, and retain the nonce and `PAYMENT-RESPONSE` metadata for support. ## Handle failures | Status | Typical cause | | --------------------- | ----------------------------------------------------------------------------------------- | | `401` or `403` | Invalid bearer key or missing bearer scope. No x402 fallback | | `402` | Missing or invalid payment, unsupported payment payload, or nonce replay | | `429` | Per-wallet minute or daily limit exceeded | | `503` | x402 unavailable, settlement infrastructure unavailable, or endpoint circuit breaker open | | Other endpoint status | Payment settled, then the normal resource handler returned its own result | Never reuse an authorization nonce. When a result is ambiguous, check the receipt before creating a new payment so you do not confuse a settled request with a transport failure. [Payment receipt reference](https://y2.dev/docs/api/reference/payments/getX402Receipt) [Reports API](https://y2.dev/docs/api/reports) [Intel v2 API](https://y2.dev/docs/api/intel) [Authentication](https://y2.dev/docs/api/authentication) --- # Desktop App (https://y2.dev/docs/apps/) Install Y2 for Mac or Windows, connect your existing workspace, and manage desktop updates. Y2 Desktop puts your chats, projects, reports, and intelligence workspace in a dedicated app for Mac and Windows. The installer bundles the application and its runtime. You do not need Node.js, Bun, developer tools, or a separate browser installation to run it. Y2 Desktop is in beta The [Y2 download page](https://y2.dev/download) offers **unofficial, unsigned beta** installers alongside release notes and checksums. They install as **Y2** and use your existing account and workspace. Apple notarization and Windows publisher signing are planned for a future release. If the page says **Downloads not published yet**, use [Y2 in your browser](https://y2.dev/login). ## Requirements | Platform | Requirements | Installer | | -------- | ----------------------------------------- | ------------------- | | Mac | macOS 12 or later, Apple silicon or Intel | Universal `.dmg` | | Windows | Windows 10 or later, 64-bit x64 processor | `.exe` setup wizard | An internet connection and a Y2 account are required. Desktop uses the same cloud service, workspace data, plan, and usage limits as the web app. It does not provide an offline copy of your workspace or run AI models on your device. No separate desktop subscription is required. ## Install on Mac 1. Open [Y2 downloads](https://y2.dev/download) and select **Download for Mac** when available. 2. Open the downloaded `.dmg` file and drag **Y2** into **Applications**. 3. Eject the disk image, then open Y2 from Applications or Launchpad. 4. This beta is unsigned and not notarized. After macOS blocks the first launch, open **System Settings → Privacy & Security → Open Anyway** for Y2 if you choose to trust this download. Confirm **Open** when prompted. See [Apple's instructions](https://support.apple.com/102445). 5. Sign in with the email address or phone number you already use for Y2, then enter your verification code. New users can create their workspace through the same sign-in flow. ## Install on Windows 1. Open [Y2 downloads](https://y2.dev/download) and select **Download for Windows** when available. 2. Open the downloaded `.exe` installer. An **Unknown publisher** warning is expected for this unsigned beta. If SmartScreen offers **More info → Run anyway**, you can use it after verifying the download's checksum. Smart App Control or organizational policies may block unsigned apps without an override. Use [Y2 in your browser](https://y2.dev/login) on those devices. 3. Follow the setup wizard to choose the installation location and complete installation. 4. Open **Y2** from the Start menu or desktop shortcut. 5. Sign in with your existing Y2 account, or complete the new-workspace setup. ## Verify a download The download page links the release notes and a versioned `SHA256SUMS.txt` file. To check file integrity, calculate the installer's SHA-256 digest and compare the full result with its entry in the checksum file. Replace the example path below with your downloaded file's path. On macOS, use Terminal: ``` shasum -a 256 "/path/to/Y2-installer.dmg" ``` On Windows, use PowerShell: ``` Get-FileHash "C:\path\to\Y2-installer.exe" -Algorithm SHA256 ``` If the digest differs, discard the file and download it again from [Y2 downloads](https://y2.dev/download). Checksums verify file integrity. These unofficial builds do not have a verified publisher signature. ## Use your workspace Your saved chats, projects, intelligence profiles, and reports are shared with the web app. Changes synchronize through Y2's cloud service while you are online. Select the same workspace on each device to see the same information. Feature availability follows your [workspace plan](https://y2.dev/docs/plans). Billing opens securely in your default browser. After checkout or managing a subscription, choose **Open Y2 Desktop** on the return page. If your browser does not open the app, reopen Y2 directly and check **Settings → Billing**. Billing status may take a moment to refresh. For research and account workflows, the rest of the [Y2 documentation](https://y2.dev/docs) applies to desktop as well. ## Sign-in on your device Y2 connects directly to its cloud API using your normal sign-in. You do not need a developer account or a deployment key. The desktop app saves sign-in credentials with your operating system's encryption so you can reopen it without signing in each time. On Mac, this can prompt for access to Y2's Keychain item. If secure storage is locked or access is denied, unlock it and choose **Try again** in Y2. **Clear saved sign-in** removes the local credentials so you can sign in again. Signing out also removes the saved credentials. Your cloud workspace remains available. ## Updates These unofficial builds use **manual updates**. Download the latest installer from [Y2 downloads](https://y2.dev/download), quit Y2, and install the new version. Your account and cloud workspace remain the same. The app may display its internal channel as **local**. Automatic updates are not configured for this build. Signed automatic updates are planned for a future release. If Y2 requires a newer version to connect to the service, follow the update prompt or download the current release manually. You can continue in the web app while resolving an installation or update problem. ## Installation troubleshooting | Problem | What to do | | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | No download button | The public release is still being prepared. Use the web app and check the download page for availability. | | macOS cannot verify the developer | Follow the Open Anyway steps above for this unsigned beta. If macOS reports damage or malware, compare the checksum and contact support. Do not disable Gatekeeper globally. | | Windows reports an unknown publisher | This is expected for the unsigned beta. Verify the checksum and use the per-app SmartScreen exception if available. If device policy or Smart App Control blocks it, use the browser app. | | The app opens but cannot connect | Check your internet connection and whether Y2 opens in your browser. A work network may need to allow Y2's service and download endpoints. | | A page fails to load | Use the recovery screen to retry or restart Y2. If it continues, use the web app and report the app version and operating-system version. | | An update fails | Check your connection and available disk space, then retry. You can install the latest release from the official download page without creating a new account. | | Workspace data looks different | Check the signed-in account and selected workspace on both devices. Desktop has the same workspace permissions as the web app. | For help, email . Include your operating-system version, Y2 version and channel, and the exact error message. Do not send passwords or verification codes. ## Uninstall Quit Y2 before uninstalling. On macOS, move the application from Applications to Trash. On Windows, uninstall Y2 from **Settings → Apps**. Removing the desktop application does not delete your cloud workspace or cancel your subscription. Manage your account and billing in Y2. [Desktop downloads](https://y2.dev/download): Check the current Mac and Windows release and its installation files. [Open Y2 on the web](https://y2.dev/login): Continue with your existing account and cloud workspace. --- # Audio Reports (https://y2.dev/docs/audio/) Audio Reports # Audio Reports Enable narration, play a report, and resolve missing audio. Audio Reports turn a report into MP3 narration. The feature requires a Pro or Elite workspace. The profile editor labels it **Alpha**. Enable narration before a report runs. This setting does not add audio to existing reports. Audio generation can also be disabled by the service operator. ## Enable narration for a profile 1. Open **InfoOps → My Profiles**. 2. Create or edit a profile. 3. Open **Advanced Configuration**. 4. Enable **Audio Narration**. 5. Preview and select a voice. 6. Choose a generation speed. 7. Select a synced pronunciation dictionary if needed. 8. Save the profile. Y2 attempts narration when the profile next produces a complete report. Open that report and check for **Listen**. Match the dictionary language The dictionary selector does not filter by voice language. Check the language badge before assigning a dictionary. ## Play and deliver audio Select **Listen** on a report with audio. The player supports pause, seeking, download, and playback speed. Email delivery links to the report page when narration exists. It does not attach the MP3. See [Audio reference](https://y2.dev/docs/audio/reference) for voice settings, output limits, and delivery behavior. ## Create a pronunciation dictionary Use the [dictionary setup guide](https://y2.dev/docs/audio/dictionaries) to define replacements and verify provider sync. ## Customize spoken branding Open **InfoOps → Audio** to edit a branding template's intro and outro. Use the [Branding Templates editor](https://y2.dev/docs/profiles/branding) for before-report and after-report audio. Assign the template to the profile to apply it. ## Retrieve audio through the API Use the [Reports API guide](https://y2.dev/docs/api/reports) and [audio endpoint reference](https://y2.dev/docs/api/reference/reports/getReportAudio). The endpoint requires `reports:audio` or its supported x402 payment flow. ## Troubleshoot audio **Audio Narration is disabled** Confirm that the active workspace is Pro or Elite. Service configuration can also disable new audio generation. **The report has no Listen button** Confirm that narration was enabled before the run. Incomplete reports, provider failures, output limits, or budget limits can prevent audio. Report delivery can continue without narration. **A dictionary has no effect** Confirm that the profile uses the intended dictionary and its status is **Synced**. Check that the dictionary and voice languages match. **The duration changes after playback starts** Y2 first shows a text-based estimate. The player replaces it with the file's duration after loading. **The API returns 404** Check the public report ID, your access, and whether the report has audio. Missing audio uses the same not-found response. --- # Create a Pronunciation Dictionary (https://y2.dev/docs/audio/dictionaries/) Audio Reports # Create a Pronunciation Dictionary Define spoken replacements and assign a synced dictionary to a profile. Pronunciation dictionaries require Pro or Elite. The feature is **Alpha**. See [Audio reference](https://y2.dev/docs/audio/reference#dictionary-limits) for limits. ## Create and assign a dictionary 1. Open **InfoOps → Audio**. 2. Select **Create** under **Pronunciation Dictionaries**. 3. Enter a name and select English or Spanish. 4. Add entries individually or import a CSV file. 5. Enter a source word and a readable replacement for each entry. 6. Save the dictionary. 7. Wait for the **Synced** badge. 8. Open the profile's **Advanced Configuration**. 9. Enable **Audio Narration**. 10. Select the dictionary and save the profile. Use readable replacements Provider sync sends every entry as a text replacement, including entries labeled IPA. Test the pronunciation in a generated report. ## Resolve a sync error If the badge shows **Error**, inspect the displayed message. Correct the entries and select the refresh button. Editing a dictionary changes its status to **Pending** until sync completes. Y2 applies only synced dictionaries with a provider ID. The dictionary must belong to the profile's user or workspace scope. A pending, failed, deleted, or inaccessible dictionary is not applied during generation. --- # Audio Reference (https://y2.dev/docs/audio/reference/) Audio Reports # Audio Reference Narration settings, generation limits, dictionary limits, and delivery behavior. ## Narration settings | Setting | Values | Default | | ------------------------ | --------------------------------------- | --------------------- | | Voice | Available English or Spanish voice | Professional narrator | | Generation speed | Slow: 0.85x, Normal: 1x, Fast: 1.15x | Normal | | Pronunciation dictionary | A synced dictionary in the active scope | None | | Playback speed | 0.75x, 1x, 1.25x, 1.5x, 2x | 1x | Voice availability can change. The library groups voices by presentation style and language. Voice labels can be masculine, feminine, or neutral. ## Generation Y2 removes citation markers, the trailing references section, HTML, and Markdown before narration. It converts numbers, abbreviations, and punctuation for speech. Assigned branding supplies the intro, outro, and optional before-report and after-report content. | Property | Value | | ------------------------ | ------------------------------- | | Provider model | Cartesia Sonic-3 | | Format | MP3 | | Sample rate | 44.1 kHz | | Bit rate | 128 kbps | | Maximum file size | 20 MB | | Duration before playback | Estimate from the prepared text | Provider configuration, an incomplete report, file size, or report budget can prevent generation. Audio is optional. Delivery can continue without it. ## Dictionary limits | Property | Limit | | ---------------------- | -------------- | | Dictionaries in Pro | 10 | | Dictionaries in Elite | 100 | | Entries per dictionary | 200 | | Dictionary name | 50 characters | | Description | 200 characters | | Source word | 100 characters | | Replacement | 300 characters | ## Spoken branding | Field | Limit | Position | | ------------------- | -------------- | ----------------------------------- | | Audio intro | 100 characters | Before the report | | Before-report audio | 200 characters | After the intro and optional label | | After-report audio | 200 characters | Before the outro and optional label | | Audio outro | 200 characters | At the end | Use `{name}` for the profile name. A branding template must be assigned to the profile. ## Delivery | Surface | Behavior | | ----------- | ---------------------------------------------------------------- | | Report page | Shows **Listen** when an audio URL exists | | Email | Links to the report page without attaching the MP3 | | Webhook | Supplies availability, estimated duration, and an API audio link | | Reports API | Returns audio metadata or redirects to the MP3 | Deleting the owning report, profile, workspace, or account removes its audio. Storage cleanup can also remove files. Save a copy if you need an archive. ## API fields Use `durationSeconds`. The older `duration` field is deprecated. Request `?redirect=true` or an audio media type for a `302` redirect to the stored file. The [audio-text endpoint](https://y2.dev/docs/api/reference/reports/getReportAudioText) requires `reports:read`. It returns prepared speech text and estimated duration even when no MP3 exists. See the [audio endpoint reference](https://y2.dev/docs/api/reference/reports/getReportAudio) for the complete schema. --- # Automations (https://y2.dev/docs/automations/) Automations # Automations Understand Pro and Elite Automations that run Agent Y2 on a schedule or after a profile report completes. Automations run a bounded Agent Y2 instruction without requiring someone to open Chat. An Automation runs on a schedule or after a selected profile finishes a report. Its output can stay inside a Project. Pro and Elite only Automations are not included with Free or Lite. Pro workspaces can keep up to 10 active, paused, or draft definitions. Elite workspaces can keep up to 100. The limit is shared by the workspace. ## Definition and run separation The Automation definition stores its name, instruction, trigger, notification policy, optional Project, and current revision. Every execution creates a separate run snapshot. Editing a definition does not rewrite prior run history. Only one run for a definition can execute at a time. When a trigger arrives while another run is active, the newer run is skipped instead of overlapping. ## Trigger types | Trigger | Behavior | | ------------------------ | ------------------------------------------------------------------------------ | | Schedule | Daily, weekly, or monthly in the selected IANA timezone. | | Profile report completed | Runs once for each accepted completion event from the selected active profile. | | Manual | **Run now** creates an immediate run from an active definition. | Profile triggers must reference a profile owned by the same user in the same workspace. A Project-bound Automation needs an active Project in the same workspace and write access for the Automation owner. ## Access changes and downgrade safety Y2 checks current workspace membership, plan access, definition revision, and Project access again when a run starts. If Automations are no longer available, Y2 skips the run, pauses the definition, and cancels its schedule. A downgraded owner can still pause or archive an existing definition so cleanup is not blocked by the upgrade gate. ## Cost and output Each accepted run reserves an Agent Y2 budget. It settles actual model and tool costs or releases unused funding after failure or cancellation. Output is written to the definition's workspace-bound thread. Project-bound output stays in that Project. ## Elite governance Elite audit logs bind Automation creation, edits, status changes, and manual run requests to the acting user and workspace. Run records also retain the owner, workspace, trigger, definition revision, billing state, and output identifiers. ## Choose the next task [Create an Automation](https://y2.dev/docs/automations/creating): Configure a trigger, instruction, Project, and notification policy. [Automations reference](https://y2.dev/docs/automations/reference): Review limits, statuses, triggers, run states, and access checks. [Use Projects](https://y2.dev/docs/projects): Build the private objective and context an Automation can operate within. --- # Create an Automation (https://y2.dev/docs/automations/creating/) Automations # Create an Automation Configure an Agent Y2 task and verify its first run. You need a Pro or Elite workspace and a role with write access. Create any required Project or profile before configuring the Automation. ## Create the definition 1. Open **Automations**. 2. Select **New Automation**. 3. Enter a name. 4. Write instructions for one repeatable outcome. 5. Select an active Project if the output belongs there. 6. Choose a trigger. 7. Choose notifications for all runs, failures only, or none. 8. Save as **Draft** to review, or **Active** to accept triggers. A selected Project must be in the same workspace and allow you to write. Without a Project, output stays in a workspace conversation. ## Choose a trigger | Trigger | Required settings | | ---------------- | ----------------------------------------------- | | Daily | Time and timezone | | Weekly | Weekday, time, and timezone | | Monthly | Day from 1 through 28, time, and timezone | | Report completed | An active profile you own in the same workspace | Schedule triggers use the selected local time and timezone. An active definition receives its next scheduled run. ## Verify the Automation 1. Select **Run now** on an active definition. 2. Open run history. 3. Wait for a final status. 4. For a successful run, open the output conversation. 5. Check that the output matches the instructions. If the run fails or is skipped, inspect its status before retrying. Y2 skips overlapping runs, outdated revisions, and runs that lose required access. See [Automations reference](https://y2.dev/docs/automations/reference) for states and admission checks. --- # Automations Reference (https://y2.dev/docs/automations/reference/) Automations # Automations Reference Reference for Automation availability, quotas, triggers, statuses, notifications, billing, and workspace checks. ## Availability and limits | Plan | Access | Shared workspace definition limit | | ----- | ------ | --------------------------------- | | Free | No | 0 | | Lite | No | 0 | | Pro | Yes | 10 | | Elite | Yes | 100 | Draft, active, and paused definitions count toward the limit. Archived definitions do not. Definitions are owner-private even in an Elite organization. ## Definition fields | Field | Constraint or value | | ------------------- | --------------------------------------------------------------------------------------- | | Name | Required, up to 100 characters. | | Instructions | Required, up to 8,000 characters. | | Operation | `agent_y2` | | Overlap policy | `skip_if_running` | | Status | Draft, active, paused, or archived. | | Notification policy | All runs, failures only, or none. | | Project | Optional active Project in the same workspace. Its Automation owner needs write access. | ## Schedule triggers | Frequency | Required fields | | --------- | ---------------------------------------- | | Daily | Time of day and IANA timezone. | | Weekly | Time of day, timezone, and weekday. | | Monthly | Time of day, timezone, and day of month. | ## Run states `queued` → `running` → `succeeded` or `failed` is the normal path. A run can instead become `skipped` when admission checks fail or another run overlaps, or `canceled` when its work is explicitly stopped. Billing states are `reserved`, `settled`, `released`, and `none`. A released state means the request hold was returned without creating settled usage. Each run snapshots the definition revision, instruction, name, trigger, workspace, optional Project, and cost metadata. ## Live admission checks Before paid work starts, Y2 verifies: - The definition is active and still at the queued revision. - The owner is still a member of the definition workspace. - The workspace still has Pro or Elite Automation access and Chat capacity. - A bound Project is active, in the same workspace, and accessible to the owner with write permission. - No earlier run for the definition is currently active. These checks apply to schedules, report events, manual runs, and workflow continuation. --- # Platform Changelog (https://y2.dev/docs/changelog/) Current Y2 Intelligence Platform release notes and dated monthly archives. Follow product changes across intelligence coverage, Chat, API access, and platform operations. ## Current release: November 3, 2026 ### More reliable CVE collection CVE collection now saves progress after every disclosure and automatically retries temporary source and system timeouts. An interrupted collection resumes from the affected record without replaying an entire batch or skipping a disclosure. Source updates, catalog entries, and ontology signals commit together. Persistent failures remain visible in collection status, including the affected CVE and whether fetching or saving failed. [CVE disclosures →](https://y2.dev/docs/osint/cve-disclosures) ## November 2, 2026 ### A clearer public CVE catalog The [public disclosure catalog](https://y2.dev/cve) now has a tighter table, homepage branding, and an **Explore more on Y2** button. - **Original publication dates.** A dedicated Published column shows the source's publication date. Missing dates are labeled "Not reported"; a separate Updated column shows how recently a source changed the disclosure. - **Priority defaults and filters.** The catalog opens with Critical and High disclosures, latest source updates first. Select any severity, highest CVSS first, reported fixes or workarounds, or CISA known exploited vulnerabilities. Exact CVE IDs remain accessible regardless of active filters. - **Search and browse.** Search CVE IDs, years, vendors, products, and keywords across collected disclosures. Choose 25, 50, or 100 rows per page; search, filters, page size, pagination, and the page URL stay in sync. - **Compact filter controls.** Page size, severity, remediation, exploitation, and sorting menus fit their labels with consistent inset arrows. Shorter labels and a responsive layout keep controls readable on smaller screens, with native keyboard and mobile selection. - **Signals in the table.** Rows show CVSS, affected products, reported fixes, CISA KEV, available EPSS assessments, and source counts alongside source dates. - **API and agent parity.** Public JSON, Markdown, and WebMCP support the same filters. The existing Cyber API adds the collected catalog with `catalog=true` or catalog filters, preserving entity identities and API-key/x402 access. - **Source-backed fix signals.** Referenced public GitHub advisories now supply verified CVE identity and explicit patched release branches. Current disclosure, catalog, and ontology state update together; ambiguous version boundaries do not become fix badges. Collection status exposes partial or failed refreshes. - **Open the whole row.** Clicking a disclosure title, date, or other part of a catalog row opens its public CVE page. Native links support keyboard navigation and opening a disclosure in a new tab. - **Copy and connect agents.** Copy the current catalog page or disclosure as Markdown, preserving filters and revisions. Public pages expose native WebMCP tools and agent access metadata, with guides for x402 pay-per-request access or a Y2 Pro or Elite API key for the Cyber API. Public disclosure reads remain free. - **Page actions within reach.** The catalog and disclosure pages now put an icon-led Copy Markdown button and Open menu at the top right, matching the documentation controls. The menu includes Markdown, JSON, and agent access. [CVE disclosures →](https://y2.dev/docs/osint/cve-disclosures) ## November 1, 2026 ### CVE disclosures, source history, and share cards **Cyber → CVEs** now opens a sourced vulnerability disclosure with affected versions, fixes and workarounds, CVSS assessments, references, and available CISA KEV, EPSS, and SSVC context. - **Public disclosures.** Share a URL such as [CVE-2021-27460](https://y2.dev/cve/CVE-2021-27460) without requiring sign-in. Each page has a generated PNG preview tied to its disclosure revision, plus JSON and Markdown representations. A public index, update feed, and collection status make the retained records discoverable. - **Trace each assessment.** CVE List, NVD, CISA, FIRST, and verified OSV references retain their own provenance. Primary authority assessments lead; KEV membership does not raise a technical CVSS score. Rejected and unscored records remain visible, and earlier disclosure revisions remain available. - **Connected to the ontology.** CVEs reuse their existing entity identities. Affected vendors and software link to the graph with source evidence; corrected disclosures retire the relationships they no longer support. - **Watch changes and check packages.** Save CVE or product watches for in-app alerts. Check exact package versions or supported npm/Bun text lockfiles against OSV, with partial results and uncertain matches labeled. - **Richer Cyber API.** `GET /api/v2/cyber/cves` adds compact disclosure summaries and links while preserving entity IDs, pagination, and sparse fields. `GET /api/v2/cyber/cves/{cveId}` returns the full sourced disclosure or a retained revision. Both use the existing `intel:cyber` API-key or x402 access contract. - **Reliable advisory updates.** OSV collection tracks progress and freshness separately for each CVE, preventing concurrent updates from interrupting one another. Collection status identifies the CVE behind its latest OSV attempt; unavailable advisories remain explicitly partial. Coverage reflects records and enrichments that Y2 has collected. Incremental synchronization does not establish a complete historical catalog; source status and baseline progress are reported separately. [CVE disclosures →](https://y2.dev/docs/osint/cve-disclosures) · [CVE API →](https://y2.dev/docs/api/reference/intel/getCVEDisclosureV2) ## October 27, 2026 ### Y2 Intel MCP 0.4.0 at mcp.y2.dev The hosted connection for Claude, ChatGPT, and other assistants now runs at `https://mcp.y2.dev/mcp`. The local server is version 0.4.0 on npm. - **Reconnect hosted assistants.** Connections to the earlier `workers.dev` address no longer work. Remove Y2 Intel from your assistant, then add it again with `https://mcp.y2.dev/mcp`. - **Node.js 24.22.1 or later.** `@y2-intel/mcp` 0.4.0 requires Node.js 24.22.1 or later, or 26.12.1 or later. Earlier Node.js releases have known security vulnerabilities. - **Every published API operation.** The local server has typed tools for all 78 published operations, including disclosures, DNS snapshots, and the change feed `since` start time. Write tools stay off unless you set `Y2_MCP_ENABLE_WRITE_TOOLS=true`. - **Smaller install.** The npm package installs only the MCP SDK, `yaml`, and `zod`. [Connect through MCP →](https://y2.dev/docs/api/mcp) · [Local MCP server →](https://y2.dev/docs/api/mcp-local) ## October 26, 2026 ### Military aircraft tracking returns Live military aircraft are back on the Situation Room map and in the API, now sourced from the [adsb.lol](https://www.adsb.lol/) community ADS-B network (ODbL 1.0) instead of Wingbits. - **One request, every theater.** Every 15 minutes Y2 reads every aircraft the ADS-B database flags as military, classifies the type (tanker, AWACS, fighter, bomber, and more), and assigns the smallest enclosing theater. Positions refresh in place and expire after 30 minutes. - **Posture for nine conflict theaters.** `/osint/military-posture` assesses `iran`, `blacksea`, `taiwan`, `israelgaza`, `emed`, `redsea`, `scs`, `korea`, and `baltic` with a strike-capability read and counts by type. - **Click down on the map.** The aircraft popup shows registration, type code, squawk, altitude, speed, and heading, and opens the aircraft on adsb.lol. - **Positions stay ephemeral.** Only bombers, AWACS, reconnaissance aircraft, and emergency squawks become durable observations in the graph. Routine positions are not retained. - **API provenance.** `/osint/aircraft` rows now carry `registration`, `typeCode`, `squawk`, SI units for altitude and speed, and a `source` linking to the aircraft on adsb.lol. Posture rows carry a computed `source`. Wingbits is retired. GPS interference collection, which depended on it, is paused: the `/osint/gps-jamming` operation returns an empty collection with `sourceStatus: unavailable`, and the map layer is off by default until the feed is re-sourced. [Aircraft tracks →](https://y2.dev/docs/osint/sources#aircraft-tracks) · [API reference →](https://y2.dev/docs/api/reference/osint/listAircraft) ### URLhaus restored and cyber threats with provenance abuse.ch retired its anonymous URLhaus downloads on October 21. Y2 now reads the authenticated URLhaus API, so malware URL indicators flow again. - **Provenance on every cyber threat.** `/osint/cyber-threats` rows carry `source`, `observedAt`, `temporality`, `confidence`, and `provenanceTier`, matching the rest of the observation contract. Provider rows still never expose the malicious URL, only the provider report page. - **Start the change feed at an instant.** `/api/v2/changes` accepts `since` (RFC 3339 or Unix milliseconds) for a first read; resume with the `watermark` afterwards. - **Partial knowledge results are labeled.** Global knowledge retrieval returns `meta.availability` with `complete` or `partial` and the corpora that answered. [Cyber threats →](https://y2.dev/docs/api/reference/osint/listCyberThreats) · [Change feed →](https://y2.dev/docs/api/reference/intel/listChangesV2) ## October 16, 2026 ### Cyber DNS Explorer Look up a domain from **Cyber → DNS Explorer** to see its subdomains, mail servers, and name servers. The page also shows the addresses that each host resolves to and the networks that announce them. Y2 collects each answer from DNSDumpster and keeps it with the time that it arrived. - **A footprint map.** The map shows the domain, one hub for each record type, each host, and each address. Addresses appear in groups under their network (ASN) with their netblock. Move the pointer over a host to see where it resolves. Tables list each record with reverse DNS and the HTTP and TLS banners seen on the address. - **Dated history.** Each snapshot keeps its capture time. Open an earlier snapshot to compare it. A badge shows whether the records changed since the previous snapshot. - **One answer for 14 days.** A domain that anyone looked up in the last 14 days opens from the saved snapshot. It does not use a lookup. Pro includes 5 new lookups a month. Elite includes 1,000. - **Mapped into the graph.** The domain, hosts, addresses, and netblocks join the ontology. Network operators attach to companies that Y2 already tracks, such as Cloudflare. A company whose official website is the domain is linked as its operator. Each connection records when it was first and last seen. Open the domain in Explorer and add it to a Project. - **API, MCP, and Agent Y2.** `POST /api/v2/cyber/dns/lookups` and `GET /api/v2/cyber/dns/snapshots` use the `intel:cyber` scope. The local MCP server calls them through `y2_call_api`. Agent Y2 can look up a domain or read its history in chat. DNS Explorer requires a Pro or Elite workspace. Free-tier records include up to 50 A records for each domain. A larger domain is marked as truncated. [Look up a domain's DNS footprint →](https://y2.dev/docs/osint/dns-explorer) · [DNS footprints in the graph →](https://y2.dev/docs/ontology/explanation/dns-footprints) · [API reference →](https://y2.dev/docs/api/reference/intel/createDnsLookupV2) ### SEC filings, insider trades, and federal awards Financial Intelligence now covers what public companies and the U.S. government disclose about themselves. Y2 reads SEC EDGAR twice a day and USAspending.gov once a day. Every company, insider, agency, and award recipient joins the same entity graph as the rest of your intelligence. - **Four new pages.** **Filings** lists Form 8-K material events by their most material item. **Insiders** lists Forms 3, 4, and 5 from officers, directors, and 10% owners. **Stakes** lists Schedule 13D activist stakes. **Awards** lists federal contract actions of $5M or more and grant actions of $10M or more. - **Screening.** Filter by category, severity, time window, and minimum amount, sort by size, and search by company, ticker, insider, agency, or recipient. Filters stay in the page URL, so you can share a screen. - **Primary records.** Each row opens the full record: 8-K items, every insider transaction line, 13D reporting persons, or award details. Each row also links to the SEC filing or USAspending award page. - **One entity per company and person.** Y2 matches issuers and insiders by SEC CIK and award recipients by Unique Entity ID. A new name is checked against existing entities before Y2 creates one. A contractor that also files with the SEC is one entity. - **A graph that builds over time.** Officers and directors connect to their company. Contract and grant recipients connect to the awarding office. Each connection records when it was first and last evidenced. Explorer and entity profiles show each filing and award as an event tied to every party it names. - **Companies.** Each company in **Markets** lists the disclosures that name it. The SEC filing import fills in the CIK that EDGAR recorded. - **API, MCP, and Agent Y2.** `GET /api/v2/disclosures` returns the same records with ontology entity IDs. **Integrate** on each page shows the request for the rows you loaded, as curl, TypeScript, Python, or an MCP call. Agent Y2 can screen disclosures in chat. Disclosures require a Pro or Elite workspace. API keys and MCP connections need the new `intel:disclosures` scope. Existing keys do not gain it automatically. [Screen disclosures with the Intel API →](https://y2.dev/docs/api/intel#screen-disclosures) · [API reference →](https://y2.dev/docs/api/reference/intel/listDisclosuresV2) ### More resilient intelligence updates - Large intelligence feed updates are saved in smaller groups so new observations can continue updating without exceeding processing limits. - Events with an unfamiliar source category remain available under **Other** instead of stopping the rest of the update. Location, evidence, and confidence checks still apply. - If a later group cannot be saved, observations from earlier groups remain available and the affected source can try again during its next refresh. ### More resilient report completion - If one writing path cannot accept the report format, Y2 tries supported alternatives. The report can finish from the same collected evidence. - This applies to reports generated after the update. Reports that already ended in failure remain unchanged and may still need to be retried. ### More reliable report and signup delivery - A report no longer repeats its full generation cycle when a saved delivery channel has no reachable contact details. Other recipients can continue receiving the report. - Signup reminder emails can be prepared and queued without interrupting the scheduled reminder. - An unreachable recipient still needs updated delivery details before they can receive a report. Earlier failed reports and reminders are not sent again automatically. ### More dependable connected intelligence and Project Evidence - Placeholder identifiers no longer interrupt connected-intelligence updates for unrelated products or assets. - Project Evidence can show lineage details for linked reports and other supported records. - Existing identity conflicts still require review and are not combined automatically. ## October 15, 2026: One entity for each real-world thing Name variants such as `U.S. Department of Defense` and `US Department of Defense`, or `AU` and `Australia`, now resolve to a single entity. Graphs, profiles, and connected intelligence no longer split the same organization, agency, or country across duplicate nodes. ### Fewer duplicate entities - Explorer graphs and entity profiles show one node after duplicates are combined. This includes duplicate country nodes that appeared in some graphs. - New mentions from reports and enrichment attach to an existing entity when Y2 is confident they describe the same thing. People, organizations, threat actors, and other higher-risk kinds also need an independent second check before they attach. - Uncertain matches stay separate and are held for review instead of being combined. Entities with conflicting identifiers, such as different registry or ISO codes, are never combined. - CVEs and indicators continue to match only on their exact identifier. ### Reviewed, reversible cleanup of existing duplicates - Existing duplicates are combined in reviewed batches. The earlier entity stays as a redirect to the surviving one, so saved links and references keep working. - Relations, incidents, and observations move to the surviving entity, and every combination can be reversed. [Read how Y2 resolves entity identity →](https://y2.dev/docs/osint/data-infrastructure#resolving-name-variants) · [Read the October 2026 release notes →](https://y2.dev/docs/changelog/2026-10) ## Previous releases Earlier release notes are grouped into monthly archives. Each link opens the full release entry. ### September 2026 - [September 17: Private chats, conversation controls, and reliability](https://y2.dev/docs/changelog/2026-09#september-17-2026-private-chats-conversation-controls-and-reliability) - [September 14: Project intelligence PDF exports](https://y2.dev/docs/changelog/2026-09#september-14-2026-project-intelligence-pdf-exports) - [September 12: More complete monitoring and higher Elite limits](https://y2.dev/docs/changelog/2026-09#september-12-2026-update) - [Report and intelligence reliability](https://y2.dev/docs/changelog/2026-09#report-and-intelligence-reliability) - [September 1: Elite workspace usage and API key activity](https://y2.dev/docs/changelog/2026-09#september-1-2026-elite-workspace-usage-and-api-key-activity) [View the complete September 2026 archive →](https://y2.dev/docs/changelog/2026-09) ### August 2026 - [August 25: Native WebMCP support](https://y2.dev/docs/changelog/2026-08#august-25-2026-native-webmcp-support) - [August 22: MCP expands agent access](https://y2.dev/docs/changelog/2026-08#august-22-2026-mcp-expands-agent-access) - [August 7: Reliable API results, safer access, and updated plan limits](https://y2.dev/docs/changelog/2026-08#august-7-2026-reliable-api-results-safer-access-and-updated-plan-limits) - [August 5: Connected Explorer, Documents, and Project Evidence](https://y2.dev/docs/changelog/2026-08#august-5-2026-connected-explorer-documents-and-project-evidence) [View the complete August 2026 archive →](https://y2.dev/docs/changelog/2026-08) ### July 2026 - [July 30: Privacy, product platform, and installed-app foundation](https://y2.dev/docs/changelog/2026-07#july-30-2026-privacy-product-platform-and-installed-app-foundation) - [July 24: Projects, Automations, and workspace governance](https://y2.dev/docs/changelog/2026-07#july-24-2026-projects-automations-and-workspace-governance) - [July 21: Global coverage, Chat updates, and Pro API keys](https://y2.dev/docs/changelog/2026-07#july-21-2026-global-coverage-chat-updates-and-pro-api-keys) - [July 17: Y2 Affiliate Program](https://y2.dev/docs/changelog/2026-07#july-17-2026-y2-affiliate-program) - [July 10: Privacy-first Chat and connected intelligence](https://y2.dev/docs/changelog/2026-07#july-10-2026-privacy-first-chat-and-connected-intelligence) - [July 8: Agent Y2 API, OpenAI-compatible Chat, and MCP](https://y2.dev/docs/changelog/2026-07#july-8-2026-agent-y2-api-openai-compatible-chat-and-mcp) [View the complete July 2026 archive →](https://y2.dev/docs/changelog/2026-07) ### June 2026 - [June 30: News Terminal, Lite trial signup, and platform reliability](https://y2.dev/docs/changelog/2026-06#june-30-2026-news-terminal-lite-trial-signup-and-platform-reliability) - [June 18: Chat reliability, OSINT Monitor, and landing performance](https://y2.dev/docs/changelog/2026-06#june-18-2026-chat-reliability-osint-monitor-and-landing-performance) - [Y2 Elite B2B, Organization Workspaces and Intel API v2](https://y2.dev/docs/changelog/2026-06#june-2026-y2-elite-b2b-organization-workspaces-and-intel-api-v2) [View the complete June 2026 archive →](https://y2.dev/docs/changelog/2026-06) ### March 2026 - [Y2SOURCE Event Provenance Engine](https://y2.dev/docs/changelog/2026-03#march-2026-y2source-event-provenance-engine) - [Profile Sharing Defaults](https://y2.dev/docs/changelog/2026-03#profile-sharing-defaults) - [Situation Room Map Enhancements](https://y2.dev/docs/changelog/2026-03#situation-room-map-enhancements) [View the complete March 2026 archive →](https://y2.dev/docs/changelog/2026-03) --- # March 2026 Release Archive (https://y2.dev/docs/changelog/2026-03/) Historical Y2 Intelligence Platform release notes from March 2026. [← Back to the latest release](https://y2.dev/docs/changelog) ## March 2026: Y2SOURCE Event Provenance Engine Historical release context This entry describes the March 2026 launch. At launch, Y2SOURCE was available on **Lite** and **Pro**. See [Plans and limits](https://y2.dev/docs/plans) and the [OSINT API guide](https://y2.dev/docs/api/osint) for current access and request behavior. Y2 intelligence reports now feed the Situation Room. The **Y2SOURCE extraction pipeline** extracts structured geopolitical events from reports generated by the Y2 Orchestration Engine. Each event includes provenance metadata linking it to the source report. ### What changed #### Event extraction from reports - Y2 now extracts discrete geopolitical events from each intelligence report. These include conflicts, political shifts, economic signals, and cyber incidents. - Extracted events include geographic coordinates, severity, and temporal analysis such as `ongoing`, `past`, `forecast`, or `analysis`. - Named-entity recognition captures people, organizations, countries, and locations referenced in each event. #### Situation Room integration - Y2-sourced events appear on the interactive globe alongside external OSINT feeds. - Y2 markers distinguish report-derived intelligence from direct provider observations. - Standard map filters such as category, severity, and region apply to Y2 events. #### Provenance metadata - Each Y2 event carries provenance metadata that connects the observation to report-derived extraction context. - Confidence scores from 0 to 1 reflect the extraction model's certainty about each event. - Temporal classification indicates whether an event is ongoing, historical, forecast, or analytical. ### Query report-extracted events `GET /api/v1/osint/y2-events` returns only observations with `sourceType: "y2_report"`. It accepts `category`, `severity`, `countryCode`, `limit`, and `cursor`. Bearer-token requests require the `osint:read` scope. ``` curl -H "Authorization: Bearer y2_your_key" \ "https://api.y2.dev/api/v1/osint/y2-events?category=conflict&severity=high&limit=10" ``` The current JSON response uses stable public IDs and cursor pagination: ``` { "data": [ { "id": "obs_7Jf2kQ9mV4sP", "type": "observation", "sourceType": "y2_report", "title": "Escalation in Eastern Mediterranean Naval Activity", "description": "Multiple carrier groups repositioned...", "category": "conflict", "severity": "high", "coordinates": { "lat": 34.5, "lon": 33.0 }, "geometry": { "type": "Point", "coordinates": [33.0, 34.5] }, "locationName": "Eastern Mediterranean", "countryCode": "CY", "region": "middle_east", "eventTime": 1784023200000, "eventTimeISO": "2026-07-14T10:00:00.000Z", "occurredAt": "2026-07-14T10:00:00.000Z", "observedAt": null, "url": "https://example.com/source", "provenance": { "source": "y2_report", "confidence": 0.92 } } ], "meta": { "pageCount": 1, "limit": 10, "hasMore": false, "nextCursor": null }, "links": { "self": "/api/v1/osint/y2-events?category=conflict&severity=high&limit=10", "next": null } } ``` See the generated [`GET /osint/y2-events` reference](https://y2.dev/docs/api/reference/osint/listY2Events) for all parameters, representations, and error responses. ### How the pipeline works The pipeline identifies structured events, resolves locations and entities, and upserts each event as an observation with `sourceType: "y2_report"`. Internal lineage retains the report, model, and confidence context used during extraction. Fourteen-day observation lifetime Y2-sourced observations have a 14-day time-to-live. Expired rows are excluded from API and app queries and removed by OSINT maintenance. --- ## Profile sharing defaults Community profile sharing is now **enabled by default** when creating new profiles. You can still turn sharing off in profile settings. --- ## Situation Room map enhancements - Y2 report-sourced events now render with distinct Y2-branded markers on the globe. - Map-layer rendering for Y2 provenance events was improved. --- # June 2026 Release Archive (https://y2.dev/docs/changelog/2026-06/) Historical Y2 Intelligence Platform release notes from June 2026. > Historical release notes: plan prices and quotas below describe the release at that time. For current Elite allowances, see [Plans and Limits](https://y2.dev/docs/plans). [← Back to the latest release](https://y2.dev/docs/changelog) Historical release context This archive preserves what changed in June 2026. Follow its links to feature and API guides for current access, limits, and request contracts. ## June 30, 2026: News Terminal, Lite trial signup, and platform reliability Y2 now includes the rebuilt News Terminal and simpler Lite trial signup. Reliability improvements cover billing, chat, delivery, developer tools, and intelligence data quality. ### What changed #### News Terminal - The News Terminal now uses direct-source feeds. Y2 News Terminal / Signal Feed replaces Gloria branding throughout the active product. - Users can select source feeds, switch between Live Feed and 12h Recap views, refresh the active view, and keep feed/view preferences across reloads. - Recaps now summarize the same signals shown in the live feed, keeping summaries aligned with the terminal while reducing unnecessary source refreshes. - News API and reference docs now use consistent names. Responses clarify invalid topics, invalid timeframes, and feeds that are still initializing. #### Lite trial signup and billing - New signup now guides users toward a Lite trial by default while keeping Free available as a fallback path. - Lite checkout starts a 7-day trial and returns users to briefing setup once subscription access is confirmed. - If checkout finishes before access syncs, users see a pending setup state. They can check again or return to plan selection without a premature redirect. - Trialing subscriptions now unlock paid access consistently across briefing setup, chat, usage tracking, and billing views. - Billing views now show clearer workspace subscription status, owner-only billing controls, and profile reclaim notices after plan changes. #### App, Chat, and delivery reliability - App shell navigation and scrolling are more stable on mobile and desktop. - Chat, profile setup, report delivery, audio, SMS, and webhook workflows received reliability improvements around usage tracking, delivery state, and customer-facing errors. - Report and briefing layouts now handle long reports, delivery preferences, branding, and profile setup more clearly. #### Developer and intelligence workflows - API Workbench endpoints are now grouped into collapsible categories, making larger API surfaces easier to scan. - Generated API examples keep pasted API keys out of copied snippets, and the workbench includes a copyable AI Quickstart prompt for teams integrating Y2. - Aircraft tracks and normalized identifiers now enter the graph more consistently. This reduces duplicate entities and improves relationship context across OSINT and Explorer. --- ## June 18, 2026: Chat reliability, OSINT Monitor, and landing performance Y2 now hardens chat image generation, streamlines the OSINT monitor workspace, and adds landing-page performance guardrails for responsive marketing assets. ### What changed #### Chat and configuration reliability - Image generation now reserves credits before external model calls. Provider, upload, or storage failures release reservations. Saving generated images does not charge twice. - Chat stream error handling now returns a stable `INTERNAL_ERROR` code and logs redacted identity metadata instead of exposing raw token or subject values. - Convex client setup and chat HTTP URL derivation now fail fast when `VITE_CONVEX_URL` is missing. - Open Graph report routes derive public URLs from `SITE_URL`, with `https://y2.dev` as the production fallback. - Chat web-search source chips now ignore malformed or unsupported URLs instead of throwing during render. #### OSINT Monitor experience - The monitor bottom bar now uses four resizable panes: live video, theater headlines, FININT, and intel findings. - CNBC is promoted to the first live-news channel, and the removed duplicate news terminal gives more room to the analysis panels. - Lite workspaces now unlock the full Situation Room and paid OSINT limits. Features include tracking, naval vessels, GPS interference, markets, predictions, anomaly/convergence/cascade analysis, and exports. - The layer sidebar now gives Lite access to every Situation Room layer. Lite users can enable the same layers as Pro and Elite. #### Landing-page performance - Walkthrough images now use versioned responsive `srcSet` metadata, intrinsic dimensions, eager first-image loading, and lower-priority lazy loading for later images. - New 960px marketing image derivatives reduce walkthrough screenshot payloads, with immutable Netlify caching for `/images/marketing/*`. - `bun run check:landing-perf` validates stale hero preloads were removed, marketing images stay versioned and responsive, and responsive derivatives remain smaller than their originals. --- ## June 2026: Y2 Elite B2B, Organization Workspaces and Intel API v2 Current Elite pricing Elite pricing changed to **$200/month** or **$2,000/year** on August 31, 2026, for an organization workspace with up to **5 members**. See [Plans and Limits](https://y2.dev/docs/plans) for current pricing and entitlements. The June launch prices below are historical. Historical Elite launch offer Y2 Elite launched in June as a flat-priced B2B organization plan. The launch price was **$500/mo flat** or **$5,000/yr**. It included one organization workspace with up to **5 members**. The offer included shared governance, audit logs, the highest API/profile/workspace limits, and expanded Intel API access. Y2 Workspaces now support the current organization model for companies, teams, and departments. Personal Free, Lite, and Pro workspaces continue to serve individual workflows. Elite creates a shared organization workspace where profiles, reports, API keys, usage, delivery settings, and governance resolve from the active workspace. This release also expands the Intel API v2 surface served from `https://api.y2.dev/api/v2`. The new Intel surface is gated by `intel:finint`, `intel:cyber`, and `intel:explorer` scopes. As of July 21, 2026, new API-key access to those scopes requires Pro or Elite. Existing Lite API users retain their keys at historical Lite limits. Lite retains in-app FININT/Cyber/Explorer, and the in-app Cyber dashboard remains available on Free. ### What changed #### Organization workspaces - Elite creates a shared B2B workspace for organizations, teams, and departments. - Owners and admins can invite members, manage roles, and review workspace governance. - Workspace resources are loaded and protected server-side, including profiles, subscriptions, reports, audio, branding templates, delivery settings, API keys, and usage. - API keys belong to the active workspace and enforce workspace-scoped resource access, scopes, IP allowlists, and aggregate rate limits. #### Elite pricing and limits | Feature | Elite | | ------------------------------ | ---------------------------------------------------------------------------- | | June launch price (superseded) | $500/mo flat or $5,000/yr. See [current pricing](https://y2.dev/docs/plans). | | Members | Up to 5 per organization workspace | | Profiles | 50 total custom and community profiles | | Branding Templates | 25 | | API Keys | 25 | | API Rate Limits | 120 req/min, 50,000 req/day | | Chat Budget | 5,000 credits/month | | Situation Room | 50 layers, 100 alert rules, 50 watchlist countries | | OSINT Refresh & Retention | 1 min refresh, 90 day snapshot retention | | Pronunciation Dictionaries | 25 | Elite includes 10x Pro daily API capacity, 5x Pro API-key capacity, 5x Pro chat budget, 2.5x Pro profile capacity, and organization-only governance. #### B2B governance and safety - Workspace members and audit logs are available on Elite organization workspaces. - Team usage summaries and API-key activity are available from workspace governance views. - Invite acceptance activates the paid organization workspace while preserving each user's separate personal Free workspace. - Free-trial report limits remain user-global, so creating additional workspaces does not mint new trial capacity. #### Intel API v2 The new Intel API exposes Y2's ontology through HTTP endpoints. It covers incidents, entities, relationship graphs, prediction and Y2 markets, emergent signals, and financial intelligence. It serves the same data as the in-app Explorer, FinInt, and Cyber sections. The 11 endpoints shipped in this launch accept both API keys and [x402 pay-per-request](https://y2.dev/docs/api/x402): Current v2 surface The additive `GET /api/v2/changes` feed was released later. The current surface therefore has 12 paths. Use the [Intel API guide](https://y2.dev/docs/api/intel) and generated reference for the live inventory. | Method | Endpoint | Tier | Scope | | ------ | ----------------------------- | ----------- | ------------------------------------------------------------ | | `GET` | `/api/v2/incidents` | T1 ($0.001) | `intel:explorer` (or `finint`/`cyber` by category) | | `GET` | `/api/v2/incidents/{id}` | T2 ($0.002) | scope resolved from incident category | | `GET` | `/api/v2/entities` | T1 ($0.001) | `intel:explorer` | | `GET` | `/api/v2/entities/{id}` | T2 ($0.002) | `intel:explorer` | | `GET` | `/api/v2/entities/{id}/graph` | T3 ($0.01) | `intel:explorer` | | `GET` | `/api/v2/markets` | T1 ($0.001) | `intel:finint` | | `GET` | `/api/v2/finint` | T1 ($0.001) | `intel:finint` | | `GET` | `/api/v2/signals` | T3 ($0.01) | `intel:finint`, `intel:cyber`, or `intel:explorer` by domain | | `GET` | `/api/v2/cyber/graph` | T3 ($0.01) | `intel:cyber` | | `GET` | `/api/v2/cyber/cves` | T1 ($0.001) | `intel:cyber` | | `GET` | `/api/v2/cyber/actors` | T1 ($0.001) | `intel:cyber` | New Intel scopes: - `intel:finint`: markets, finint indicators, non-cyber incidents, market/supply-chain signals - `intel:cyber`: CVEs, threat actors, malware families, cyber graph, cyber incidents, cyber/technology signals - `intel:explorer`: universal entity catalog, entity drill, entity graph, any-category incidents, broad signal queries Every v2 response stamps `X-Y2-API-Version: 2.0` so programmatic clients can branch on surface. The [API Workbench](https://y2.dev/app/developers/api-workbench) groups Intel endpoints together. [Intel API documentation](https://y2.dev/docs/api/intel) contains the complete reference. The OpenAPI document includes all 11 v2 paths with operation-level `servers:` overrides. #### Everything in Pro, plus team scale Elite includes Pro's Situation Room, audio, SMS, webhooks, scheduled reports, and advanced research. It also includes FININT/Cyber/Explorer scopes, investigation sharing, live/vessel/market tracking, anomaly/convergence/cascade analysis, and exports. ``` curl -H "Authorization: Bearer $Y2_API_KEY" \ "https://api.y2.dev/api/v2/incidents?category=cyber&severity=high&limit=10" ``` --- # July 2026 Release Archive (https://y2.dev/docs/changelog/2026-07/) Historical Y2 Intelligence Platform release notes from July 2026. > Historical release notes: plan prices and quotas below describe the release at that time. For current Elite allowances, see [Plans and Limits](https://y2.dev/docs/plans). [← Back to the latest release](https://y2.dev/docs/changelog) Historical release context This archive preserves what changed in July 2026. Follow its links to the maintained feature and API guides for current behavior. ## July 30, 2026: Privacy, product platform, and installed-app foundation Y2 strengthens its privacy terms, simplifies product analytics and feedback, and lays the foundation for installed desktop and Android applications. ### Clearer data-processing terms - The [Data Processing Agreement](https://y2.dev/dpa) now defines customer and Y2 processing roles. It covers US provider restrictions, security, breaches, deletion, audits, and international transfers. - New processing, subprocessor, and security schedules explain the data involved, each provider's purpose, and Y2's technical and organizational safeguards. - Customers now receive at least 30 days' notice before a new subprocessor materially processes Customer Personal Data. ### One consent-controlled product platform - Y2 removed Statsig and UserJot and consolidated product analytics, masked session replay, surveys, and in-app Support in PostHog. - Optional browser analytics remain consent-controlled. Session replay masks visible text and form inputs, and reviewed product events exclude user-authored report, profile, and investigation content. - The Privacy Policy, DPA subprocessor schedule, and internal data-privacy audit now describe the same current processing. ### Platform and installed-app foundation - The web application and backend now use a shared Bun and Turborepo workspace, with common translation and desktop contracts. - Electron and Android shells add secure renderer boundaries, scoped device permissions, update and packaging checks, and shared application behavior. Native signing and store distribution remain separate release gates. --- ## July 24, 2026: Projects, Automations, and workspace governance Y2 added private Project workspaces and durable Agent Y2 Automations with plan-aware access, workspace isolation, and Elite governance. ### Projects on Lite, Pro, and Elite - **Projects** organize chats, reports, profiles, graph boards, generated images, evidence, and private documents around one objective. - Graph, Timeline, Situation, Evidence, Knowledge, and Overview views keep related intelligence connected without publishing Project content to Global Knowledge. - Projects are bound to the active workspace and their owner. Switching workspaces cannot expose another workspace's Project chats, resources, evidence, or private knowledge. - Project sharing was not included in this release. Elite members did not automatically gain access to another member's private Projects. Follow the [Projects overview](https://y2.dev/docs/projects) or [create your first Project](https://y2.dev/docs/projects/getting-started). ### Automations on Pro and Elite - **Automations** run bounded Agent Y2 instructions daily, weekly, monthly, or after a selected InfoOps profile completes a report. - Pro includes up to **10** Automation definitions and Elite includes up to **50**, shared across the active workspace. Free and Lite do not include Automations. - An Automation can write to a workspace-bound output thread or stay inside an active Project. - Live admission checks stop stale, overlapping, cross-workspace, downgraded, or inaccessible Project runs before paid work continues. - Run history records trigger, definition revision, output, status, and billing settlement. Owners can safely pause or archive definitions after a downgrade. See [Automations](https://y2.dev/docs/automations) and the [Automation reference](https://y2.dev/docs/automations/reference). ### Workspace governance and language support - Elite audit records bind material Project and Automation changes to the acting user and workspace without changing owner-private content access. - Project and Automation navigation, plan guidance, upgrade states, forms, run history, and landing explanations are available in English and Spanish. - Plan, workspace, report-workflow, and profile documentation reflects the same enforced entitlement boundaries. --- ## July 21, 2026: Global coverage, Chat updates, and Pro API keys Y2 expanded global intelligence coverage, simplified active research, and tightened API-key access. ### Intelligence - New Situation Room visitors start with all **27 map layers** enabled. Existing preferences stay unchanged, and mobile markers are easier to select. - Discover adds monthly digests for **72 cities** and **39 industries**. Chat and onboarding now recommend a matching public digest before creating a duplicate custom brief. - News Terminal expands to **40 global topics** across geopolitics, markets, industries, regions, AI, and crypto. High-signal items join Y2's ontology with deduplication, entity links, and source provenance. - Incident enrichment and corroboration now run together, with automatic recovery for interrupted work and protection from stale retries. Explore [News Terminal](https://y2.dev/docs/news), [OSINT sources](https://y2.dev/docs/osint/sources), or the [News API](https://y2.dev/docs/api/news). ### Chat - New chats default to **GLM 5.2** using Zero Data Retention routing. Existing threads and saved model choices stay unchanged. - Featured models now include Nemotron 3 Ultra, Grok 4.5, GLM 5.2, DeepSeek V4 Pro, and Kimi K3. They also include Qwen 3.6, GPT-5.6 Luna, Claude Sonnet 5, Gemini 3.6 Flash, and Mistral Small. - Tool activity now uses a compact, auto-scrolling panel with clearer progress and failure states. See [Chat Features](https://y2.dev/docs/chat) for model selection and privacy details. ### API access - New API keys require **Pro** (5 keys, 30 requests/minute, 5,000/day) or **Elite** (25 keys, 120 requests/minute, 50,000/day). - Existing Lite keys keep their historical limits (10 requests/minute, 500/day) and can still be rotated or revoked. Lite cannot create more keys, and future downgrades are not grandfathered. Webhooks remain available on Lite, and x402 access is unchanged. See [API Authentication](https://y2.dev/docs/api/authentication) or [x402 pay-per-request access](https://y2.dev/docs/api/x402). --- ## July 17, 2026: Y2 Affiliate program Every Y2 user can review the Affiliate Program in **Settings → Referrals**. A personal FirstPromoter referral link is created and displayed only after the user explicitly accepts the current program terms. The enrolled dashboard keeps provider credentials and raw customer details server-side. - The default Y2 Affiliate Program offers 15% recurring commission on eligible paid Lite and Pro subscription revenue. - Referral attribution converts only after a new customer completes a verified non-zero Lite or Pro payment. A signup, 7-day trial, Free or Elite purchase, or fully discounted invoice does not create a commissionable referral. - A promoter must maintain an active paid Lite, Pro, or Elite workspace. Their own Y2 payments must remain current during eligibility, review, and payout. - Pending commissions remain subject to the 60-day payment, refund, fraud, and eligibility review. See the [Affiliate Program guide](https://y2.dev/docs/affiliate-program) for enrollment, attribution, payout, and troubleshooting details. --- ## July 10, 2026: Privacy-first Chat and connected intelligence Y2 makes model selection clearer, keeps provider routing privacy-first, and connects Situation Room signals to the wider intelligence workspace. ### What changed #### Privacy-first Chat - Y2 Chat and Agent Y2 route model requests through Zero Data Retention (ZDR) endpoints, with provider data collection disabled. See [Chat Features](https://y2.dev/docs/chat) and the [Agent Y2 API guide](https://y2.dev/docs/api/agent-y2). - The model picker now shows readable names, provider filters, and search. - GPT-5.6 Luna and NVIDIA Nemotron 3 Ultra are featured chat options, subject to current provider availability. #### Situation Room and connected intelligence - Shared layer controls and the source catalog now group orbital and satellite layers, surveillance, live media, and expanded infrastructure and military overlays. - The monitor tool rail places Intel Findings, Network Intel, ontology Search, and API Query beside the map and loads each tool on demand. - Live malware monitoring now includes relationship graphs for indicators, malware families, and related entities. - Search the Y2 ontology directly from the Situation Room to explore entities and their live relationships. - Map marker graphs now show richer source, confidence, time-range, and report context, with a direct link to the related historical report when available. - Monitor controls and data panels now adapt to smaller screens and simplify navigation. #### Reliable scheduled reports - Scheduled report generation now detects interrupted runs, queues bounded recovery attempts, and keeps the profile active instead of delivering incomplete reports. - Profile status and retry state are clearer when a report needs another attempt. See [Scheduling](https://y2.dev/docs/profiles/scheduling). #### Clearer plan guidance - Plan and branding docs now match access rules. The full Situation Room requires Lite or higher. Reusable report branding requires Pro or Elite. See [Whitelabel Branding](https://y2.dev/docs/profiles/branding). --- ## July 8, 2026: Agent Y2 API, OpenAI-compatible Chat, and MCP Agent Y2 now supports API-key authenticated streaming and an OpenAI-compatible chat-completions route. A standalone MCP server supports agent clients. OpenAPI, integration, and endpoint docs are updated. ### What changed #### Agent Y2 API and OpenAI-compatible Chat - Agent Y2 is now available through API-key authenticated streaming at `POST /api/v1/agent-y2/chat/stream`. See the [Agent Y2 API guide](https://y2.dev/docs/api/agent-y2) and [generated Agent Y2 reference](https://y2.dev/docs/api/reference/agent-y2). - The OpenAI-compatible `POST /api/v1/chat/completions` route supports `model: "y2-agent"` for streaming clients that already consume OpenAI-style chat completion chunks. - Both routes require `agent:y2` and use workspace entitlements and chat budgets. Usage is attributed to the workspace, thread, endpoint, and API key. - This release requires API keys for Agent Y2. Both routes share limits of `5/min` and `100/day` per key, plus `10/min` and `250/day` per workspace/user. - OpenAI-compatible stateless chat calls preserve caller-provided transcript context when no Y2 thread is attached, while threaded calls validate ownership before reserving chat credits. #### MCP, OpenAPI, and client documentation Separate MCP package `@y2-intel/mcp` is distributed separately from this platform repository. The maintained [MCP guide](https://y2.dev/docs/api/mcp) explains that boundary and shows how to inspect the capabilities of the installed package version. - New [Y2 MCP docs](https://y2.dev/docs/api/mcp) cover the standalone `@y2-intel/mcp` stdio server for Claude, Codex, Claude Desktop, and other MCP-compatible clients. - The MCP server exposes Y2 docs and OpenAPI resources, bounded report and news tools, an operation lookup tool, and `y2_ask_agent` for Agent Y2 access. - The [OpenAPI specification](https://y2.dev/docs/api/openapi), [Endpoint Reference](https://y2.dev/docs/api/reference), and [client guides](https://y2.dev/docs/sdks) now match the Agent Y2 routes. They document `agent:y2`, schemas, responses, generated examples, and rate-limit headers. - The [API Workbench](https://y2.dev/docs/api/workbench) and docs navigation received sidebar, category, route, theme-state, and 404 handling improvements for the expanded API surface. #### Agent reliability and synthesis safety - The shared Agent Y2 executor now powers both app-authenticated and API-key routes, keeping the fixed Agent Y2 system prompt protected from caller override. - Agent Y2 API responses hide internal reasoning chunks and align SDK examples to the canonical `POST /api/v1/chat/completions` path. - Degraded Y2 synthesis now fails closed instead of completing reports from low-confidence output, with debugging documentation added for report-generation degradation triage. --- # August 2026 Release Archive (https://y2.dev/docs/changelog/2026-08/) Historical Y2 Intelligence Platform release notes from August 2026. [← Back to the latest release](https://y2.dev/docs/changelog) Historical release context This archive preserves what changed in August 2026. Follow its links to the maintained feature and API guides for current behavior. ## August 25, 2026: Native WebMCP support The authenticated web app now exposes native WebMCP tools. Compatible browser agents can inspect the current view and help users navigate. ### Context-aware browser tools - Agents can inspect the current authenticated Y2 view and navigate to advertised product areas. - Project pages expose compact tools for listing and opening projects in the active workspace. - InfoOps pages expose compact tools for listing and opening personal or subscribed briefings. ### Scoped by design - WebMCP is registered only inside the authenticated app and uses existing workspace and profile access controls. - The initial tools cannot change account or intelligence data. Open actions only navigate the current tab. - Unsupported browsers continue to use Y2 without any behavior change. --- ## August 22, 2026: MCP expands agent access Y2 MCP 0.2.0 gives agents broader read access, live API discovery, and explicit controls for actions that can change account data. ### Broader agent access - The local MCP server now exposes 52 tools by default. They cover reports, news, OSINT, Intel v2, profiles, Projects, Automations, webhooks, and public receipts. - Agents can inspect Y2 documentation and list API operations without an API key, then use scoped keys for protected data. - `y2_list_api_operations` and `y2_call_api` let agents discover and call endpoints from the live OpenAPI contract when a dedicated typed tool is not available. ### Safer optional actions - Profile, Project, Automation, webhook, and subscription-delivery mutations remain hidden unless write tools are explicitly enabled and the API key has the matching scope. - Agent Y2 remains disabled by default and requires a separate opt-in plus the `agent:y2` scope. - Transient rate-limit and service failures are retried automatically before reaching the client. See the [MCP setup guide](https://y2.dev/docs/api/mcp), [authentication and scopes](https://y2.dev/docs/api/authentication), and [OpenAPI guide](https://y2.dev/docs/api/openapi). --- ## August 7, 2026: Reliable API results, safer access, and updated plan limits Y2 makes API results more complete and predictable, strengthens access checks around Automations, and updates profile limits across Free, Lite, and Pro. ### More reliable API results - Filtered list endpoints now scan until a matching page is full or the data ends. This prevents false-empty and incomplete pages. - API errors use stable public codes and messages without exposing internal Convex details. - Response validation and the API contract now agree across reports, projects, Automations, profiles, webhooks, and Situation Room data. - API Workbench responses preserve documented JSON, text, and audio behavior more consistently. See the [API overview](https://y2.dev/docs/api), [OpenAPI guide](https://y2.dev/docs/api/openapi), and [API Workbench](https://y2.dev/docs/api/workbench). ### Safer Automations - Automation runs revalidate workspace write access before reserving or spending credits. If access changes during a run, Y2 stops the work and settles the reservation safely. - API authorization failures now return the same status and error shape across Project and Automation routes. ### Updated profile limits and Lite trial - Pro supports up to **5 custom profiles**, up to **20 community or global subscriptions**, and a **20-profile combined workspace total**. - Lite retains **1 custom profile** and **3 community subscriptions**, without reusable branding templates. Onboarding starts with a **7-day trial**. - Free supports **1 global or community profile total**. Elite limits and pricing are unchanged. See [Plans and Pricing](https://y2.dev/docs/plans) and [Creating Profiles](https://y2.dev/docs/profiles/creating). --- ## August 5, 2026: Connected Explorer, Documents, and Project Evidence Y2 makes private documents easier to organize, automatically connects report sources to Project Evidence, and opens entity exploration with useful relationship context. ### Connected Explorer neighborhoods - Opening an entity in Ad-hoc Explorer now loads its related entities and connections. It no longer leaves an isolated node. - Selecting another entity expands around it while preserving the temporary graph, making it easier to compare related intelligence before adding it to a Project. - Y2 Copilot now uses the active temporary graph and selected entity. Analysis follows visible context. The session does not become a saved Project. - Clear loading and retry states distinguish a relationship lookup from an entity with no known connections. ### Broader private document support - Documents now supports PDFs, word-processing files, spreadsheets, presentations, ebooks, and common text formats for private knowledge. - PDFs retain page structure for more precise retrieval, while files that cannot be read reliably return a clear processing status instead of incomplete content. - A simplified Documents library shows where each file is available, its current status, and the actions needed to manage or restore it. ### Report sources become Project Evidence - Linking a profile to a Project now adds supported web sources from its existing reports to Evidence and continues adding sources from future reports. - Evidence keeps its connection to the originating report and source, making it easier to review the material behind an investigation. - Sync status and retry controls make it clear when sources are still being added or need another attempt. See the [Projects overview](https://y2.dev/docs/projects) and [organizing intelligence in Projects](https://y2.dev/docs/projects/organizing-intelligence). --- # September 2026 Release Archive (https://y2.dev/docs/changelog/2026-09/) Historical Y2 Intelligence Platform release notes from September 2026. [← Back to the latest release](https://y2.dev/docs/changelog) Historical release context This archive preserves what changed in September 2026. Follow its links to the maintained feature and API guides for current behavior. ## September 17, 2026 private chats, conversation controls, and reliability Start a temporary conversation or remove a saved one, with controls that fit the existing desktop and mobile Chat layout. Updates also improve workspace switching, report retries, and account deletion feedback. ### Private chats - Choose **Private** at the top right of Chat to start a private conversation. Choose it again to return to regular Chat. - Private conversations stay out of your history and clear when you leave or reload the page. - Private chats use workspace Agent Y2 credits at the same rates as regular chats, including billable tool use. A reminder stays visible below the composer. - Uploads, memory, and saved actions remain available in regular chats. ### Easier conversation cleanup - Open a conversation's history menu or use the delete control in its header to delete it. - Confirm before permanently removing the conversation and its messages. Credits already used are not refunded. - Long conversation titles leave room for the history menu, keeping its actions visible. ### Aligned mobile controls - Private mode keeps its toggle at the top right, with a centered explanation and the composer above the existing bottom navigation. - Larger touch targets and safe-area spacing keep the new private-chat and deletion controls easy to reach. ### Smoother updates and workspace changes - An older open tab now shows a notice when a newer version is available. You can save drafts before reloading. - Switching accounts, workspaces, or plans clears requests from previous views. Workspace pages wait for access to be ready before loading their content. - Members can view their workspace's member list without requesting restricted invitation data. - A failed command-menu preload no longer produces an unhandled error. ### More dependable reports and OSINT updates - Retrying the same report-generation run reuses a saved report instead of creating a duplicate. - Reports with missing workspace ownership stop before paid research begins, so the configuration can be corrected before trying again. - Conflicting entity identities can be reviewed while other OSINT records continue updating. - CVE collection retries temporary service failures from the same page and time window. ### Clearer account deletion - Account deletion shows actionable errors and confirms when a request has been accepted. - A sign-out failure after an accepted request no longer appears as a failed deletion. ## September 14, 2026 Project intelligence PDF exports Create a PDF from the materials saved to a Project, bringing findings, evidence, and visual context together for review. ### One-page briefs and full reports - Choose **Export PDF** from a Project to prepare a report. - The default **one-page intelligence brief** leads with a synthesized bottom line, up to three cited findings, implications, and what to watch next. - **Full intelligence report** adds deeper analysis, uncertainties, selected supporting passages, and visual context. Both formats summarize large Projects before rendering. - Selection prioritizes recent, relevant evidence, including up to two recent reports per linked profile. Older evidence is labelled as context. Saved dates are separate from the preparation date. Exports do not perform a live source refresh. - Coverage notes identify sampled history, selected document passages, and unavailable content. Original files, complete reports, and full conversation history remain in Y2. - Selected conversation excerpts are optional in full reports and excluded by default. - Synthesis uses workspace AI credits. If synthesis is unavailable, the PDF clearly identifies its content as saved evidence excerpts instead of presenting a new assessment. - Fixes a browser security policy error that could prevent either PDF format from generating. - Brief and full exports share the same assessment while the dialog remains open and branding and conversation settings stay unchanged. Full reports expand it with supporting analysis and an evidence matrix. Reopen the dialog to prepare a new edition. - Assessment generation distinguishes direct Project evidence from broader context, preserves source families, and checks for repeated findings and elapsed milestones described as future events. ### Readable graphs and location maps - Cited graphs combine known entity identities and select a connected explanation, with readable node labels, types, directed arrows, and relationship keys. Unresolved aliases remain separate. - Maps consolidate repeated event references under stable place keys. Distinct events at one location remain separate in the key. Repeated representations do not become extra locations. - Regional and unknown geometry is labelled as context. Recorded points retain coordinates. Qualifying groups of nearby points can receive detail panels alongside the overview. - Visual selection states material omissions. Missing facilities, coordinates, and finer map detail are not invented. Complete source graphs and records remain in Y2. ### Y2 or workspace branding - Y2 branding is the default. Workspaces with branding enabled for their plan can select an existing branding template, including its name, colors, logo, and disclaimer. - PDFs include Project identity and source references so readers can return to the supporting material in Y2. - Visual branding does not replace the report's intelligence purpose with a template persona. ### Y2 desktop apps This release introduces Y2 Desktop for macOS and Windows, bringing Chat, Projects, reports, and your intelligence workspace into a dedicated app. Public installer downloads remain unavailable until signing and installation checks are complete. Mac downloads are deferred pending Apple signing and notarization. [Read the desktop app guide →](https://y2.dev/docs/apps) · [Check download availability →](https://y2.dev/download) ## September 12, 2026 update Explore more observations in Y2. Elite gives teams more capacity. Navigation between Chat and investigations is easier. Country cards also gain more dependable news coverage and clearer geographic attribution. ### More complete OSINT map results - The OSINT Monitor loads all stored observations matching your selected area, time range, and event layers, removing the previous overall result cap. - Loading progress shows how many observations have arrived and when the selection is complete. If loading stops, retry from where it left off. If a refresh fails, the previous completed map remains visible. - Both globe and flat views group nearby observations into markers with counts. Clicking a group opens its event list immediately. Select an observation to view its location and details, including when several observations share the same location. - Switching to flat view downloads a smaller map renderer. - Zooming and panning within a loaded region reuses its observations. Moving beyond that region loads new coverage after you finish moving the map. - Theater Intel retains regional headlines while you explore the map. Its refreshes are independent of zoom, panning, and visible layers. - Completed selections refresh automatically after five minutes, with a manual refresh option when you want to check sooner. ### More dependable satellite fire observations - Fire collection includes NASA FIRMS detections from Suomi NPP, NOAA-20, NOAA-21, and MODIS, and removes the previous per-region observation cap. - Observation times reflect the satellite acquisition time in UTC. Repeated collections of an unchanged detection no longer make it appear newly updated. - Clear warnings identify delayed or incomplete fire collection, even when all available map observations have finished loading. Map completion means all matching observations stored by Y2 have loaded. Fire collection still covers the existing nine monitored regions, excludes low-confidence detections, and requests today's and yesterday's observations. This update does not add global fire coverage or a 30-day fire history. See [OSINT sources and coverage](https://y2.dev/docs/osint/sources). ### More dependable country news - Country cards select eligible news before filling their eight-headline list, so a surge in satellite fire detections no longer hides available stories. - Geopolitical and maritime RSS coverage better recognizes attacks, seizures, captures, and shipping disruptions, including Red Sea escalation headlines. - Country attribution gives priority to headline locations and specific places over countries mentioned as sponsors or background context. Regional exposure remains distinct from where an event occurred. - Reused publisher identifiers no longer replace a different stored article, preserving its identity and evidence links. - Failed news requests show a retry option instead of an empty-news message. The country-news API keeps its response fields and public observation IDs. After this update, integrations with an older country-news pagination cursor must restart from the first page if they receive an invalid or obsolete cursor response. See [Country Intelligence Cards](https://y2.dev/docs/osint/country-cards) and [country-news API guidance](https://y2.dev/docs/api/osint#read-country-news). ### More capacity for Elite teams Elite's shared workspace allowances expand to **10× Pro** across research, publishing, Automations, and API access. | Allowance | Elite | | --------------------------------------- | ------ | | Agent Y2 credits per month | 10,000 | | Custom profiles | 50 | | Total profiles, including subscriptions | 200 | | Automations | 100 | | API keys | 100 | | Default API requests per minute | 300 | | Default API requests per day | 50,000 | | Branding templates | 100 | | Pronunciation dictionaries | 100 | These allowances are shared across the organization workspace. Elite includes **five members**, with larger organizations available by arrangement, at **$200/month or $2,000/year**. Situation Room coverage, refresh frequency, and retention remain the same as Pro. See [Plans and Limits](https://y2.dev/docs/plans) and [Workspaces](https://y2.dev/docs/workspaces). ### Easier sign-in and mobile navigation - The blog listing loads less data, and links between documentation and articles navigate more smoothly. - Opening the Y2 home page while signed in takes you directly to Chat. - Mobile tabs stay easier to reach across intelligence, developer, and settings views, with fewer unexpected page jumps when switching tabs. - Explorer gives mobile users clearer access to search and investigation controls. ### New guides for intelligence and AI workflows New practical guides cover [OSINT with MCP](https://y2.dev/blog/mcp-server-for-osint), [scoped API keys for agents](https://y2.dev/blog/mcp-scoped-api-key), and [keeping useful context across agent sessions](https://y2.dev/blog/your-ai-agents-memory-resets-every-session-thats-a-workflow-problem). Learn how Y2 connects cyber, market, and global risk in the new [guide to Y2's ontology](https://y2.dev/blog/y2-ontology-cyber-market-global-tracking). ## Report and intelligence reliability These changes improve report retries, source imports, news updates, and incident details, with clearer context to help support teams investigate failed reports. ### More resilient report retries - Retains accepted research when a temporary writing problem triggers a retry. The report can finish from the same evidence without collecting sources again. - This applies to reports started after the update. Reports already underway continue with their existing recovery behavior. ### Reliable Project Evidence - Fixes a problem that can prevent report sources from being added to Project Evidence. ### More dependable Situation Room updates - Reduces interruptions when several news items update the same incident, helping related coverage stay connected. ### Reliable incident details - Restores incident details when a location includes normalized geographic identifiers, keeping affected Situation Room and API views available. ### Better support for report failures - Gives support clearer context about the affected profile and workspace when a report fails, without adding report prompts or content to these error details. ## September 1, 2026: Elite workspace usage and API key activity Y2 Elite workspace owners and admins can now see how activity and credit consumption are distributed across their entire organization workspace. ### Workspace usage at a glance - Governance shows one shared Agent Y2 credit balance for the subscription-aligned credit period. - Informational Activity units remain grouped into API, research, deliveries, and AI for the selected UTC month. They are separate from the enforced Agent Y2 credit allowance. - Member breakdowns attribute both Agent Y2 credit consumption and Activity units without creating separate member allowances. ### Accountable API key activity - Every workspace API key shows its responsible member, active or revoked state, request volume for the current month, and latest use. - Request totals now come from recorded API activity, resolving keys that previously appeared to have zero calls. - Seat limits, API key capacity, the Agent Y2 credit ledger, Activity units, and workspace audit history remain together in one administrative view. --- # October 2026 Release Notes (https://y2.dev/docs/changelog/2026-10/) Cyber DNS Explorer, SEC filings, insider trades, and federal awards, one record for each published article, publisher corroboration, a clearer Situation Room map, and one entity for each real-world thing. [← Back to the latest release](https://y2.dev/docs/changelog) ## October 16, 2026: Financial disclosures, DNS Explorer, and Situation Room provenance ### Cyber DNS Explorer Look up a domain from **Cyber → DNS Explorer** to see its subdomains, mail servers, and name servers. The page also shows the addresses that each host resolves to and the networks that announce them. Y2 collects each answer from DNSDumpster and keeps it with the time that it arrived. - **A footprint map.** The map shows the domain, one hub for each record type, each host, and each address. Addresses appear in groups under their network (ASN) with their netblock. Move the pointer over a host to see where it resolves. Tables list each record with reverse DNS and the HTTP and TLS banners seen on the address. - **Dated history.** Each snapshot keeps its capture time. Open an earlier snapshot to compare it. A badge shows whether the records changed since the previous snapshot. - **One answer for 14 days.** A domain that anyone looked up in the last 14 days opens from the saved snapshot. It does not use a lookup. Pro includes 5 new lookups a month. Elite includes 1,000. - **Mapped into the graph.** The domain, hosts, addresses, and netblocks join the ontology. Network operators attach to companies that Y2 already tracks, such as Cloudflare. A company whose official website is the domain is linked as its operator. Each connection records when it was first and last seen. Open the domain in Explorer and add it to a Project. - **API, MCP, and Agent Y2.** `POST /api/v2/cyber/dns/lookups` and `GET /api/v2/cyber/dns/snapshots` use the `intel:cyber` scope. The local MCP server calls them through `y2_call_api`. Agent Y2 can look up a domain or read its history in chat. DNS Explorer requires a Pro or Elite workspace. Free-tier records include up to 50 A records for each domain. A larger domain is marked as truncated. [Look up a domain's DNS footprint →](https://y2.dev/docs/osint/dns-explorer) · [DNS footprints in the graph →](https://y2.dev/docs/ontology/explanation/dns-footprints) · [API reference →](https://y2.dev/docs/api/reference/intel/createDnsLookupV2) ### SEC filings, insider trades, and federal awards Financial Intelligence now covers what public companies and the U.S. government disclose about themselves. Y2 reads SEC EDGAR twice a day and USAspending.gov once a day. Every company, insider, agency, and award recipient joins the same entity graph as the rest of your intelligence. - **Four new pages.** **Filings** lists Form 8-K material events by their most material item. **Insiders** lists Forms 3, 4, and 5 from officers, directors, and 10% owners. **Stakes** lists Schedule 13D activist stakes. **Awards** lists federal contract actions of $5M or more and grant actions of $10M or more. - **Screening.** Filter by category, severity, time window, and minimum amount, sort by size, and search by company, ticker, insider, agency, or recipient. Filters stay in the page URL, so you can share a screen. - **Primary records.** Each row opens the full record: 8-K items, every insider transaction line, 13D reporting persons, or award details. Each row also links to the SEC filing or USAspending award page. - **One entity per company and person.** Y2 matches issuers and insiders by SEC CIK and award recipients by Unique Entity ID. A new name is checked against existing entities before Y2 creates one. A contractor that also files with the SEC is one entity. - **A graph that builds over time.** Officers and directors connect to their company. Contract and grant recipients connect to the awarding office. Each connection records when it was first and last evidenced. Explorer and entity profiles show each filing and award as an event tied to every party it names. - **Companies.** Each company in **Markets** lists the disclosures that name it. The SEC filing import fills in the CIK that EDGAR recorded. - **API, MCP, and Agent Y2.** `GET /api/v2/disclosures` returns the same records with ontology entity IDs. **Integrate** on each page shows the request for the rows you loaded, as curl, TypeScript, Python, or an MCP call. Agent Y2 can screen disclosures in chat. Disclosures require a Pro or Elite workspace. API keys and MCP connections need the new `intel:disclosures` scope. Existing keys do not gain it automatically. [Screen disclosures with the Intel API →](https://y2.dev/docs/api/intel#screen-disclosures) · [API reference →](https://y2.dev/docs/api/reference/intel/listDisclosuresV2) ### One record for each published article - When Y2 collects the same article through more than one feed, it keeps one observation. That observation records each feed that collected the article. - Map lists, incident counts, and API results count the article once. - Existing duplicate copies are combined into the earliest record. Links to a combined copy still resolve to that record. ### Corroboration counts publishers - `primarySourceCount` on an incident now counts distinct publishers. Two outlets are two sources, even when Y2 collects both through the same feed service. One article from two Y2 feeds is one source. - `corroborationScore` adds one quality weight for each publisher. Existing incidents are recalculated after the update, so these values can change. ### Clearer Situation Room map - Each place shows one badge with its total count and the mix of event layers. - A report that names only a country appears at the country's center and is marked as country-level. It no longer appears at a point in the capital. - When you view a region, a chip lists the country-level reports for the country in view. - Report cards show the original source, how Y2 collected the report, and actions to ask Y2, open Explorer, or add the report to a Project. ### More resilient report completion - If one writing path cannot accept the report format, Y2 tries supported alternatives. The report can finish from the same collected evidence. - This applies to reports generated after the update. Reports that already ended in failure remain unchanged and may still need to be retried. ### More reliable report and signup delivery - A report no longer repeats its full generation cycle when a saved delivery channel has no reachable contact details. Other recipients can continue receiving the report. - Signup reminder emails can be prepared and queued without interrupting the scheduled reminder. - An unreachable recipient still needs updated delivery details before they can receive a report. Earlier failed reports and reminders are not sent again automatically. ### More dependable connected intelligence and Project Evidence - Placeholder identifiers no longer interrupt connected-intelligence updates for unrelated products or assets. - Project Evidence can show lineage details for linked reports and other supported records. - Existing identity conflicts still require review and are not combined automatically. ## October 15, 2026: One entity for each real-world thing Name variants such as `U.S. Department of Defense` and `US Department of Defense`, or `AU` and `Australia`, now resolve to a single entity. Graphs, profiles, and connected intelligence no longer split the same organization, agency, or country across duplicate nodes. ### Fewer duplicate entities - Explorer graphs and entity profiles show one node after duplicates are combined. This includes duplicate country nodes that appeared in some graphs. - New mentions from reports and enrichment attach to an existing entity when Y2 is confident they describe the same thing. People, organizations, threat actors, and other higher-risk kinds also need an independent second check before they attach. - Uncertain matches stay separate and are held for review instead of being combined. Entities with conflicting identifiers, such as different registry or ISO codes, are never combined. - CVEs and indicators continue to match only on their exact identifier. ### Reviewed, reversible cleanup of existing duplicates - Existing duplicates are combined in reviewed batches. The earlier entity stays as a redirect to the surviving one, so saved links and references keep working. - Relations, incidents, and observations move to the surviving entity, and every combination can be reversed. [Read how Y2 resolves entity identity →](https://y2.dev/docs/osint/data-infrastructure#resolving-name-variants) --- # Intelligence Chat (https://y2.dev/docs/chat/) Chat # Intelligence Chat Start a conversation, review tool results, and manage chat history. Chat combines a language model with Y2 research tools. Select an active Lite, Pro, or Elite workspace before you begin. ## Start a conversation 1. Open **Chat**. 2. Open the model selector. 3. Choose an available model. 4. Enter a question or choose a quick action. 5. Press **Enter** to send. 6. Review the response and its sources. Use **Shift+Enter** for a new line. Select the stop control to end generation. You can change the model or regenerate the last assistant response. ## Review actions before confirmation Tools can follow profiles, create profiles, update settings, or start investigation enrichment. The profile tools preview proposed changes before asking for confirmation. Check the profile, schedule, active workspace, and community-sharing setting before you confirm. Review source evidence before acting on a generated answer. ## Model routing and privacy The model selector lists models that support Zero Data Retention (ZDR). OpenRouter requests require ZDR endpoints and deny provider data collection. ZDR applies to model routing Y2 stores saved conversations and their messages, tool results, context, attachments, and usage records. External tools receive the prompt or query needed for their task. To avoid saved conversation history, select **Private** before starting a chat. Private chats clear when you leave or reload the page. Credits still apply. Uploads, memory, and saved actions require a regular chat. See [Chat reference](https://y2.dev/docs/chat-reference) for model fallback, tools, and billing behavior. ## Organize and remove conversations Use the sidebar to open, rename, or delete a saved conversation. You can associate a conversation with a Project. Deletion removes saved messages Copy or export anything you need before deleting a conversation. Treat deletion as permanent. ## Agent Y2 credits Chat uses the active workspace's shared credit balance. Check the meter before a large request. See [Plans and limits](https://y2.dev/docs/plans) for included monthly allowances and [Chat reference](https://y2.dev/docs/chat-reference#agent-y2-credits) for usage and billing periods. ## Troubleshoot Chat **Chat shows an upgrade wall** Select a Lite, Pro, or Elite workspace. Plans apply to the active workspace. **A model is missing** Choose another available model. Model availability can change. **The input is disabled** Check available credits in the active workspace. New requests require available funding and permission under workspace spending controls. **A tool is unavailable** Check the workspace plan, profile limits, and selected model's capabilities. Private chats also restrict tools that save data. **A provider request fails** Try another model or a smaller request. Provider limits can cause failures even when workspace credits remain. ## Related guides - [Chat reference](https://y2.dev/docs/chat-reference) - [Agent Y2 API](https://y2.dev/docs/api/agent-y2) - [Create a profile](https://y2.dev/docs/profiles/creating) - [Projects](https://y2.dev/docs/projects) --- # Chat Reference (https://y2.dev/docs/chat-reference/) Chat # Chat Reference Model routing, available tools, shared credits, and billing periods. ## Model routing The model selector lists ZDR-supported chat models. OpenRouter requests deny data collection and require compatible parameters and ZDR endpoints. These routing requirements do not remove saved Y2 history or tool-provider data handling. If a saved model loses eligibility, Y2 uses an eligible default when available. Otherwise, thread creation or model selection returns a model-unavailable error. ## Available tools Tool access depends on the active workspace, selected model, and conversation mode. | Tool | Purpose | | ------------------ | ------------------------------------------------------------------------------------------------------------------------ | | Y2 documentation | Find product, API, profile, and delivery instructions | | Web search | Find current external sources | | News search | Search cached signals, inspect feeds, and read available recaps | | Public profiles | Find and follow public briefings after confirmation | | Profile management | Preview, create, or update profiles within plan limits | | Intelligence | Query permitted OSINT, entity, incident, cyber, market, and investigation data | | DNS lookup | Look up a domain's DNS footprint or read its snapshot history. A new snapshot uses one DNS lookup. Requires Pro or Elite | | Image generation | Generate images through a supported model or image tool | The News registry schedules 12-hour recaps. Other accepted timeframe IDs can return no cached content. Private chats omit tools that require saved state. ## Agent Y2 credits One Agent Y2 credit represents $0.01 of normalized usage. Members, API keys, Automations, and tools use the same workspace funding. See [Plans and limits](https://y2.dev/docs/plans#agent-y2-and-research) for included monthly allowances. Y2 charges for model input and output using model pricing or a fallback pricing tier. Some tools add charges. A tool with no separate charge can still consume model tokens. The balance shows included allowance, settled usage, active reservations, available funding, and period boundaries. A reservation reduces available funding while a request runs. Settlement records its actual cost. Failed or expired reservations release unused funding. New requests require available credits and must pass workspace spending controls. Prepaid funding can remain available after included credits are exhausted. Usage attribution does not create a separate included allowance for each member. ## Billing periods Monthly subscriptions use their current subscription period. Annual subscriptions replenish their included allowance each month, using the annual term's starting UTC date and time. Annual payment does not multiply the monthly allowance. Without an active paid-subscription period, Y2 uses UTC calendar months. ## Conversation storage Saved conversations keep their messages and tool results in Y2. Private conversations do not appear in history and clear when the page closes or reloads. Usage metering still applies to private requests. See [Intelligence Chat](https://y2.dev/docs/chat#model-routing-and-privacy) for the privacy controls. --- # Community (https://y2.dev/docs/community/) How public briefing profiles and subscriptions work. Y2 Community is the briefing catalog in **InfoOps → Discover**. It contains Agent Y2 profiles and profiles that users share with the community. These profiles are separate from the signal records in intelligence reports and APIs. ## How community profiles work Following a profile creates a subscription in the active workspace. The creator keeps control of its topic, research settings, schedule, and reports. Subscribers control their own delivery preferences within their plan limits. A subscription uses workspace capacity even when delivery is paused. Unfollow it to free capacity. See [Plans and limits](https://y2.dev/docs/plans#profiles-and-delivery). ## Public-data boundary Sharing makes a profile discoverable immediately. Y2 does not require approval before publication. Other signed-in users can inspect its configuration and available reports. Review before sharing Check the topic, instructions, tags, research settings, and reports for private information. Community sharing publishes this information to other Y2 users. The catalog displays activity, report count, subscribers, and creator details. These values do not certify quality or establish editorial review. Review the latest report and its sources before following. ## Choose a task [Browse public briefings](https://y2.dev/docs/community/signals): Search, filter, inspect, and follow profiles. [Share a profile](https://y2.dev/docs/profiles/sharing): Publish a briefing or stop new subscriptions. [Contribute to Y2](https://y2.dev/docs/community/contributing): Report problems, suggest corrections, or build an integration. --- # Contribute to Y2 (https://y2.dev/docs/community/contributing/) Publish a briefing, report a problem, or contribute an integration. Choose the path for your contribution. | Goal | Next step | | -------------------------------- | -------------------------------------------------------- | | Publish a briefing | [Share a profile](https://y2.dev/docs/profiles/sharing) | | Report a product or docs problem | Use app support or email | | Report public content | Send its profile URL and the specific concern to support | | Build an integration | Start with the [API guide](https://y2.dev/docs/api) | | Change an SDK or CLI | Follow the contribution rules in that tool's repository | ## Publish a community briefing Review at least one generated report before sharing the profile. Remove private instructions, customer data, credentials, and confidential sources. Follow [Share a profile](https://y2.dev/docs/profiles/sharing), then inspect the result in **InfoOps → Discover**. ## Report a product or documentation problem Use the support widget when available. Email support if the widget is hidden or unavailable. Include: - The app route or docs URL. - The active workspace plan, if relevant. - The steps to reproduce the problem. - The expected and actual results. - Relevant timestamps, request IDs, error text, or screenshots. - Whether the problem occurs every time. For a docs correction, identify the inaccurate statement and provide evidence for the replacement. Remove sensitive information Do not send API keys, signing secrets, verification codes, payment details, or unredacted personal data. Remove authorization headers before attaching logs. ## Report a security concern privately Email . Include the affected feature, impact, reproduction steps, and a safe demonstration. Do not publish exploit details, credentials, or another workspace's data. ## Build an integration Use the [OpenAPI contract](https://y2.dev/docs/api/openapi) and [authentication guide](https://y2.dev/docs/api/authentication). [Integration recipes](https://y2.dev/docs/api/integration-recipes) show common tasks. For notifications, follow [Webhook delivery](https://y2.dev/docs/delivery/webhooks). Contact support before describing an integration as endorsed by Y2. ## Work on an SDK or CLI Start with the [TypeScript](https://y2.dev/docs/sdks/typescript), [Python](https://y2.dev/docs/sdks/python), or [CLI](https://y2.dev/docs/sdks/cli) page. Open the linked repository. Read its contribution rules, tests, release process, and license. Check the artifact's license The platform and API contract use proprietary terms. Documentation, examples, and external SDKs can have different licenses. Check the specific artifact before using or changing it. Keep changes focused. Validate examples against the current contract or app behavior. Update affected documentation and run the repository's relevant tests. --- # Browse Public Briefings (https://y2.dev/docs/community/signals/) Find, inspect, follow, and unfollow public profiles. Use **InfoOps → Discover** to find public briefing profiles. Choose the workspace that should own your subscription before you follow a profile. Check its available capacity in [Plans and limits](https://y2.dev/docs/plans#profiles-and-delivery). ## Find and follow a briefing 1. Open [InfoOps → Discover](https://y2.dev/app/infoops/community). 2. Choose **All**, **Featured**, **Cities**, **Industries**, or **Public**. 3. Enter a profile name, topic, instruction, or tag in search. 4. Apply filters if needed. 5. Open the profile's details. 6. Review its creator, instructions, schedule, configuration, and latest report. 7. Select **Follow**. 8. Open **My Briefings** to confirm the subscription and delivery settings. The **All** view shows up to 12 profiles per group without search or tag filters. Select **View All** to see more results. Following does not copy the profile or grant permission to edit it. The creator can change the profile or stop sharing it. See [Community](https://y2.dev/docs/community) for ownership and visibility. ## How profiles are grouped | Group | Rule | | ---------- | ---------------------------------------------------------- | | Featured | Agent Y2 global profile without a `city` or `industry` tag | | Cities | Public profile tagged `city` | | Industries | Public profile tagged `industry` | | Public | User-shared profile outside the city and industry groups | City and industry tags take priority over Featured. Group labels do not certify quality. ## Search, filter, and sort | Control | Behavior | | ------------ | ------------------------------------------------------------------------------------- | | Search | Matches name, topic, instructions, and tags. Normalizes spaces, slashes, and hyphens. | | Type | All, Featured/global, or Public/user-shared | | Subscription | All, Following, or not followed | | Status | All, Active, or Inactive | | Audio | Any, enabled, or disabled | | Saved depth | Quick: absent or `0`. Standard: `1–2`. Deep: `3+`. | | Tags | Matches at least one selected tag | | Sort | Name, recent delivery, most followed, or recent creation | The depth badge shows saved settings. Execution supports at most one child research layer. See [Report workflow](https://y2.dev/docs/workflows#child-research). Subscriber counts can be absent from catalog cards. Profiles without counts can tie in **Most Followed**. Inspect the profile and its report instead of treating this order as a quality score. ## Unfollow a briefing 1. Select **Following** in Discover or open **My Briefings**. 2. Find the profile. 3. Unfollow it. Unfollowing removes your subscription and frees capacity. Pausing delivery retains the subscription and still uses capacity. ## App and API boundary Use the app to browse the public catalog or manage community subscriptions. The public [List profiles endpoint](https://y2.dev/docs/api/reference/profiles/listProfiles) lists accessible workspace subscription records. It does not search the public catalog. ## Troubleshooting **Follow is unavailable** Check the active workspace and its remaining profile capacity. Unfollow an unused profile if the limit is reached. **The catalog shows unexpected results** Clear search, tags, and filters. Return to **All**. Check the active workspace when reviewing followed profiles. **A profile is inactive** Review its latest report before following. Visibility does not guarantee future reports. **I cannot edit a followed profile** Only its owner controls the configuration. [Create a profile](https://y2.dev/docs/profiles/creating) for different instructions or settings. --- # Email Delivery (https://y2.dev/docs/delivery/email/) Delivery # Email Delivery Configure report email for your account or workspace. Email is the default delivery method for a profile subscription. Each subscription has separate preferences. Create the profile before changing its delivery settings. ## Configure email for a profile 1. Open **InfoOps → My Profiles**. 2. Open the profile card's actions menu. 3. Select **Delivery Preferences**. 4. Choose **Email Only**. 5. Choose **Individual** for your account email or **Workspace** for eligible Elite members. 6. Select **Save Preferences**. Saving activates the subscription. An absent delivery method also defaults to email. Check workspace recipients Workspace delivery sends the complete report to eligible members. Review the report's content and workspace membership before enabling it. ## Verify or change the recipient email 1. Open **Settings**. 2. Find the **Email** section. 3. Confirm the verified address. 4. To change it, enter a new address. 5. Complete email verification. Future individual deliveries use your current account email. Profiles do not have a separate recipient-address field. ## Individual and workspace audiences | Audience | Availability | Recipients | | ---------- | ------------------------- | ----------------------------------------------------- | | Individual | All plans | Subscription owner's account email | | Workspace | Eligible Elite workspaces | Owner and eligible active members with account emails | Workspace delivery follows the member allowance. A member without an email cannot receive it. ## Email contents The email can include the report, citations, audio link, and assigned branding. Audio links open the report page. The MP3 is not attached. The subject is the profile name. Preview text uses the branding prefix and that name. Y2 sanitizes report and branding HTML before rendering. See [Branding Templates](https://y2.dev/docs/profiles/branding) to change appearance and copy. ## Combine delivery channels | Method | Result | | ----------- | -------------------------------------- | | Email Only | HTML report email | | SMS Only | SMS summary without email | | Email + SMS | Both channels | | Webhook | Endpoint delivery without email or SMS | There is no Email + Webhook option. See [Plans and limits](https://y2.dev/docs/plans#profiles-and-delivery) for channel access. ## Delivery timing and history Delivery follows report generation. Generation, queues, retries, and provider response times affect arrival. There is no fixed delivery-time guarantee. Open **InfoOps → History** to inspect the method, status, and details. A successful send does not prove inbox delivery. The receiving provider can filter, defer, bounce, or reject the message. ## Troubleshoot missing email **The profile did not run** Confirm that the profile and subscription are active. Review the next scheduled run and report status. **The delivery method changed** Select **Email Only** or **Email + SMS** in **Delivery Preferences**. **The email is missing or outdated** Update and verify it in **Settings → Email** before the next delivery. **History reports a failure** Review the details. Correct the recipient address if needed. Contact if failures continue. **History reports success but no message arrives** Check spam, quarantine, inbox rules, and provider logs. Allow the sender shown in a received Y2 message. --- # SMS Delivery (https://y2.dev/docs/delivery/sms/) Delivery # SMS Delivery Send report summaries to a verified account phone. SMS requires Pro or Elite and a verified account phone. Use a number that can receive text messages. Carrier charges can apply. ## Add and verify a phone 1. Open **Settings → Account → Phone**. 2. Select the country code. 3. Enter the local number. 4. Request a verification code. 5. Enter the six-digit code sent to the phone. SMS delivery becomes available after verification. ## Enable SMS for a profile 1. Open **InfoOps → My Profiles**. 2. Open the profile card's actions menu. 3. Select **Delivery Preferences**. 4. Choose **SMS Only** or **Email + SMS**. 5. Select **Save Preferences**. Y2 checks your workspace plan and verified phone when saving. SMS goes only to the subscription owner's phone. The Elite **Workspace** audience applies to email, not member phone numbers. ## Message contents Y2 uses the report's SMS summary when available. Otherwise, it extracts a short summary and prefixes the profile name. The fallback targets 140 characters. Carrier segmentation depends on length and character encoding. Open Y2 for the full report SMS does not guarantee a report link. Open Y2 to read the complete report, sources, or audio. ## Timing, failures, and limits SMS delivery follows report generation. **Email + SMS** attempts email first. Queues and providers affect delivery time. There is no fixed arrival guarantee. Open **InfoOps → History** for SMS results. Providers can reject invalid numbers, invalid messages, or requests beyond their limits. Service or authentication failures can also prevent delivery. ## Change or remove the phone Open **Settings → Account → Phone**. Changing the number requires verification again. Removing it stops future SMS delivery but retains existing profile preferences. Change affected profiles to **Email Only** if you still need delivery. The SMS provider receives the destination number and message. Do not include secrets in instructions that can appear in a report summary. ## Troubleshoot SMS delivery **SMS options are disabled** Check the active workspace plan and phone verification status. **The verification code does not arrive** Check the country code and number. Retry the request. The number might already belong to another account, or the provider might be unavailable. **Email arrives but SMS does not** Confirm **Email + SMS** is selected. Check **InfoOps → History** for SMS failures. **The phone was removed** Add and verify a phone. Reopen **Delivery Preferences** to check the saved method. **The provider rejects messages** Review History details. Contact if failures continue. See [Email delivery](https://y2.dev/docs/delivery/email) or [Webhook delivery](https://y2.dev/docs/delivery/webhooks) for another channel. --- # Webhook Delivery (https://y2.dev/docs/delivery/webhooks/) Delivery # Webhook Delivery Deliver compact CloudEvents when intelligence reports are published Webhook delivery sends CloudEvents 1.0 notifications to an HTTPS endpoint after report publication. It requires Lite, Pro, or Elite. Configure a secret to sign requests. A webhook notification is compact. It identifies the report and provides API links. It does not embed the full HTML report or all source records. ## Create an endpoint in Y2 You do not need an API key when configuring webhooks in the app. ### Open Webhooks In an active paid workspace, go to **Developers → Webhooks**. ### Create a configuration Enter a name. Enter the public endpoint URL. Production webhook URLs must use HTTPS. Localhost, loopback, private-network, link-local, and other blocked addresses are rejected. ### Add verification and authentication Generate or enter an optional signing secret. You can also add custom string headers, such as an authorization token for your endpoint. `Host`, `Content-Length`, and `Content-Type` cannot be supplied as custom headers. Y2's own delivery headers take precedence over custom values. ### Save and test Create the webhook. Select **Test Webhook**. The test sends a `dev.y2.webhook.test.v1` CloudEvent and waits up to 10 seconds for a response. ### Assign it to a profile Open **InfoOps → My Profiles → Delivery Preferences**. Choose **Webhook**. Select the active configuration. Save the preferences. Selecting **Webhook** replaces email and SMS for that subscription. There is no combined Email + Webhook delivery method. ## Receive a report event Report deliveries use `Content-Type: application/cloudevents+json` and the event type `dev.y2.report.generated.v1`. ``` { "specversion": "1.0", "id": "y2mexampleeventid", "source": "https://api.y2.dev/api/v1/profiles/prf_0123456789abcdef01234567", "type": "dev.y2.report.generated.v1", "subject": "reports/rpt_0123456789abcdef01234567", "time": "2026-07-21T12:00:00.000Z", "datacontenttype": "application/json", "dataschema": "https://api.y2.dev/schemas/events/report-generated-v1.json", "data": { "report": { "id": "rpt_0123456789abcdef01234567", "profileId": "prf_0123456789abcdef01234567", "summary": "Concise report summary...", "status": "published", "generatedAt": "2026-07-21T11:59:48.000Z", "language": "en", "intelligence": { "signalCount": 4, "graphNodeCount": 12 }, "audio": { "status": "available", "durationSeconds": 318 } }, "subscription": { "id": "sub_0123456789abcdef01234567" }, "links": { "report": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567", "markdown": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567?format=markdown", "sources": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567?include=sources", "signals": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567/signals", "graph": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567/graph", "audio": "https://api.y2.dev/api/v1/reports/rpt_0123456789abcdef01234567/audio" } } } ``` `summary` can be `null`, and audio can be marked `unavailable`. Following a link can require an appropriately scoped API key or the endpoint's documented x402 flow. ## Request headers Prop Type ## Verify the signature Compute HMAC-SHA256 over the exact raw request body bytes using the configured secret. Prefix the hex digest with `sha256=`. Compare it with `X-Y2-Signature` in constant time. ``` import { createHmac, timingSafeEqual } from "node:crypto"; export function verifyY2Webhook(rawBody, headers, secret) { const supplied = headers["x-y2-signature"] ?? ""; const timestamp = Number(headers["x-y2-timestamp"] ?? 0); const ageSeconds = Math.abs(Math.floor(Date.now() / 1000) - timestamp); if (!timestamp || ageSeconds > 300) return false; const expected = `sha256=${createHmac("sha256", secret) .update(rawBody) .digest("hex")}`; const suppliedBytes = Buffer.from(supplied); const expectedBytes = Buffer.from(expected); return ( suppliedBytes.length === expectedBytes.length && timingSafeEqual(suppliedBytes, expectedBytes) ); } ``` Use the raw bytes before JSON parsing. Re-serializing an object can change the signed body. Keep your own replay window policy and deduplicate with `Idempotency-Key` or `X-Y2-Event-Id`. A secret is optional in the configuration form. If you omit it, Y2 does not send `X-Y2-Signature`. Secure the endpoint with a custom authorization header or another control. ## Acknowledge deliveries safely The delivery request has a 10-second timeout. Return `2xx` only after storing or durably queuing the event. Process longer tasks asynchronously. ``` app.post("/y2/webhook", rawBodyMiddleware, async (request, response) => { if (!verifyY2Webhook(request.rawBody, request.headers, process.env.Y2_WEBHOOK_SECRET)) { return response.sendStatus(401); } await queue.put({ id: request.headers["x-y2-event-id"], event: JSON.parse(request.rawBody.toString("utf8")), }); return response.sendStatus(202); }); ``` Network errors, timeouts, HTTP 408/429, and 5xx responses can retry up to five total attempts. Retry delays are 5 seconds, 30 seconds, 5 minutes, and 30 minutes. Other HTTP rejections pause the destination immediately. Five consecutive failures also pause it. A successful delivery resets the failure count. Retries do not regenerate reports. The owner receives a warning when temporary failures begin and another email when delivery pauses. Reports, configuration, and history remain available. Other destinations continue independently. ### Recover a paused destination 1. Save any endpoint, secret, or header changes. 2. Run **Test Webhook**. 3. After a successful test, enable delivery within 15 minutes. 4. Use **Delivery history and replay** to resend a retained failed event if needed. Tests work while paused. Configuration changes or a new production failure invalidate the test. Replay keeps the original payload and event ID. Deduplicate it at the receiver. Enabling delivery does not send the backlog automatically. ## Manage configurations - Editing a masked webhook leaves its existing secret unchanged when the secret field is blank. - Activating a paused webhook requires a current successful test and resets its failure count. - An inactive webhook cannot be assigned for delivery. - A configuration cannot be deleted while any subscription references it. Reassign those profiles first. - The app exposes 30-day success/failure statistics, last-use time, subscription count, and current consecutive failures. You can also manage configurations through the public API. API-key requests use the `webhooks:manage` scope. Creating new API keys requires Pro or Elite, while webhook delivery itself is available on Lite. ## Next steps [Webhook API guide](https://y2.dev/docs/api/webhooks): Review management endpoints and integration boundaries. [Generated webhook reference](https://y2.dev/docs/api/reference/webhooks): Inspect canonical request and response schemas. [Reports API](https://y2.dev/docs/api/reports): Retrieve report content linked by an event. --- # LLM-friendly Documentation (https://y2.dev/docs/llms/) Reference for Y2 documentation artifacts used by coding agents, retrieval systems, and MCP clients. Y2 publishes build-generated Markdown, text, and MDX artifacts so an AI integration can discover, retrieve, and cite the same pages people read on y2.dev. Choose the smallest useful artifact Start with `/llms.txt`. Fetch one page's Markdown for narrow tasks. Use `/llms-full.txt` for broader context and `/api/openapi.yaml` for API schemas. ## Artifact reference | Artifact | Content | Use it for | | ------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | | `/llms.txt` | Product summary, pricing, and grouped links to every documentation page | Discovery and routing | | `/llms-full.txt` | Every documentation page rendered as Markdown, with titles and canonical URLs | Broad grounding or corpus ingestion | | `/{path}.md` | One public page (docs, blog, or product) rendered as Markdown with title, description, and canonical URL | Task-specific context and citation | | `/docs/{slug}.mdx` | Source MDX body for one documentation page | Editing or comparing with the source | | `/blog/rss.xml` | RSS feed of blog posts, newest first | Following new guides and comparisons | | `/api/openapi.yaml` | OpenAPI contract for public HTTP endpoints | Types, parameters, schemas, scopes, and responses | These are public documentation artifacts and do not require a Y2 API key. Rendered Markdown or source MDX `.md` files and `/llms-full.txt` are rendered from the published pages, so tabs, cards, and collapsible answers appear as plain Markdown. Endpoint reference pages list each operation's URL, scopes, parameters, and responses. `.mdx` files keep the source, where Fumadocs tags such as `Callout` and `APIPage` remain. Treat `/api/openapi.yaml` as authoritative for nested schemas. ## Retrieve documentation **Discover** ``` curl -fsS https://y2.dev/llms.txt ``` Use the grouped links and descriptions to decide which page the task needs. **One page** ``` curl -fsS https://y2.dev/docs/api/authentication.md ``` Append `.md` to a page path. For example, `/docs/api/` becomes `/docs/api.md` and `/pricing/` becomes `/pricing.md`. A request for the page URL with `Accept: text/markdown` returns the same Markdown, and each HTML page links it with `rel="alternate"`. **Full corpus** ``` curl -fsS https://y2.dev/llms-full.txt ``` Use this response when the agent needs relationships across several documentation sections. **API contract** ``` curl -fsS https://y2.dev/api/openapi.yaml ``` Treat the operation definitions and schemas here as authoritative for HTTP integration code. The deployed files use revalidation caching. Re-fetch them when starting a new integration task or after a Y2 release instead of treating a local copy as permanent. ## Ingest the full corpus safely Each page in `/llms-full.txt` begins with a generated header: ``` # Page Title (https://y2.dev/docs/canonical-path/) [Rendered Markdown body] ``` The build places `---` between pages, but pages can also contain their own horizontal rules. Do not split on every `---`. Detect generated page headers that match a title followed by a `https://y2.dev/docs/` URL, and retain that URL as source metadata. 1. Require a successful HTTP response and a text content type. 2. Detect page headers shaped like `# Title (https://y2.dev/docs/path/)`. 3. Keep each title and URL with its Markdown body. 4. Split long pages at headings. Keep code blocks intact. 5. Parse `/api/openapi.yaml` separately by operation and schema. ## Use MCP when the agent needs tools The LLM artifacts provide documentation context only. Use the Y2 MCP integration when an agent needs tools. It supports report and News reads, operation lookup, and Agent Y2 access. Separate distribution boundary `@y2-intel/mcp` is a separate package whose implementation is not in this platform repository. Inspect `tools/list`, `resources/list`, and `prompts/list` after installation. These responses show the installed version's capabilities. The [MCP guide](https://y2.dev/docs/api/mcp) covers client configuration, scoped credentials, capability inspection, and troubleshooting. Keep `Y2_API_KEY` in the MCP process environment, never in a prompt or tool argument. ## Prepare a coding agent Use the maintained integration prompt when an agent will write Y2 API code. It directs the agent to the documentation index, OpenAPI contract, current base URLs, authentication rules, and plan boundaries. AI Quickstart Copy the maintained Y2 integration prompt into your coding agent before it writes API code. [AI coding-agent workflow](https://y2.dev/docs/api/agentic-dx): Ground an agent, constrain its scope, and verify the generated integration. [OpenAPI contract](https://y2.dev/docs/api/openapi): Choose the correct server, validate the contract, and regenerate client types. [MCP setup](https://y2.dev/docs/api/mcp): Configure and inspect the separately distributed MCP server. [Client guides](https://y2.dev/docs/sdks): Build server-side TypeScript, Python, or command-line integrations from the contract. --- # Mission (https://y2.dev/docs/mission/) Why Y2 makes continuous, source-aware intelligence accessible to more decision-makers. Y2 exists to make useful intelligence accessible to people and organizations that do not have a dedicated research team. ## The problem Important signals are scattered across feeds, reports, markets, maps, and specialized data providers. Following them manually creates three recurring problems: - **Coverage gaps:** no single source contains the full picture. - **Attention limits:** people cannot continuously monitor every relevant source. - **Lost context:** one-off searches rarely preserve what changed or why it matters. Traditional intelligence services can address these problems. Their cost can limit access for individuals and smaller teams. ## Y2's approach - **Persistent monitoring:** Profiles turn a recurring question into an intelligence workflow with a defined topic, research cadence, and delivery path. - **Connected context:** Live feeds, reports, entities, incidents, and relationships remain connected so readers can move from an alert to the supporting context. - **Useful delivery:** Intelligence can remain in the workspace or move through email, SMS, webhooks, audio, and the API when the active plan supports them. - **Shared knowledge:** Global and community profiles let one well-designed monitoring workflow benefit more than one person. ## Operating principles ### User-defined priorities The operator decides what to monitor, which sources and workflows are relevant, and where results should go. Automation serves that intent rather than replacing it. ### Traceable evidence Reports and intelligence objects should retain enough source and provenance context for readers to inspect the underlying evidence and form their own judgment. ### Human judgment remains final Y2 can collect, organize, and synthesize information. It does not remove uncertainty or make a decision on the operator's behalf. ### Broad access The platform should support an individual testing one briefing, an analyst building a repeatable workflow, and a team operating shared intelligence resources. Intelligence is not certainty Open-source data can be incomplete, delayed, duplicated, or wrong. Treat generated analysis as decision support, review cited evidence, and apply appropriate professional judgment. ## Who Y2 serves Y2 is designed for analysts, investors, security professionals, researchers, operators, and business leaders who need repeatable awareness of complex or fast-changing topics. ## Put the mission into practice [Open the setup guide](https://y2.dev/docs): Set up a workspace and verify your first intelligence profile. [Open the Situation Room](https://y2.dev/docs/osint): Explore live events, sources, country context, and connected intelligence. [Build with the API](https://y2.dev/docs/api): Bring Y2 intelligence into an application or operational workflow. --- # News Signal Feed (https://y2.dev/docs/news/) News Terminal # News Signal Feed Select topics, inspect source signals, and read cached news recaps. News shows cached RSS and X signals across 40 topics. Sign in to use the feed. ## Monitor selected topics 1. Open **News**. 2. Select one or more chips under **Global Signal Feeds**. 3. Choose **Live Feed** for individual signals or **12h Recap** for summaries. 4. Select a signal row or **View Source** to open its source when available. Select a topic chip again to remove it. Y2 saves your feed selection and view mode to your account. See [Topics and feeds](https://y2.dev/docs/news/topics) for the catalog and example combinations. ## Read a signal | Field | Meaning | | ----------- | -------------------------------------------- | | Signal | Source headline or main finding | | Sentiment | Bullish, bearish, or neutral when classified | | Feed | Assigned topic | | Author | Source author or publisher when available | | Timestamp | Relative publication time | | Source link | Original source URL when available | Verify the source Sentiment is not a confidence score or investment recommendation. Open the source and check important claims before acting. ## Use 12-hour recaps Select **12h Recap** to read a cached summary for each selected topic. See [AI news recaps](https://y2.dev/docs/news/recaps) for content, schedules, and limitations. ## Refresh and stale data **Refresh** reads the cache again. It does not fetch new sources or generate a recap. RSS topics refresh on different schedules. X ingestion uses a separate weekly schedule. “Live Feed” means the latest data stored by Y2. If no results appear: 1. Confirm that a feed is selected. 2. Try a broader feed selection. 3. Select **Refresh**. 4. If the cache is initializing, wait for the next sync. ## News feeds and country cards News groups items by topic. Country cards use observations attributed to the selected country. An item can appear in News without a country card match. Missing country attribution, expired data, or source eligibility can explain the difference. Mentioning a country does not establish an event's location. Opening a [country card](https://y2.dev/docs/osint/country-cards) reads stored observations without starting a news search. ## API access Use the [News API guide](https://y2.dev/docs/api/news) for signals, recaps, and feed discovery. API-key requests require `news:read`. See [Authentication](https://y2.dev/docs/api/authentication) for key and payment options. --- # AI News Recaps (https://y2.dev/docs/news/recaps/) News Terminal # AI News Recaps How cached topic summaries are generated and interpreted. A recap summarizes recent signals for one topic. The app shows the 12-hour recap window. Use the [News guide](https://y2.dev/docs/news#use-12-hour-recaps) to select topics and open recaps. ## Generation schedule Recap scheduling starts at 00:02, 06:02, 12:02, and 18:02 UTC. Topic jobs start 45 seconds apart. Completion depends on the queue and provider. RSS ingestion has separate topic schedules: every 30 minutes, two hours, or six hours. X ingestion runs weekly. A recap can therefore contain sources with different retrieval times. Opening News or selecting **Refresh** reads the cache. It does not generate a new recap. ## Recap contents The app displays the main narrative. A structured recap can also contain: | Content | Meaning | | ----------------- | -------------------------------------------- | | Executive summary | A short overview | | Sentiment | Bullish, bearish, neutral, or unclassified | | Key developments | Up to six findings with sources and entities | | Subjects | Up to eight topic clusters | | Open questions | Up to five questions grounded in the inputs | | Item count | Number of input signals considered | | Creation time | When the recap was generated | The count does not measure total market activity. Sentiment does not predict an outcome. ### Fallback output Y2 can retain an existing recap or provide a summary assembled from cached signals while generation is pending. This fallback can contain different fields from a structured model response. API clients must handle both shapes. ## Interpret recaps safely Review the underlying evidence Recaps use a limited set of cached signals. They can omit events or repeat source errors. Open the original sources in **Live Feed** before making a decision. A missing card can mean no recap is cached for that topic. Quiet topics can display a neutral “no direct signals” message. Source IDs identify inputs. Use Live Feed links to inspect the original source. ## Retrieve recaps with the API The API accepts `12h`, `24h`, `3d`, and `7d`. The registry schedules only `12h`. Longer valid windows can return no recap. Use [List recaps](https://y2.dev/docs/api/reference/news/listRecaps) for authentication, parameters, and the response schema. --- # Topics and Feeds (https://y2.dev/docs/news/topics/) News Terminal # Topics and Feeds Reference for the News Signal Feed topic catalog and identifiers Y2 currently defines 40 News feeds in a shared source registry. The app and API use the IDs on this page to select topic caches. The feed catalog is configuration-driven. Use `GET /api/v1/news/feeds` when an integration needs to discover the current list at runtime instead of storing a copy. ## Feed catalog ### Politics and Geopolitics: 4 feeds | Feed | ID | Coverage | | ----------------- | ----------------- | ---------------------------------------------------------------- | | Geopolitics | `geopolitics` | Alliances, wars, sanctions, and diplomatic flashpoints | | US Politics | `politics_us` | Federal politics, elections, Congress, and major policy shifts | | Defense | `defense` | Military operations, NATO, weapons programs, and security policy | | Sanctions & Trade | `sanctions_trade` | Export controls, tariffs, sanctions, and industrial policy | ### Macro and Markets: 5 feeds | Feed | ID | Coverage | | -------------------- | ------------- | ----------------------------------------------------------------------- | | Macro | `macro` | High-impact macroeconomic and geopolitical events with market relevance | | Equities | `equities` | Global equity markets, earnings, indices, and market structure | | Rates & FX | `rates_fx` | Interest rates, currencies, central banks, and yield curves | | Commodities | `commodities` | Energy, metals, agriculture, and commodity-market shocks | | Banking & Regulation | `banking_reg` | Banking stress, financial regulation, and financial stability | ### Industry Verticals: 7 feeds | Feed | ID | Coverage | | -------------------- | ------------------- | ----------------------------------------------------------------------- | | Energy | `energy` | Oil and gas, power markets, grids, nuclear, and renewables | | Cyber | `cyber` | Attacks, ransomware, vulnerabilities, infrastructure, and threat actors | | Semiconductors | `semiconductors` | Chip manufacturing, foundries, accelerators, and supply chains | | Biotech & Health | `biotech` | Pharma, biotech, health alerts, and life-science market events | | Logistics & Maritime | `logistics` | Ports, shipping, chokepoints, supply chains, and disruptions | | Critical Minerals | `critical_minerals` | Rare earths, lithium, copper, mining, and battery materials | | Telecom | `telecom` | 5G, submarine cables, satellite broadband, and network infrastructure | ### Regional Desks: 6 feeds | Feed | ID | Coverage | | ------------- | ----------------- | ---------------------------------------------------------------------- | | MENA | `region_mena` | Middle East and North Africa political, conflict, and economic signals | | Europe | `region_europe` | European politics, EU policy, security, and regional economics | | Asia-Pacific | `region_asiapac` | China, Indo-Pacific security, ASEAN, and regional political economy | | Latin America | `region_latam` | Politics, security, crime, and economic signals in Latin America | | Africa | `region_africa` | Politics, conflict, resources, and regional economic developments | | North America | `region_namerica` | US, Canada, and Mexico cross-border political and economic signals | ### AI and Technology: 5 feeds | Feed | ID | Coverage | | ---------------- | ------------------ | ------------------------------------------------------------ | | AI | `ai` | LLMs, infrastructure, model launches, and major partnerships | | AI Agents | `ai_agents` | Agent frameworks, incentives, ecosystems, and launches | | Data | `dats` | Data, analytics, and infrastructure developments | | Machine Learning | `machine_learning` | Academic, industry, and open-source ML developments | | Tech | `tech` | Software, semiconductors, regulation, and AI infrastructure | ### Crypto and Digital Assets: 13 feeds | Feed | ID | Coverage | | --------------- | ---------------- | --------------------------------------------------------------- | | Base | `base` | Base L2 network and ecosystem developments | | Bitcoin | `bitcoin` | Network upgrades, ETF flows, miners, and adoption | | Crypto | `crypto` | Broad markets, launches, infrastructure, and protocols | | DeFi | `defi` | Protocols, yield markets, governance, and infrastructure | | Ethereum | `ethereum` | Protocol upgrades, scaling, validators, and ecosystem changes | | Hyperliquid | `hyperliquid` | HYPE, governance, perps liquidity, and ecosystem projects | | On-Chain Whales | `on_chain_whale` | Large transactions, wallets, and whale activity | | Perps | `perps` | Perpetual futures, derivatives, leverage, and trading platforms | | Ripple | `ripple` | XRP, XRPL, Ripple Labs, and related legal developments | | RWA | `rwa` | Tokenized real-world assets, issuers, platforms, and regulation | | Solana | `solana` | Protocol, validator, outage, and core-network developments | | Token Listings | `token_listings` | Exchange additions, token listings, and launches | | Virtuals | `virtuals` | Virtuals Protocol, GAME, agents, commerce, and tokenomics | Every topic in the current registry uses a 12-hour recap window. ## Select feeds in the app Follow [Monitor selected topics](https://y2.dev/docs/news#monitor-selected-topics). The app restores your saved selection. It does not apply the API's default topic list. ## Choose a useful combination Start narrow, then add broader feeds only when they contribute different coverage. - **Market and policy:** `macro`, `equities`, `rates_fx`, `geopolitics` - **Technology supply chain:** `ai`, `semiconductors`, `critical_minerals`, `energy` - **Cyber risk:** `cyber`, `defense`, `telecom`, `geopolitics` - **Digital assets:** `crypto`, `bitcoin`, `ethereum`, `defi` Broad and narrow topics can overlap. For example, `crypto` can include events also found under `bitcoin` or `ethereum`. More feeds increase coverage and can also increase duplicate context. ## Use topic IDs with the API The `topics` query parameter accepts comma-separated IDs from the catalog above. If omitted, it defaults to `crypto,geopolitics,macro,equities,ai,energy`. Unknown IDs return `400 Bad Request`. Use [List news](https://y2.dev/docs/api/reference/news/listNews) for requests and pagination. Use [List feeds](https://y2.dev/docs/api/reference/news/listFeeds) to discover the current catalog at runtime. ## Next steps [Use the Signal Feed](https://y2.dev/docs/news): Filter current signals and open attributed sources. [Read AI recaps](https://y2.dev/docs/news/recaps): Understand recap availability and limitations. [List news with the API](https://y2.dev/docs/api/reference/news/listNews): Review pagination, filters, and response fields. --- # Ontology and Cyber-Market Fusion (https://y2.dev/docs/ontology/) Ontology & Fusion # Ontology and Cyber-Market Fusion Record sourced claims and connect company relationships to cyber and market events. Y2 connects research through two layers: - **Entity ledger:** your workspace's record of sourced claims about people, organizations, and systems. - **Cyber-market fusion:** a timeline of events about a company and the parties connected to it. The ledger retains earlier claims when you correct them. Fusion combines those claims with Y2's shared catalog. ## Tutorial [Read a company ledger](https://y2.dev/docs/ontology/tutorial): Check a supplied local example, inspect its supplier claim, and produce a STIX bundle. ## How-to guides - [Record a claim with evidence](https://y2.dev/docs/ontology/how-to/record-evidence) - [Correct, supersede, or retract a claim](https://y2.dev/docs/ontology/how-to/correct-a-claim) - [Read the ledger at a point in time](https://y2.dev/docs/ontology/how-to/read-at-a-point-in-time) - [Export STIX and verify the seal](https://y2.dev/docs/ontology/how-to/export-and-verify) ## Reference - [Ledger record format](https://y2.dev/docs/ontology/reference/ledger-format) - [Vocabulary](https://y2.dev/docs/ontology/reference/vocabulary) - [STIX 2.1 export](https://y2.dev/docs/ontology/reference/stix-export) - [Fusion response](https://y2.dev/docs/ontology/reference/fusion) - [Ontology Ledger API](https://y2.dev/docs/api/ontology-ledger) ## Explanation - [Why a claim ledger](https://y2.dev/docs/ontology/explanation/claim-ledger) - [Cyber-market fusion](https://y2.dev/docs/ontology/explanation/cyber-market-fusion) - [Catalog and ledger alignment](https://y2.dev/docs/ontology/explanation/catalog-alignment) --- # Catalog and Ledger Alignment (https://y2.dev/docs/ontology/explanation/catalog-alignment/) Ontology & Fusion # Catalog and Ledger Alignment Understand how shared entities connect to workspace claims. Y2's catalog and ledger serve different purposes. | Property | Shared catalog | Workspace ledger | | ------------ | ------------------------------------------------ | ------------------------------------------------ | | Content | Entities, identifiers, and relationships | Sourced claims about research subjects | | Contributors | Y2 collection and research processes | Workspace analysts and integrations | | Identity | Resolved with identifier and name checks | A shared string never merges subjects | | Changes | Updated records, with reversible merge redirects | New records preserve each correction | | Assessment | Relationship confidence | Claim confidence and evidence-based verification | | Visibility | Shared across Y2 | Workspace access | The catalog supports search, graphs, and shared context. The ledger preserves the evidence and history of workspace research. ## Anchors connect them An **anchor** links a ledger subject to a catalog entity. It is not an identity claim or a merge. Two subjects can share one anchor. When catalog entities merge, their anchors follow the surviving entity. | Catalog kind | Ledger class | | -------------------------------------------------------------------------- | -------------------------- | | `person` | `person` | | `organization`, `vendor` | `organization` | | `threat_actor` | `organization` or `person` | | `software`, `api_service`, `ai_model` | `system` | | `cve`, `malware_family`, `indicator` | Not anchored | | `country`, `region`, `facility`, `vessel`, `aircraft`, `asset`, `protocol` | Not anchored | Threat-actor assessment remains in the catalog. Vulnerabilities, adversary behavior, places, and tracked assets are outside the ledger's passive-research subject classes. ## Relations map where the meaning matches | Catalog relation | Ledger predicate | Fusion use | | --------------------------------------- | --------------------------- | ------------------------- | | `supplies` | `supplies` | Supplier or customer path | | `subsidiary_of` | `subsidiary-of` | Parent or subsidiary path | | `operates` | `operates` | Operated-system path | | `part_of` | `affiliated-with` | No exposure path | | `affects`, `targets`, `uses` | No direct predicate mapping | Cyber exposure context | | `ally_of`, `adversary_of`, `located_in` | No direct mapping | No exposure path | | `references` | No direct mapping | No exposure path | ## Catalog identifiers are candidates, not claims A catalog identifier can help locate evidence. It does not supply the retrieval, excerpt, and verification state needed for a ledger claim. Y2 does not copy those identifiers into the ledger as claims. A combined CIK-or-ticker field does not establish either identifier type. A ledger designator needs the namespace supported by its filing or exchange source. ## Why keep them separate A shared catalog connects collected records for search and analysis. A workspace ledger preserves disagreements, uncertain identities, and earlier assessments. Anchors let fusion use both without replacing either layer's identity rules. --- # Why a Claim Ledger (https://y2.dev/docs/ontology/explanation/claim-ledger/) Ontology & Fusion # Why a Claim Ledger Understand evidence, corrections, identity, and the ledger's three clocks. The entity ledger records sourced claims instead of overwriting the current answer. Each claim retains its evidence, verification state, and time interval. The displayed view is computed from those records. ## The subject of a claim is not its string A **subject** represents a person, organization, or system. A **designator** is a name, handle, domain, or other public identifier. A **claim** connects them with evidence. Two subjects can share a designator without being the same entity. A `same-as` claim records an identity hypothesis. It does not merge subjects. If `distinct-from` is also live, the pair is contested. ## Every change is a new line A correction supersedes the current claim in its chain. A retraction removes it from the current view but preserves its history and supporting observation. Each record includes a SHA-256 hash and the previous record's hash. This supports three needs: - **Accountability:** inspect the evidence available before a correction. - **Collaboration:** reject a correction that refers to an outdated claim. - **Portability:** export canonical NDJSON and check it with the local tool. A valid hash chain establishes internal consistency. It does not establish that the claims are true or that the export includes the latest records. ## Verification belongs to the claim Verification describes a specific claim, not the person or organization. A handle claim can be `located` because one public page supports it. `cross-linked` requires retrievals from two different pages. `analytic` applies when all cited evidence consists of analyst notes. Confidence and verification remain separate fields. See [verification states](https://y2.dev/docs/ontology/reference/vocabulary#verification-ladder). ## Three clocks | Clock | Field | Meaning | | -------------- | ------------------------ | --------------------------------- | | Record time | `recorded_at` | When the ledger stored the record | | Valid time | `valid_from`, `valid_to` | When the claim applies | | Retrieval time | `retrieved_at` | When the source was retrieved | Record time selects the available history. Valid time filters the claims computed from that history. A missing bound means unknown. A retrieval date alone does not establish when the underlying relationship began. ## Passive by construction The method vocabulary covers public retrievals and analyst notes. It has no method for authenticated or non-public access to the subject. The ledger stores a short excerpt and its hash, or a reference to preserved content. ## Related explanations - [Catalog and ledger alignment](https://y2.dev/docs/ontology/explanation/catalog-alignment) - [Cyber-market fusion](https://y2.dev/docs/ontology/explanation/cyber-market-fusion) - [STIX export mapping](https://y2.dev/docs/ontology/reference/stix-export) --- # Cyber-Market Fusion (https://y2.dev/docs/ontology/explanation/cyber-market-fusion/) Ontology & Fusion # Cyber-Market Fusion Understand company exposure paths, event timing, and coverage limits. Cyber-market fusion combines events about a company and the parties connected to it. A supplier's cyber incident and a customer's financial result can appear on the same timeline. Their proximity helps investigation but does not establish causation. ## What the fused view does For an organization or vendor, fusion: 1. Builds an exposure path from suppliers, customers, parents, subsidiaries, and operated systems. 2. Gathers relevant cyber, market, supply-chain, and geopolitical events. 3. Orders dated events and shows their domain, path, severity, and source. 4. Pairs cyber events with later market events within the selected interval. 5. Identifies workspace topics connected to the company or its counterparties. Relationships come from the shared catalog and your workspace's ledger. Ledger relationships retain their supporting evidence and verification state. ## What it deliberately does not claim An adjacency means that a market event followed a cyber event within the selected interval. It can also show whether both events share an exposure path. It does not mean that one caused the other. Events without a source time remain in **Undated**. They are never assigned a guessed date. Each data source has a read limit. The response reports reached limits in `coverage`. An empty timeline means no matching events were found within those limits. It does not establish that the company has no exposure. ## Why the ledger matters here An exposure path needs evidence for its relationships. A ledger supplier claim identifies the public page that supports the relationship. Its verification state shows how that evidence was assessed. When both layers link the same counterparty, fusion prefers the ledger relationship. ## Related pages - [Read a company ledger](https://y2.dev/docs/ontology/tutorial) - [Record a relationship with evidence](https://y2.dev/docs/ontology/how-to/record-evidence#record-a-supply-or-ownership-tie-in-the-app) - [Fusion response](https://y2.dev/docs/ontology/reference/fusion) - [Why a claim ledger](https://y2.dev/docs/ontology/explanation/claim-ledger) --- # DNS Footprints in the Graph (https://y2.dev/docs/ontology/explanation/dns-footprints/) Ontology & Fusion # DNS Footprints in the Graph Understand how DNS Explorer snapshots become dated entities and relationships, and what they do not claim. A DNS footprint is the set of public DNS records for one domain at one time. Y2 collects it from DNSDumpster when a Pro or Elite workspace looks up the domain. Each answer becomes a snapshot with the time that it arrived. ## Why snapshots are dated and shared DNS records change. A host can move to another address or another network. A dated snapshot keeps what the provider returned at that time. A later snapshot does not replace an earlier one. Y2 keeps both and marks a snapshot whose records changed. Public DNS gives the same answer to every requester. For this reason, Y2 gives the same snapshot to every workspace for 14 days. During that time, a lookup opens the saved snapshot and does not use an allowance. After 14 days, the next lookup takes a new snapshot. This reuse also keeps requests within the provider's free tier. ## How records become entities | Record | Entity | | ----------------------------- | ------------------------------------------- | | The domain and each host name | `indicator` with an exact domain identifier | | Each address | `indicator` with an exact IP identifier | | Each netblock | `indicator` with an exact prefix identifier | | Each network operator (ASN) | `organization` with an exact ASN identifier | | Each address location | `country` with its ISO code | Exact identifiers prevent the merge of unrelated hosts, addresses, or netblocks. A network operator name, such as `CLOUDFLARENET - Cloudflare, Inc.`, goes through governed entity resolution. Resolution can attach the operator to a company that Y2 already tracks. ## How records become relationships | Record | Relationship | | ---------------------------------------------------- | ----------------------------------- | | Host under the domain | host `part_of` domain | | Mail server, name server, or host outside the domain | domain `references` host | | A record or CNAME | host `references` address or target | | Address in a netblock | address `part_of` netblock | | Address announced by a network | operator `operates` address | | Address located in a country | address `located_in` country | | Organization whose official website is the domain | organization `operates` domain | Each relationship cites the snapshot's observation as evidence. Its first and last evidence times extend when a later snapshot shows it again. Thus the graph keeps when a host first and last resolved to an address. The `operates` link to a known organization needs the official website that Y2 already records for it. A lookup by entity uses that website. It cannot assign a new domain to an entity. ## What a footprint does not claim - `references` means that a record points to a host or address. It does not claim ownership or control. - Domains on a shared address, such as a CDN address, connect through that address. This does not show a relationship between their owners. - The free tier returns up to 50 A records. A capped snapshot has `truncated` set to `true`. - A host that is not in a capped snapshot can still exist. - A snapshot shows the records at capture time. It does not show the current records. - The country is the provider's location for the address. It is not the location of the domain owner. ## Privacy Snapshot history shows that a domain was looked up and when. It does not show the workspace or person that requested the lookup. Each workspace keeps its own list of lookups. Account deletion removes a person's lookups. Shared snapshots remain. ## Related pages - [Look up a domain's DNS footprint](https://y2.dev/docs/osint/dns-explorer) - [Look up DNS footprints with the API](https://y2.dev/docs/api/intel#look-up-dns-footprints) - [Cyber intelligence sources](https://y2.dev/docs/osint/sources#cyber-intelligence) --- # Correct, Supersede, or Retract a Claim (https://y2.dev/docs/ontology/how-to/correct-a-claim/) Ontology & Fusion # Correct, Supersede, or Retract a Claim Append a correction or retraction while preserving earlier evidence. Each correction replaces the current head of a claim key: `predicate|from|to|qualifier`. Earlier records remain in the ledger. API requests require a workspace-bound key with `ledger:read` and `ledger:write`. Set `Y2_SUBJECT_ID` to the subject's actual ID. Replace the IDs in the JSON templates below with IDs from your ledger. ## Find the current head The app shows the live claim for each designation and relationship. For API access, read the subject: ``` curl --fail --silent --show-error \ "https://api.y2.dev/api/v2/ledger/subjects/$Y2_SUBJECT_ID" \ --header "Authorization: Bearer $Y2_API_KEY" ``` Retain the current `claimId` for the claim you will replace. ## Strengthen a claim with a second source In the app, record the same identifier with the second source. Select `cross-linked` only when the evidence supports it. Y2 retains the earlier evidence and supersedes the previous claim. Through the API, append the second observation first. Then submit a claim with both evidence IDs and the current head: ``` { "kind": "claim", "claim": { "predicate": "designated-by", "from": "SUBJECT_ID", "to": "DESIGNATOR_ID", "supersedes": "CURRENT_CLAIM_ID", "confidence": 90, "verification": "cross-linked", "evidenceRefs": ["FIRST_OBSERVATION_ID", "SECOND_OBSERVATION_ID"] } } ``` Choose a confidence value supported by your evidence. The value shown here illustrates the field. Submit the payload with [Append a record](https://y2.dev/docs/api/reference/ontology-ledger/appendLedgerRecordV2). ## Close an interval when a page changes If a later retrieval no longer shows the identifier, supersede the claim with `validTo`. Cite both retrievals. Retain the claim's confidence and verification state. Use source-supported dates. If only retrievals establish the dates, describe the interval as a sighting interval in `note`. The end is exclusive. Omit an unknown bound instead of guessing it. ## Retract a mistaken claim First record an observation that explains the error, usually an analyst note. Then append a retraction: ``` { "kind": "claim", "claim": { "op": "retract", "predicate": "designated-by", "from": "SUBJECT_ID", "to": "DESIGNATOR_ID", "supersedes": "CURRENT_CLAIM_ID", "evidenceRefs": ["EXPLANATION_OBSERVATION_ID"], "note": "The earlier attachment relied only on a shared name." } } ``` Omit confidence, verification, and interval fields on a retraction. The retracted claim leaves the current view but remains in history. A later assertion must supersede the retraction. ## If the request is rejected | Response | Cause | Action | | ------------------------------- | ----------------------------------- | ----------------------------------------------- | | `409`, `assertion.chain` | Missing or outdated `supersedes` | Read the subject again and use the current head | | `400`, `assertion.verification` | Evidence does not support the state | Add suitable evidence or reduce the state | See [record rules](https://y2.dev/docs/ontology/reference/ledger-format#rules) for other errors. --- # Export STIX and Verify the Seal (https://y2.dev/docs/ontology/how-to/export-and-verify/) Ontology & Fusion # Export STIX and Verify the Seal Export workspace claims, download the canonical log, and check its records. ## Before you begin API commands require curl, jq, and a workspace-bound key with `ledger:read`. Set `Y2_API_KEY` to that key. Set `Y2_SUBJECT_ID` to a subject ID from your workspace. See [List ledger subjects](https://y2.dev/docs/api/reference/ontology-ledger/listLedgerSubjectsV2) to find the ID. Offline checks also require Bun and a checkout of the Y2 platform repository. Run repository commands from its root. If you lack repository access, use [API verification](#verify-the-seal-in-place). ## Export a subject as STIX 2.1 In the app, select **Export STIX 2.1** in the ledger panel. The bundle uses the selected **Valid on** date. For an API export: ``` curl --fail --silent --show-error --get \ "https://api.y2.dev/api/v2/ledger/subjects/$Y2_SUBJECT_ID/stix" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "history=true" \ --output subject.stix.json ``` `history=true` includes retracted claims with `revoked: true`. Without it, the bundle includes only live claims. See the [STIX mapping](https://y2.dev/docs/ontology/reference/stix-export). An incomplete subject neighborhood returns `400 VALIDATION_ERROR`. In that case, export the complete log below and project it locally: ``` bun packages/ontology/src/cli.ts stix ledger.ndjson > ledger.stix.json ``` ## Export the sealed log Run this Bash script in the directory where you want the export. It replaces `ledger.ndjson` and stops on request or JSON errors. ``` set -euo pipefail ledger_after=0 : > ledger.ndjson while :; do ledger_page=$(curl --fail --silent --show-error --get \ "https://api.y2.dev/api/v2/ledger/records" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "afterSeq=$ledger_after" \ --data-urlencode "limit=200") printf '%s\n' "$ledger_page" | jq -r '.data[].line' >> ledger.ndjson ledger_after=$(printf '%s\n' "$ledger_page" | jq -er '.meta.nextAfterSeq') [ "$(printf '%s\n' "$ledger_page" | jq -er '.meta.hasMore | tostring')" = true ] || break done ``` Each `line` is canonical text. Preserve its bytes and do not reformat its JSON. Pagination continues from `meta.nextAfterSeq` until `meta.hasMore` is false. If the script fails, discard the partial export and run it again. ## Check the export offline From the repository root, run: ``` bun packages/ontology/src/cli.ts check ledger.ndjson ``` Use the export's full path if it is stored elsewhere. The checker verifies canonical JSON, record rules, sequence numbers, hashes, links, and increasing record times. It prints `ok` with the line count, or reports problems with rule codes. A passing check establishes internal consistency. Compare the final sequence and hash with a trusted copy to detect a missing suffix or a completely replaced chain. The check does not establish that the claims are true. ## Verify the seal in place To check stored records through the API: ``` curl --fail --silent --show-error --get "https://api.y2.dev/api/v2/ledger/verify" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "afterSeq=0" \ --data-urlencode "limit=200" ``` Check `data.ok`, `data.checked`, and `data.problems`. Continue from `meta.nextAfterSeq` until `meta.hasMore` is false. This endpoint checks hashes and links within each window. Rules that require earlier records are enforced during writes and by the offline checker. --- # Read the Ledger at a Point in Time (https://y2.dev/docs/ontology/how-to/read-at-a-point-in-time/) Ontology & Fusion # Read the Ledger at a Point in Time Select when claims were recorded and when they applied. | Cursor | Parameter | Meaning | | ----------- | ------------ | ------------------------------------- | | Record time | `recordedAt` | Include records written by this time | | Valid time | `validAt` | Select claims that apply at this time | API requests require a workspace-bound key with `ledger:read`. Set `Y2_API_KEY` to that key and `Y2_SUBJECT_ID` to your subject ID. Replace the example dates with the times you need. ## See what holds on a date In the app, set **Valid on** in the ledger panel. Excluded designations move to **Outside the valid interval**. They remain in the ledger. For API access: ``` curl --fail --silent --show-error --get \ "https://api.y2.dev/api/v2/ledger/subjects/$Y2_SUBJECT_ID" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "validAt=2026-05-01T00:00:00Z" ``` ## See what you believed before a correction Set `recordedAt` to a time before the correction was recorded: ``` curl --fail --silent --show-error --get \ "https://api.y2.dev/api/v2/ledger/subjects/$Y2_SUBJECT_ID" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "recordedAt=2026-03-05T12:00:05Z" ``` The result uses only records available at that time. A later correction or retraction does not affect this view. ## Combine both This request asks what was recorded by March 20 about April 10: ``` curl --fail --silent --show-error --get \ "https://api.y2.dev/api/v2/ledger/subjects/$Y2_SUBJECT_ID" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "recordedAt=2026-03-20T00:00:00Z" \ --data-urlencode "validAt=2026-04-10T00:00:00Z" ``` Record time selects the available history. Valid time filters the resulting current claims. It does not restore an older version of a claim. ## Export the same view Use the same parameters with the STIX endpoint: ``` curl --fail --silent --show-error --get \ "https://api.y2.dev/api/v2/ledger/subjects/$Y2_SUBJECT_ID/stix" \ --header "Authorization: Bearer $Y2_API_KEY" \ --data-urlencode "recordedAt=2026-03-20T00:00:00Z" \ --data-urlencode "validAt=2026-04-10T00:00:00Z" ``` The HTTP API accepts ISO 8601 instants and normalizes them to UTC milliseconds. The local CLI requires UTC timestamps with milliseconds, such as `2026-03-20T00:00:00.000Z`. --- # Record a Claim with Evidence (https://y2.dev/docs/ontology/how-to/record-evidence/) Ontology & Fusion # Record a Claim with Evidence Record a public identifier or company relationship with its supporting source. You need an owner, admin, or member role in a workspace with FININT, Cyber, or Explorer access. Use a public page that supports the identifier or relationship. ## Record an identifier in the app 1. Open a company from **FININT → Markets → Companies**. 2. In **Entity ledger**, select **Open ledger subject** if no subject exists. 3. Open **Record an identifier with its source**. 4. Select the identifier kind. 5. Enter the value from the source page. 6. Enter a namespace if the kind requires one. 7. Enter the source URL, collection method, and an excerpt of up to 500 characters. 8. Select a supported verification state and confidence from 0 to 100. 9. Select **Record claim**. The saved identifier appears with its verification state. Y2 records the identifier, observation, and claim in one transaction. Repeating an identifier adds a correction that retains the earlier evidence. | Kind | Required namespace | | ------------- | ----------------------------------------------- | | `handle` | Platform or host, such as `github.com` | | `external-id` | `sec-cik`, `lei`, `wikidata`, or `attack-group` | | `ticker` | Exchange MIC, such as `XNAS` | Y2 stores canonical values, including lowercase domains, ten-digit CIKs, and uppercase tickers. See [designator kinds](https://y2.dev/docs/ontology/reference/vocabulary#designator-kinds). ## Set a display label 1. Record a **Published name** with its source. 2. Select **Use as label** beside the name. Y2 adds a separate `preferred-label` claim and an analyst note that cites the source. The label claim is graded `analytic`. ## Record a supply or ownership tie in the app 1. Open **Record a supply or ownership tie**. 2. Search the shared catalog for the other company. 3. Select its role: supplier, customer, parent, or subsidiary. 4. Cite the public page that states the relationship. 5. Select a supported verification state and confidence. 6. Select **Record tie**. Y2 opens a subject for the other company if needed. For a supplier, the `supplies` claim runs from that supplier to the selected company. The company's **Cyber-market exposure** panel can use the saved relationship. Events appear only when supporting data is available within the selected period and coverage limits. See [Fusion response](https://y2.dev/docs/ontology/reference/fusion). ## Record through the API Use a workspace-bound key with `ledger:write`. Use `ledger:read` to inspect the saved records. 1. [Open a subject](https://y2.dev/docs/api/reference/ontology-ledger/openLedgerSubjectV2), or use an existing subject ID. 2. Create an observation payload with the source URL, retrieval time, excerpt, method, and source grade. 3. Append the observation and retain its returned `data.id`. 4. Append a designator and retain its returned `data.id`. 5. Append a `designated-by` claim from the subject to the designator, citing the observation in `evidenceRefs`. Use the [record payload reference](https://y2.dev/docs/api/ontology-ledger#append-a-record) for each JSON file. To submit a prepared file: ``` curl --fail --silent --show-error "https://api.y2.dev/api/v2/ledger/records" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Idempotency-Key: $Y2_REQUEST_ID" \ --json @record.json ``` Set `Y2_REQUEST_ID` to a unique identifier for that request. Reuse it only when retrying the same payload. An existing designator returns `200` with `created: false`. A repeated claim requires `supersedes` with the current claim ID. ## Choose the verification state Select a state supported by the evidence. | Evidence | State | | ---------------------------------------------- | --------------- | | One public page supports the link | `located` | | The subject's own page states the link | `self-asserted` | | Two retrieved pages identify the link | `cross-linked` | | Further independent evidence supports the link | `corroborated` | | Only analyst notes support the claim | `analytic` | | A string appears without a supported link | `mentioned` | `cross-linked` and `corroborated` require retrievals from at least two different page URLs. `analytic` requires that all cited observations are analyst notes. A public profile does not establish control A profile can support a handle designation without showing who controls the account. Record `controls` only when a source supports that separate claim. ## Related pages - [Correct a claim](https://y2.dev/docs/ontology/how-to/correct-a-claim) - [Vocabulary](https://y2.dev/docs/ontology/reference/vocabulary) - [Record rules](https://y2.dev/docs/ontology/reference/ledger-format#rules) --- # Fusion Response (https://y2.dev/docs/ontology/reference/fusion/) Ontology & Fusion # Fusion Response Fusion parameters, fields, exposure paths, sources, and coverage limits. `GET /api/v2/entities/{entityId}/fusion` and the in-app **Cyber-market exposure** panel return the same view for an organization or vendor entity. ## Parameters | Parameter | Default | Range | Meaning | | --------------- | ------- | ----- | -------------------------------------------------------------- | | `windowDays` | 90 | 1–365 | Days of history ending at request time | | `adjacencyDays` | 7 | 1–90 | How long after a cyber event a market event counts as adjacent | ## Response fields | Field | Meaning | | ---------------- | --------------------------------------------------------------------------------------------------------------------------- | | `entity` | The resolved company (after catalog merge redirects) | | `window` | `start`, `end`, and `adjacencyDays` actually used | | `counterparties` | Up to 12 parties on the exposure path, with `relation`, `provenance`, and, for ledger ties, `confidence` and `verification` | | `identifiers` | Live designations of ledger subjects anchored to the company | | `topics` | Workspace topics whose subject is the company or a counterparty, with the path relation | | `timeline` | Up to 200 dated events in the window, newest first | | `undated` | Events without a source time, never placed at a guessed date | | `summaries` | Per domain: event count, highest severity, latest event time | | `adjacencies` | Up to 50 cyber → market pairs within `adjacencyDays`, same-path pairs first | | `coverage` | `truncated` and plain-language notes on read budgets and source limits | ## Exposure paths | Relation | From a catalog relation | From a ledger claim | | ----------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------ | | `supplier` | The party `supplies` the company | The party's subject `supplies` the company's subject | | `customer` | The company `supplies` the party | The company's subject `supplies` the party's subject | | `parent` | The company is `subsidiary_of` the party | The company's subject is `subsidiary-of` the party's subject | | `subsidiary` | The party is `subsidiary_of` the company | The party's subject is `subsidiary-of` the company's subject | | `operated-system` | The company `operates` or `uses` a software, API service, or model entity | The company's subject `operates` a system subject | A ledger tie wins over a catalog tie to the same entity because it carries evidence and a verification state. Catalog paths use current resolved relationships. Changing `windowDays` filters events but does not reconstruct earlier catalog relationships. Ledger paths use claims valid at `window.end`. ## Event sources | Domain | Sources | | -------------- | ----------------------------------------------------------------------------------------------------------- | | `cyber` | Relevant CVEs, threat actors, readable cyber signals, and cyber incidents | | `market` | Readable market signals, workspace financial facts, relevant prediction markets, and economic incidents | | `supply_chain` | Ledger supply and ownership ties, readable supply-chain signals, maritime incidents, and aviation incidents | | `geopolitical` | Readable geopolitical, military, and policy signals, plus conflict and political incidents | Signals are readable when they are global or community, belong to the key's workspace, or are the caller's own private signals. ## Provenance | Value | Meaning | | ----------- | --------------------------------------------------------------------- | | `catalog` | Y2's shared catalog: entities, relations, signals, incidents, markets | | `ledger` | Your workspace's entity ledger | | `workspace` | Your workspace's research, such as company financial history | ## Read budgets Each source has a read limit. | Source | Limit | | ---------------------------------- | --------------------------------------------------------------- | | Catalog relationships | 150 in each direction | | Cyber relationships per path party | 10 most recently added `affects` and 10 `targets` relationships | | Signal subjects per path party | 15 within the selected window | | Financial history | 12 most recently recorded facts | | Anchored ledger subjects | 5 | | Workspace topics | 200 | | Incidents and prediction markets | 100 most recently updated records per source | | Timeline output | 200 events | | Cyber-market pairs | 50 | Financial facts use their information dates. Ledger ties use `valid_from` when available. `coverage.notes` reports source limits. `coverage.truncated` is true when any source or output limit omits records. A truncated result can therefore contain fewer than 200 events. Sources naming both the company and a counterparty retain the direct company path. --- # Ledger Record Format (https://y2.dev/docs/ontology/reference/ledger-format/) Ontology & Fusion # Ledger Record Format Fields, identifiers, seals, and validation rules for ledger format version 0. A ledger contains one canonical JSON record per line. Keys are sorted by UTF-16 code unit. Numbers are integers, and insignificant whitespace is omitted. Every field is present. Unknown times and numbers use `null`. Empty string fields use `""`. The portable implementation is `@y2/ontology`. ## Common fields | Field | Type | Meaning | | ------------- | --------------------------------------------------- | ----------------------------------------------- | | `v` | `0` | Format version | | `seq` | integer | Position in the log, starting at 1, contiguous | | `id` | string | Record ID, with a prefix for its kind | | `kind` | `subject`, `designator`, `observation`, `assertion` | Record kind | | `recorded_at` | time | Record time, strictly increasing along the log | | `prev` | hex or `null` | Previous line hash, or `null` on the first line | | `hash` | hex | SHA-256 of the canonical line without `hash` | Times are ISO 8601 in UTC with milliseconds, exactly as `Date.prototype.toISOString` prints them. ## Records ### Subject | Field | Meaning | | ------- | --------------------------------------------------------------------- | | `class` | `person`, `organization`, or `system`. A subject never changes class. | A subject has no name. Names and identifiers arrive as designators and claims. ### Designator | Field | Meaning | | ----------------- | ------------------------------------------------------------------------------------ | | `designator_kind` | See [Vocabulary](https://y2.dev/docs/ontology/reference/vocabulary#designator-kinds) | | `value` | The canonical string | | `namespace` | Platform, algorithm, registry, or exchange MIC. Empty for kinds without one. | | `normalized` | Case-folded for names and handles. Otherwise equal to `value`. | A ledger permits one designator per `(kind, namespace, normalized)`. A second record with that key is rejected. The existing ID must be reused. ### Observation | Field | Meaning | | -------------- | ------------------------------------------------------------------------ | | `method` | One passive method, or `analyst-note` | | `source_grade` | `primary`, `secondary`, or `analytic` (only for a note) | | `source_url` | Page URL. Required for a retrieval, optional for a note. | | `archive_url` | A preserved copy, or `null` | | `retrieved_at` | Retrieval time, or `null` on a note | | `content_hash` | SHA-256 of `excerpt`, or of an archived blob when `archive_url` is set | | `excerpt` | A quote of 1–500 characters, or `null` when an archive holds the content | | `collector` | Recording label, 1–80 characters | | `cites` | Observations cited by a note. Empty on a retrieval. | ### Assertion | Field | Meaning | | ------------------------- | ------------------------------------------------------------------------------------------------------------------------ | | `op` | `assert` or `retract` | | `predicate`, `from`, `to` | The claim. See [predicates](https://y2.dev/docs/ontology/reference/vocabulary#predicates) | | `qualifier` | Public role on `member-of`. Otherwise `""`. | | `supersedes` | The current head of the claim key, or `null` on the key's first line | | `confidence` | Integer 0–100, or `null` on a retraction | | `verification` | A [verification state](https://y2.dev/docs/ontology/reference/vocabulary#verification-ladder), or `null` on a retraction | | `valid_from`, `valid_to` | Valid-time interval with an exclusive end. `null` means unknown. | | `evidence_refs` | 1–20 earlier observations | | `note` | Up to 1,000 characters of caveat | The claim key is `predicate|from|to|qualifier`. Each key has exactly one chain of lines. ## Identifiers Record IDs contain a kind prefix and 24 hexadecimal digest characters. The SHA-256 input combines the record type and workspace ledger position. | Kind | Prefix | Example | | ----------- | ------ | ------------------------------ | | Subject | `sbj_` | `sbj_0123456789abcdef01234567` | | Designator | `dsg_` | `dsg_0123456789abcdef01234567` | | Observation | `obv_` | `obv_0123456789abcdef01234567` | | Assertion | `clm_` | `clm_0123456789abcdef01234567` | The offline format accepts any lowercase ID with the right prefix, such as `sbj_ada` in the fictional fixtures. ## Rules Each rule has a code. The API returns codes in `detail`. The offline checker prints them per line. | Code | Rule | | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | | `shape.*` | Exact field set and field types for the kind | | `format.json`, `format.canonical` | The line is JSON in canonical form | | `chain.seq`, `chain.prev`, `chain.hash` | Contiguous `seq`, `prev` links the previous hash, `hash` matches | | `chain.time`, `time.format` | Record time strictly increases. Times use the required format. | | `id.format`, `id.duplicate` | Prefix matches the kind. IDs are unique. | | `designator.*` | Canonical value, correct normalization, and one record per designator key | | `observation.method`, `observation.grade` | Supported passive method. Only a note is `analytic`. | | `observation.url`, `observation.time` | HTTP(S) URL without userinfo. Retrieval time must not exceed record time. | | `observation.note`, `observation.cites` | Notes cite earlier observations and have no retrieval time. Retrievals cite nothing. | | `observation.excerpt`, `observation.hash`, `observation.preservation` | Excerpt of 1–500 characters or an archive. The hash matches the excerpt unless archived. | | `assertion.endpoint` | Distinct endpoints of permitted kinds. `same-as` and `distinct-from` require matching subject classes. | | `assertion.qualifier` | Only `member-of` carries a lowercase role | | `assertion.chain` | First claim supersedes nothing. Later claims supersede the head. Consecutive retractions are rejected. | | `assertion.evidence` | 1–20 distinct earlier observations | | `assertion.confidence`, `assertion.interval` | Integer confidence of 0–100. `valid_from` precedes `valid_to`. | | `assertion.verification` | The state is one the evidence supports (see the ladder) | | `assertion.retract` | A retraction clears confidence, verification, and the interval | | `assertion.label` | `preferred-label` needs a live `designated-by` for the same pair | ## Examples The repository supplies two valid fixtures in `packages/ontology/v0/examples`: - `fictional.ndjson` demonstrates corrections, retractions, and disputed identity. - `fictional-cyber-market.ndjson` demonstrates company identifiers and supplier relationships. The [local tutorial](https://y2.dev/docs/ontology/tutorial) checks the company fixture and shows its expected output. --- # STIX 2.1 Export (https://y2.dev/docs/ontology/reference/stix-export/) Ontology & Fusion # STIX 2.1 Export STIX object mappings, Y2 extension fields, identifiers, and timestamps. The export represents a subject's ledger view as an OASIS STIX 2.1 bundle. The ledger remains the source record. Repeating the same export produces the same object IDs. The endpoint rejects incomplete results when a subject exceeds its read limit. The [export guide](https://y2.dev/docs/ontology/how-to/export-and-verify) describes local export from a complete log. ## Mapping | Ledger | STIX 2.1 | | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------- | | `person` subject | `identity`, `identity_class: individual` | | `organization` subject | `identity`, `identity_class: organization` | | `system` subject | `identity`, `identity_class: system` | | Live preferred label | `identity.name`. An unlabeled subject is named by its ledger ID. | | Other published names and pseudonyms | `designated_names` in the extension. No alias-only `threat-actor` is created. | | `external-id` designations | `identity.external_references` (`sec-edgar-cik`, `lei`, `wikidata`, `mitre-attack`) | | `ticker` designations | `identity.external_references` with `source_name: ticker` and `MIC:SYMBOL` | | `email` | `email-addr` | | `handle` | `user-account` with `account_login` and `account_type` from the namespace. No credentials or login history. | | `domain`, `hostname` | `domain-name` | | `url` | `url` | | `asn` | `autonomous-system` | | `designated-by` to an observable | `relationship` of type `designated-by` | | Other claims | `relationship` with the predicate as its type, `confidence`, `start_time`, and `stop_time` | | Unconfirmed `same-as` | `relationship` of type `related-to`, described as a hypothesis | | `follows` | `relationship` of type `follows` between two `user-account` objects | | Cited observations | `external_references` on the relationship: method as `source_name`, URL, excerpt as `description`, `hashes.SHA-256` | | Retracted claim | Omitted by default. With `history=true`, a relationship with `revoked: true`. | `duplicate-of` and `attributed-to` are never emitted: identity is not confirmed by the ledger. ## Extension Every exported identity and relationship carries a property extension defined in the bundle: ``` { "type": "extension-definition", "spec_version": "2.1", "name": "Y2 passive entity ledger", "schema": "https://y2.dev/docs/ontology/reference/stix-export", "version": "0.1.0", "extension_types": ["property-extension"] } ``` | Property | On | Meaning | | ------------------- | ------------ | ----------------------------------------------------------------------------------------- | | `ledger_subject_id` | identity | The `sbj_…` ID | | `designated_names` | identity | Names other than the label | | `ledger_claim_id` | relationship | The head line's `clm_…` ID | | `claim_key` | relationship | \`predicate | | `predicate` | relationship | The ledger predicate, even when the type is `related-to` | | `verification` | relationship | The [ladder state](https://y2.dev/docs/ontology/reference/vocabulary#verification-ladder) | | `qualifier`, `note` | relationship | When present | A `Y2` producer `identity` is the `created_by_ref` of the extension, identities, and relationships. ## Identifiers and timestamps STIX IDs have the form `type--UUID`. Y2 formats SHA-256 digest inputs as version 8 UUIDs: | Object | Digest input | | ---------------- | ------------------------------------------------------------- | | Cyber observable | Object type and STIX ID-contributing properties | | Identity | Object type, a one-way workspace scope, and ledger subject ID | | Relationship | Object type, workspace scope, and claim key | Equal observables have equal IDs across exports. The workspace ID itself is not exported. A relationship's `created` time comes from the first record for its claim key. Its `modified` time comes from the current head. An identity's `modified` time includes its opening, designation, and label records, including retractions. STIX revocation is permanent. Reasserting a retracted claim creates a new relationship ID and `created` time. Later corrections retain that new ID. The extension preserves the original claim key. An explicit `validAt` cursor becomes part of the identity and relationship ID scope. This separates snapshots with different valid-time contents. The ledger subject ID in the extension connects those snapshots. A bundle ID includes the full exported content in its digest. An unchanged export produces the same bundle ID. --- # Ledger Vocabulary (https://y2.dev/docs/ontology/reference/vocabulary/) Ontology & Fusion # Ledger Vocabulary Allowed subject classes, identifiers, methods, predicates, and verification states. Values outside these lists are rejected. Terms marked **Y2 profile** add issuer and supply-chain research terms. They use the same evidence, verification, and interval rules. ## Subject classes | Class | Examples | | -------------- | --------------------------------------------------------------------------- | | `person` | A researcher, an executive, a maintainer | | `organization` | A company, a vendor, an agency, a threat group identified by its ATT\&CK ID | | `system` | A site, a host, a repository, a service, a model, an autonomous system | ## Designator kinds | Kind | Value | Namespace | | ------------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | | `published-name` | The name as the page prints it | Not used | | `pseudonym` | A name sources present as an alias | Not used | | `handle` | The login, without `@` | Platform or host, such as `github.com` | | `email` | Lowercase addr-spec | Not used | | `url` | Exact http(s) URL without userinfo | Not used | | `domain`, `hostname` | Lowercase host, no trailing dot | Not used | | `asn` | `AS` and a decimal number | Not used | | `public-key` | Lowercase hex fingerprint | Algorithm, such as `ssh-ed25519` | | `external-id` | A registry identifier | `wikidata` (`Q…`), `lei` (20 characters with valid check digits), `attack-group` (`G` and four digits), `sec-cik` (ten digits, **Y2 profile**) | | `ticker` (**Y2 profile**) | Uppercase listed symbol | ISO 10383 exchange MIC, such as `XNAS` | ## Observation methods `public-web-page`, `public-profile`, `public-dns`, `certificate-transparency`, `public-archive`, `public-registry`, `public-code-host`, and `analyst-note`. Authenticated access, non-public access, and interaction with the subject are not supported observation methods. ## Predicates | Predicate | From | To | Meaning | | -------------------------------- | ---------------------- | ------------------------- | ------------------------------------------------------------- | | `designated-by` | subject | designator | The subject is referred to by this identifier | | `preferred-label` | subject | name designator | Display this name. Requires a live `designated-by`. | | `same-as` | subject | subject of the same class | Hypothesis that the rows are one entity | | `distinct-from` | subject | subject of the same class | Hypothesis that they are not | | `member-of` | person | organization | A public role, in `qualifier` | | `affiliated-with` | subject | subject | A weaker public tie | | `controls` | person or organization | system or designator | Claimed control, supported by a source that addresses control | | `operates` | person or organization | system | A source says this party runs that system | | `resolves-to` | designator | designator | A public resolution for the interval observed | | `follows` | handle | handle | A public page shows one account following another | | `supplies` (**Y2 profile**) | organization | organization | The first supplies goods or services to the second | | `subsidiary-of` (**Y2 profile**) | organization | organization | The first is owned or controlled by the second | `same-as` and `distinct-from` never merge rows. When both are live for a pair, the pair is contested. ## Verification ladder Verification belongs to a claim, not to a subject. | State | Honest use | Evidence the ledger requires | | --------------- | -------------------------------------------- | --------------------------------- | | `unverified` | Written down, not checked | At least one observation | | `mentioned` | The string appeared without a supported link | A public retrieval | | `located` | One retrieved page ties them | A public retrieval | | `self-asserted` | The subject's own page states it | A public retrieval | | `cross-linked` | Two retrieved pages identify the link | Retrievals of two different pages | | `corroborated` | A further independent source agrees | Retrievals of two different pages | | `contradicted` | A source disputes the link | A public retrieval | | `stale` | The page is gone or no longer shows it | A public retrieval | | `analytic` | The only support is an analyst note | Only analyst notes | A claim supported only by notes is `analytic` or `unverified`. ## Source grades | Grade | Meaning | | ----------- | ----------------------------------------------------------------- | | `primary` | A direct source, such as a profile, staff page, or registry entry | | `secondary` | The page reports on the thing | | `analytic` | An analyst note that cites the observations it connects | --- # Tutorial: Read a Company Ledger (https://y2.dev/docs/ontology/tutorial/) Ontology & Fusion # Tutorial: Read a Company Ledger Check a supplied example, inspect its supplier claim, and produce a STIX bundle locally. This lesson uses the repository's fictional company ledger. You will check its records, inspect a supplier claim, and produce a STIX bundle. The commands run locally and do not require a Y2 account or API key. ## Before you begin You need a checkout of the Y2 platform repository, Bun, and jq. Run each command from the repository root in the same shell. The fixture is already supplied in `packages/ontology/v0/examples`. Its companies, identifiers, and source URLs are fictional. ### Check the supplied ledger Set the fixture path: ``` ledger_fixture=packages/ontology/v0/examples/fictional-cyber-market.ndjson ``` Run the checker: ``` bun packages/ontology/src/cli.ts check "$ledger_fixture" ``` Expected output: ``` packages/ontology/v0/examples/fictional-cyber-market.ndjson: ok (22 lines) ``` The checker accepts all 22 records, their hashes, and their chain links. ### Read the current claims A fold computes the current view from the recorded claims. Run this command to count the subjects and claims: ``` bun packages/ontology/src/cli.ts fold "$ledger_fixture" \ | jq '{subjects: [.subjects[].subject.id], claims: (.claims | length)}' ``` Expected output: ``` { "subjects": ["sbj_issuer", "sbj_supplier", "sbj_portal"], "claims": 9 } ``` The subjects represent the company, its supplier, and its portal. ### Inspect the supplier claim Select the claim with the `supplies` predicate: ``` bun packages/ontology/src/cli.ts fold "$ledger_fixture" \ | jq '.claims[] | select(.predicate == "supplies") | {from, to, verification, evidence_refs}' ``` Expected output: ``` { "from": "sbj_supplier", "to": "sbj_issuer", "verification": "located", "evidence_refs": ["obv_filing"] } ``` The direction runs from the supplier to the company. The claim cites `obv_filing` as its evidence. Its `located` state means that a retrieved page supports the link. ### Produce the STIX relationship Project the ledger to STIX 2.1: ``` bun packages/ontology/src/cli.ts stix "$ledger_fixture" --scope tutorial \ | jq '.objects[] | select(.type == "relationship" and .relationship_type == "supplies") | {relationship_type, confidence}' ``` Expected output: ``` { "relationship_type": "supplies", "confidence": 70 } ``` The STIX relationship preserves the supplier predicate and the claim's confidence. The export does not add new evidence. ## Continue with your own research - [Record a claim with evidence](https://y2.dev/docs/ontology/how-to/record-evidence) in your workspace. - [Read a previous ledger state](https://y2.dev/docs/ontology/how-to/read-at-a-point-in-time). - [Export a workspace ledger](https://y2.dev/docs/ontology/how-to/export-and-verify). - [Understand cyber-market fusion](https://y2.dev/docs/ontology/explanation/cyber-market-fusion). --- # Use the Situation Room (https://y2.dev/docs/osint/) Situation Room # Use the Situation Room Select map layers, inspect observations, and check source coverage. The Situation Room shows events, tracking data, financial indicators, and reference maps. Access requires a Lite, Pro, or Elite workspace. ## Open the monitor 1. Open **Situation Room** in the signed-in app. 2. Select the 3D globe or 2D map. Select the default or satellite basemap. 3. Choose **1H**, **6H**, **24H**, **48H**, **7D**, or **ALL**. The default is 24 hours. 4. Select layers in the left sidebar. Press `L` outside a text field to toggle the sidebar. 5. Select a marker to read its source and details. New users start with all registered layers selected. Y2 saves later layer changes. Select a marker group to inspect its observations. Several observations can share one location. Select a country boundary to open its [country card](https://y2.dev/docs/osint/country-cards). Press `Escape` to close the card. ## Understand the map controls ### Time range The time range filters event markers, including earthquakes, conflicts, fires, and Y2 report events. It does not change static infrastructure into historical data. Tracking layers have separate expiry rules. ### Regions and theaters Select a header view to move the map. The selection does not change enabled layers. | View group | Options | | ---------- | ------------------------------------------------------------------------ | | Geographic | Global, MENA, Africa, Latin America, Asia-Pacific, Europe, North America | | Thematic | Energy & Resources, Government / Policy | The desktop **Theater Intel** panel reads regional headlines separately from visible map markers. ### Loading and refreshing observations The monitor loads matching stored events for the visible area, time range, and layers. The count increases until all matching pages have loaded. Move beyond the loaded area to load new coverage. Completed selections refresh after five minutes. Select **Refresh now** for an earlier update. Select **Retry loading** if loading stops. A failed refresh keeps the previous completed map visible. Completion confirms that matching stored events loaded. Upstream collection can still be delayed or incomplete. ### Location and cursor context The desktop header can request your browser location to center the map. Y2 requests this location only when you select the control. The **API Query** tool can use the selected marker, cursor, region, and time range. ## Layer registry The registry contains 27 selectable entries in seven groups. | Group | Entries | | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Y2 Intel | Y2 Report Events | | Events | Earthquakes, Conflicts, Political Events, Economic Events, Weather & Climate, Health & Pandemic, Cyber Threats, Maritime Events, Satellite Fires, Military Aviation | | Network Intel | Live Malware | | Space | All Satellites, Starlink / Comms, Military / Intel, GPS / Navigation, Earth Observation, Stations / Telescopes | | Surveillance | CCTV Cameras | | Infrastructure | Undersea Cables, Nuclear Facilities, Ports & Chokepoints | | Military | Aircraft Tracks, Naval Vessels, GPS Interference, Conflict Zones, Military Bases | **All Satellites** and its five subtypes are related controls. The entry count does not represent independent providers. Reference layers can require a closer zoom. CCTV streams can be unavailable at their source. ## Current tracking status The tracking widget appears when tracking data or an aircraft collection timestamp is available. Check [source schedules and limits](https://y2.dev/docs/osint/sources#military-and-navigation-tracking) before interpreting an empty layer. Aircraft collection is disabled Scheduled aircraft collection has been disabled since May 8, 2026. An empty Aircraft Tracks layer does not prove that no aircraft are present. ## Country cards Country cards combine scores, briefs, events, infrastructure, news, markets, and stock indices. Each section has separate coverage and refresh rules. See [Country Intelligence Cards](https://y2.dev/docs/osint/country-cards) for limits and export contents. ## Desktop analysis panels ### Right-side tool rail | Tool | Use | | -------------- | -------------------------------------------------------------------------------- | | Intel Findings | Find countries or regions with a rising instability index | | Network Intel | Inspect malware infrastructure, indicators, and related entities | | Search | Enter at least two characters to find entities and open their relationship graph | | API Query | Build request URLs and curl commands from the current map context | API requests still require authentication. New scoped API keys require Pro or Elite. ### Bottom dock - **Live media:** eight YouTube news channels, initially muted. - **Theater Intel:** regional events, with retry controls for failed requests. - **FININT:** market, energy, and macro indicators. These panels are hidden on small screens. The map, layers, markers, cameras, tracking status, and country cards remain available. ## Data and source health Select **Sources** in the header to review collection times, failures, and dataset notes. A live interface does not mean that every provider supplies a continuous stream. See [Intelligence Sources](https://y2.dev/docs/osint/sources) for schedules and health states. ## Entitlements and unfinished management surfaces Lite, Pro, and Elite permit up to 50 selected layers. The monitor does not provide watchlist or alert-rule management screens. See [Plans and Limits](https://y2.dev/docs/plans) for workspace and API access. ## Related pages - [Intelligence sources](https://y2.dev/docs/osint/sources) - [How intelligence data is processed](https://y2.dev/docs/osint/data-infrastructure) - [Country intelligence cards](https://y2.dev/docs/osint/country-cards) - [OSINT API](https://y2.dev/docs/api/osint) --- # Country Intelligence Cards (https://y2.dev/docs/osint/country-cards/) Situation Room # Country Intelligence Cards Reference for country scores, briefs, news, infrastructure, and text exports. Country cards combine observations, instability scores, news, markets, and infrastructure. They require Situation Room access on Lite, Pro, or Elite. ## Open a country card 1. Open **Situation Room**. 2. Select a country boundary. 3. Select **Close**, select the backdrop, or press `Escape` to close the card. The card reads country data independently of enabled map layers and the map time range. ## How the card assembles data The selected boundary identifies a country by its two-letter code, such as `SA` for Saudi Arabia. Signals, the timeline, and brief context use up to 100 recent, unexpired country observations. News uses a separate query. Curated country profiles supply fallback scores and a center point for infrastructure distances. Other recognized countries can still show observations and feeds. Coverage can differ between sections. ## Read the instability section The ring uses the country's Conflict Indicators Index (CII), when available. The component breakdown uses country values or curated fallbacks. | Component | Meaning | | ------------ | ------------------------------------------- | | Civil unrest | Political and social instability | | Conflict | Conflict activity from country event counts | | Security | Security risk | | Information | Information environment | Without a CII value, the ring averages the four fallback components equally. Without either source, the displayed fallback is zero. | CII value | Ring color | Status | | --------- | ---------- | -------- | | 0 to 34 | Green | NORMAL | | 35 to 64 | Amber | ELEVATED | | 65 to 100 | Red | CRITICAL | Without CII, the status uses the curated default, or `NORMAL` if none exists. A fallback is not a risk assessment A zero fallback or NORMAL default does not establish that the country has no risk. ## Interpret signals and the timeline **Active Signals** counts returned observations by category. The **7-Day Timeline** uses observations from the last seven days in four lanes. | Lane | Event categories | | -------- | ---------------------------- | | Protest | `political` | | Conflict | `conflict` | | Natural | `seismic`, `weather`, `fire` | | Military | `maritime`, `aviation` | Economic, health, and cyber observations can appear in Active Signals without a timeline lane. The 100-observation limit can omit older events, including events within seven days. ## Read the intelligence brief If no unexpired brief exists, Y2 schedules one. The brief uses the country name, code, available CII value, observation count, and first 10 observation titles. The requested output has five sections: current situation, military and security posture, risk factors, regional context, and outlook. Briefs expire after two hours. Changing map filters does not force a new brief while the current one remains valid. Verify the brief against its sources The AI brief uses limited context. Check linked source records before acting on its conclusions. ## Country feeds ### Top News The card shows up to eight recent, unexpired articles or report observations. Eligible sources include RSS, GDELT, ACLED, News Terminal, and Y2 reports. Seismic and weather categories are excluded. Duplicate articles are removed for display. Country selection uses geographic attribution. A Saudi pipeline story can appear under Saudi Arabia. An event on Mayun Island belongs under Yemen. A regional story that mentions a country does not automatically qualify as a local event. Opening a card reads stored news. It does not start a new web search. The [News Signal Feed](https://y2.dev/docs/news) can include regional articles excluded from a country card. Select a headline to open its source. Select **Try again** after a query failure. **No recent news** means no eligible records were returned. It does not establish that no event occurred. The [country-news API](https://y2.dev/docs/api/osint#read-country-news) returns canonical observations with public IDs. Its record count can differ from the card's deduplicated headline count. ### Prediction markets The card shows up to five unexpired Polymarket or Kalshi contracts tagged with the selected country. Results are sorted by trading volume. They include probability, volume, available liquidity and end date, and a provider link. ### Stock index For 45 configured countries, the card requests a primary national index from Yahoo Finance. The change compares the latest close with the close five trading observations earlier. Results expire after one hour. Unsupported countries or provider failures leave the indicator hidden. ## Infrastructure exposure The card lists the three nearest records from each registry: military bases, nuclear facilities, and strategic ports or chokepoints. Distance is measured from the country's configured center point. Results are not filtered by borders, affiliation, or map layers. Nearby infrastructure does not establish ownership or presence inside the country. ## Download the dossier Select the download icon to save `y2-intel-{iso3}-{YYYY-MM-DD}.txt`. The UTF-8 file contains the scores, counts, and other card data available when you select download. It is a snapshot of the displayed data. There is no separate PDF or print command. ## Keyboard shortcuts | Key | Action | | -------- | ---------------------------------------------------- | | `Escape` | Close the country card | | `L` | Toggle map layers when focus is outside a text input | ## Related pages - [Use the Situation Room](https://y2.dev/docs/osint) - [Source schedules and health](https://y2.dev/docs/osint/sources) - [How intelligence data is processed](https://y2.dev/docs/osint/data-infrastructure) --- # CVE disclosures (https://y2.dev/docs/osint/cve-disclosures/) Read public vulnerability disclosures, trace their sources, and investigate affected software in Cyber. Y2 connects public vulnerability disclosures to the CVE, vendor, and software entities in the Cyber ontology. Open **Cyber → CVEs** to browse the catalog, filter it, inspect source assessments, or investigate related entities. ## Public pages and sharing Each collected CVE has a public URL such as [/cve/CVE-2021-27460](https://y2.dev/cve/CVE-2021-27460). It renders the disclosure and social preview metadata without requiring JavaScript or sign-in. The disclosure includes source-specific CVSS assessments, affected versions, fixes and workarounds, CISA KEV, dated EPSS and SSVC assessments, references, and collection provenance when those fields are available. The share preview uses the same disclosure revision as the page. Copy the public link from a Cyber disclosure, share it through the native share sheet when available, or save its PNG card. Card URLs include a disclosure revision and template version. An unknown revision returns a missing-record response. Unscored vulnerabilities are available under **All severities** or **Unscored**, and by exact CVE ID. An absent patch or exploit indicator means that the collected sources do not report it. It does not establish that no patch or exploitation exists. Rejected CVEs display their assigning authority's rejection and retain historical revisions. ## Machine-readable disclosures Public disclosure representations do not require an API key: | URL | Representation | | ---------------------------------------------------------- | ----------------------------------------------------------------- | | `/cve/CVE-2021-27460.json` | Current normalized disclosure | | `/cve/CVE-2021-27460.md` | Markdown disclosure | | `/cve/index.json?cursor=…` | Bounded, paginated public index | | `/cve/index.md?search=2021&limit=25` | Markdown catalog with the same filters and pagination | | `/cve/agent.json` | Public access, WebMCP tools, and Cyber API authentication details | | `/cve/feed.xml` | Recent updates as an Atom feed | | `/cve/status.json` | Collection progress and source freshness | | `https://api.y2.dev/public/cves/CVE-2021-27460?revision=…` | An immutable disclosure revision | The catalog and individual disclosure HTML routes also support `Accept: text/markdown`. The public index returns `items` and `nextCursor`; a null cursor marks the end. The backend collection at `https://api.y2.dev/public/cves` accepts `limit` from 1 to 100. Use `search=2021`, `search=CVE-2021-27460`, or keywords such as `search=FactoryTalk`. Search includes vendor, product, package and disclosure text. Text results are ordered by relevance; ID prefixes by identifier. An exact CVE ID bypasses filters. The page and WebMCP default to **Critical and High**, with the latest source updates first. Select **All severities** to include lower scores and unscored records, or **Highest CVSS score** to prioritize severity. The unfiltered JSON and Atom endpoints include all severities. | Parameter | Values | | ------------- | ------------------------------------------------------------------------------- | | `severity` | `all`, `critical-high`, `critical`, `high`, `medium`, `low`, `info`, `unscored` | | `remediation` | `any`, `fix_published`, `workaround_published`, `unknown` | | `kev` | `any`, `true` (CISA known exploited) | | `sort` | `updated`, `cvss` (when no search is supplied) | Keep the search, filters, sort, and limit unchanged when following `nextCursor`. A bounded scan may return a short page with a continuation cursor; follow it to continue. The table supports 25, 50, or 100 rows and resets pagination immediately when controls change. Its CVSS, fix status, KEV, dated EPSS and source counts come from the same normalized disclosure as the detail page. `publishedAt` is the original source date; `modifiedAt` is the source update time. Neither substitutes a collection date for an unknown source date. These representations contain attributed public source data. Private workspace notes, investigations, watch subscriptions, and internal entity identifiers are excluded. The existing Cyber API also serves these disclosures. Search `GET /api/v2/cyber/cves` for compact summaries linked to stable ontology entity IDs. Add `catalog=true` with `q`, `severity`, `remediation`, `kev`, and `sort` for the same collected catalog, filters and ordering. Without catalog parameters, the existing full ontology entity listing remains available. Then read `GET /api/v2/cyber/cves/{cveId}` for the full record. Add `revision=` for a retained revision. Both endpoints use the `intel:cyber` scope or the documented x402 flow. See the [Intel API guide](https://y2.dev/docs/api/intel#read-cve-disclosures) and [detail reference](https://y2.dev/docs/api/reference/intel/getCVEDisclosureV2). ## Copy and agent access Choose **Copy Markdown** at the top of the catalog or a disclosure. Catalog copies retain the current search, filters, sort, page size, and cursor; disclosure copies retain a requested revision. Choose **Open → View as Markdown** to open the same text directly when clipboard access or JavaScript is unavailable. The Open menu also includes JSON and agent/API access. Compatible browsers expose native WebMCP tools on both pages: | Tool | Purpose | | ------------------------ | ----------------------------------------------------------------------------- | | `search_cve_disclosures` | Search and filter a bounded page with scores, fix status, KEV, EPSS and dates | | `get_cve_disclosure` | Read current or retained disclosure JSON or Markdown | | `get_cve_page_markdown` | Read the current page's Markdown with its active filters | | `get_y2_cve_access` | Discover public access and the Cyber API authentication options | These tools read public data without credentials or payment. They do not access private workspaces or initiate paid requests. Attributed source content remains untrusted data. Browsers without WebMCP can use the advertised Markdown, JSON, and [agent access metadata](https://y2.dev/cve/agent.json) links. For the ontology-linked Cyber API, use either: - **Y2 Pro or Elite:** a workspace owner or admin can [create an API key](https://y2.dev/docs/api/create-key) with the `intel:cyber` scope. Send it as a bearer token from a trusted agent runtime; plan quotas apply. - **x402:** omit bearer authentication, read the endpoint's HTTP 402 payment challenge, and use an authorized payment client to sign and retry. Read the current payment requirements instead of hard-coding a price or recipient. See the [x402 guide](https://y2.dev/docs/api/x402). ## Watches and package checks Save a CVE watch to receive an in-app alert when its disclosure changes. Product watches can narrow the vendor, product, and installed version. Source-specific version rules and conditional NVD configuration statements are preserved; uncertain matches are labeled for review. The package checker accepts exact package versions and supported npm or Bun text lockfiles. Lockfiles are parsed locally. Only the package names, ecosystems, and versions submitted for checking are sent to OSV. The checker shows advisory identifiers, CVE/GHSA aliases, affected ranges, and fixes returned by that source. Your submitted inventory is not stored by Y2. An empty result is limited to the submitted packages and the provider's response. Unsupported entries, omitted records, response limits, and incomplete advisory details are shown explicitly. A package match does not establish that vulnerable code is reachable in your deployment. ## Collection and ontology Primary CVE List records supply CNA and ADP disclosures. NVD contributes secondary assessments and CPE configurations; CISA KEV supplies exploitation-based priority; FIRST EPSS supplies dated exploitation probabilities. The primary authority's assessment leads the disclosure, while other source assessments remain visible. KEV membership does not overwrite technical CVSS severity. GitHub advisory references from the primary record can add OSV package ranges and fix events after their CVE aliases are verified. An advisory missing from OSV leaves that enrichment partial; it does not invalidate the original disclosure. Public GitHub repository advisory endpoints supply verified patched versions even when the global GitHub advisory database or OSV has not indexed them. The collector verifies the CVE/GHSA identity, honors withdrawals, rejects malformed or directly contradictory patch fields, and uses a rate-bounded refresh queue. A failed fetch retains the last verified source and records partial coverage. **Fix reported** means a source explicitly reports a patch or patched version; it does not establish that every affected branch is fixed or an installation has been upgraded. A version upper bound alone is not patch evidence. Source updates atomically update the disclosure, catalog, CVE summary and current ontology evidence. Older primary-provider responses cannot overwrite newer source state. Meaningful source changes produce immutable revisions. Re-fetching unchanged data does not rebuild the ontology graph. Existing CVE identities are reused, affected vendor/software links retain source evidence, and rejected or corrected assertions retire the links owned by those disclosures. The collection status distinguishes incremental synchronization, historical baseline progress, legacy projection, and EPSS refresh. A successful delta fetch does not imply complete historical coverage. Historical imports use a pinned official snapshot, bounded batches, and a resumable checkpoint. The source status describes collection attempts and their recorded progress. Check the baseline's processed and expected counts separately before relying on historical coverage. The `osv-referenced` and `ghsa-referenced` status items identify their latest attempted CVE in `cveId`. Their progress counts and freshness timestamps describe that CVE's referenced advisories, not the entire catalog. A partial or failed attempt retains only that CVE's previous successful timestamp; success for another CVE does not make it fresh. Other source items return `cveId: null`. --- # How Intelligence Data Is Processed (https://y2.dev/docs/osint/data-infrastructure/) Situation Room # How Intelligence Data Is Processed Understand source identity, evidence, and retention across Y2 views. Y2 separates events, tracking data, and reference maps. Each has its own identity, refresh interval, and retention period. This explains differences between map results, source health, search, and API responses. ## Architecture at a glance | Data group | Examples | | --------------------------- | ----------------------------------------------------------------------------- | | Events | Earthquakes, fires, alerts, threat indicators, news, report findings | | Tracking and financial data | Aircraft, vessels, GPS interference, prediction markets, financial indicators | | Reference maps | Bases, facilities, cables, satellite anchors, CCTV locations | Reference maps can remain visible without a recent provider request. Their presence does not establish source health or freshness. ## From provider response to observation Y2 checks source availability before collection. Repeated failures pause requests to that source. Other sources continue independently. Collected records receive common fields for time, location, category, severity, and source. Where sufficient context exists, Y2 links them to entities, places, and incidents. A record can remain available without every link. A later collection normally updates the observation with the same provider identity. For News RSS, a reused publisher identifier with a different article URL creates a separate observation. The original article and its evidence links remain intact. ## Observation and ontology model An observation can contain: - The provider identifier, source URL, and original metadata. - Event time, collection time, and expiry. - Category, severity, coordinates, region, and country. - A provenance tier: `primary`, `derived`, or `synthesized`. - A time classification: `ongoing`, `past`, `forecast`, or `analysis`. - Links to a source, place, entity, or incident. The ontology connects these observations through shared identities and evidence. ### Identity keys and safe deduplication Names, aliases, and provider identifiers help Y2 find an entity. They are separate from its stable identity. A shared name does not authorize a merge. Conflicting ownership remains separate for review. ### Resolving name variants Names such as `US Department of Defense` and `United States Department of Defense` can identify the same organization. Y2 applies identity checks before linking such mentions. - Evidence requirements depend on the entity kind. - Both candidate orders must produce a qualifying match. - Higher-risk kinds also require an independent model check. - Conflicting provider identifiers block a match. - A reviewer rejection cannot be overridden by a later model decision. - CVEs and indicators use exact identifiers only. Uncertain matches remain separate. Reviewed merges retain a redirect and can be reversed. ### Country attribution and regional exposure Country views use the event's geographic attribution. Headline locations and specific places help determine that attribution. Mentioned countries and regional exposure are separate context. They do not make an event local to every affected country. A News feed item might not yet have an eligible country observation. The [News feed](https://y2.dev/docs/news) and [country news](https://y2.dev/docs/osint/country-cards#top-news) can therefore show different results. ## Agent Y2 signals Y2 can extract observations from completed reports and intelligence research. These records can support graphs, evidence links, search, and other intelligence views. They do not guarantee that later reports use all earlier observations. ## Freshness and retention | Data | Retention or refresh behavior | | ------------------------------------ | ---------------------------------------------------------- | | Most provider observations | Seven-day expiry, with hourly cleanup | | Aircraft tracks and GPS interference | 30-minute expiry | | Naval vessel positions | 24-hour expiry | | Stock index results | One-hour expiry | | Prediction markets | Two-hour cache expiry, with separate market-status updates | | Financial indicators | Provider-dependent, from two hours to 45 days | | Inactive incidents | Resolved after seven days without observations | Report, discovery, and expansion observations are excluded from normal temporary-observation cleanup. Other evidence records can depend on them. A cache is not an archive Map and API results contain records still available in their storage path. Save required API results in your own store if you need a durable history. ## How the app reads the data Map events, tracking layers, country cards, and source health use separate queries. They can update at different times. A healthy source can have an empty layer after its records expire. A reference map can remain visible without any recent collection. ## Related pages - [Source schedules and health](https://y2.dev/docs/osint/sources) - [Use the Situation Room](https://y2.dev/docs/osint) - [Country intelligence cards](https://y2.dev/docs/osint/country-cards) --- # Look Up a Domain's DNS Footprint (https://y2.dev/docs/osint/dns-explorer/) Situation Room # Look Up a Domain's DNS Footprint Map a domain's hosts, addresses, and networks in Cyber DNS Explorer and keep each dated snapshot. DNS Explorer shows the public DNS records of a domain and the networks that host its addresses. Y2 keeps each answer as a dated snapshot and adds it to the shared ontology. See [DNS footprints in the graph](https://y2.dev/docs/ontology/explanation/dns-footprints) for how snapshots become entities. ## Before you begin - Use a Pro or Elite workspace. See [Plans and Limits](https://y2.dev/docs/plans#situation-room-and-intel-workspaces). - A new snapshot uses one lookup from the workspace's monthly allowance. Pro includes 5. Elite includes 1,000. - A snapshot younger than 14 days opens without a lookup. - To save the domain to a Project, you need Explorer access and edit access to the Project. Snapshots are shared Every workspace receives the same snapshot of a domain for 14 days. Snapshot history shows when a domain was looked up. It does not show the workspace or person. Your list of recent lookups stays in your workspace. ## Look up a domain 1. Open **Cyber** in the signed-in app. 2. Select **DNS Explorer**. 3. Enter a domain, such as `example.com`. 4. Select **Look up**. Y2 removes a scheme, path, port, and leading `www.` from the entry. A new snapshot can take several seconds because Y2 paces requests to the provider. The page shows **Captured** with the capture time, the footprint map, and the record tables. **Mapped to the ontology** appears after Y2 adds the snapshot to the graph. If a snapshot from the last 14 days exists, it opens and the allowance does not change. The line under the field shows the lookups left in the current UTC month. ## Read the footprint The map starts at the domain and connects to one hub for each record type. Each host connects to the addresses that it resolves to. Addresses appear in groups under the network operator (ASN) that announces them, with their netblock. Move the pointer over a host to highlight its addresses. The tables list **Hosts (A)**, **Mail (MX)**, **Name servers**, **TXT**, and **CNAME** records. Address cells show reverse DNS and the HTTP and TLS banners that the provider reported. | Badge | Meaning | | ------------------------------------- | ------------------------------------------------------------ | | **Free-tier cap** | The provider has more A records than the 50 that it returned | | **Changed since previous snapshot** | The records differ from the previous snapshot of the domain | | **Unchanged since previous snapshot** | The records match the previous snapshot of the domain | ## Compare snapshots **Snapshot history** appears when a domain has two or more snapshots. Select a date to open that snapshot. **Changed** marks a snapshot whose records differ from the snapshot before it. Y2 takes a new snapshot only after the latest snapshot is 14 days old. ## Add the domain to a Project 1. Select **Open in Explorer** in the snapshot header. 2. Select **Add to Project** in Explorer. 3. Choose the Project in **Save graph to a Project**. Open the Project's **Graph** to check that the domain is present. If Y2 records a company whose official website is the domain, the header shows **_Company_ operates this domain**. Select it to open the company in Explorer. ## Troubleshoot a lookup | Message | Action | | ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- | | Enter a domain name, not an IP address. | Enter a registered domain name. DNS Explorer does not accept IP addresses | | Reserved and internal domains cannot be looked up. | Enter a public domain. Names that end in `.local`, `.internal`, `.test`, or `.example` are rejected | | This workspace has used its 5 DNS lookups for _month_. | Open domains with a snapshot from the last 14 days. The allowance resets at the start of the next UTC month | | DNS lookups have reached today's limit. | Try again after midnight UTC | | DNSDumpster is unavailable right now. | Try again later. A failed lookup does not use the allowance | | Ontology mapping failed | The records on the page are complete. Contact with the domain and capture time | [DNS footprints in the graph](https://y2.dev/docs/ontology/explanation/dns-footprints) [Look up DNS footprints with the API](https://y2.dev/docs/api/intel#look-up-dns-footprints) [Plans and Limits](https://y2.dev/docs/plans#situation-room-and-intel-workspaces) --- # Intelligence Sources (https://y2.dev/docs/osint/sources/) Situation Room # Intelligence Sources Reference for providers, collection schedules, coverage, and source health. Situation Room data includes provider feeds, Y2 observations, and reference maps. Each source has its own collection schedule and coverage limits. ## Inspect source status Open **Situation Room**, then select **Sources**. Runtime feeds show collection status, last success, failure count, and available error details. Reference maps have no equivalent collection-health record. A successful request does not prove that all source records are recent or complete. ## Scheduled upstream feeds Times are UTC. These schedules describe collection attempts, not guaranteed provider updates. | Source | Data | Collection schedule | | ------------------------- | -------------------------------------------------------------------- | -------------------------------- | | USGS | Earthquakes | Hourly at :05 and :35 | | GDACS | Disaster alerts | Hourly at :05 and :35 | | NASA EONET | Natural events | Hourly at :05 and :35 | | OSINT RSS | Headlines from 24 feeds | Hourly at :07 and :37 | | NASA FIRMS | Fire detections in configured regions | Hourly at :10 and :40 | | Polymarket | Prediction markets | Every 15 minutes | | Kalshi | Prediction markets | Hourly at :24 and :54 | | URLhaus and Feodo Tracker | Malware URLs and control infrastructure | Hourly at :12 and :42 | | NVD | CVE changes | Every 6 hours at :15 | | CISA KEV | Exploited vulnerabilities | Daily at 04:20 | | FRED | Macroeconomic indicators | Hourly at :14 and :44 | | Yahoo Finance markets | Market, commodity, currency, crypto, rate, and volatility indicators | Hourly at :04, :19, :34, and :49 | | EIA spot series | WTI, Brent, and Henry Hub | Hourly at :21 | | EIA release series | Weekly and monthly energy data | Daily at 14:30 | | EIA nuclear outages | Facility outage snapshot | Daily at 14:45 | | EIA grid load | Six US balancing authorities | Hourly at :33 | | EIA crude imports | Monthly data by port | First day of each month at 15:45 | | USNI Fleet Report | Vessel positions | Daily at 06:20 | ## Map result coverage The monitor loads all matching stored event observations for the area, time range, and layers. It loads pages automatically. A page can contain 500 records, but this is not the total result limit. A completed scan confirms that stored results loaded. It does not establish complete provider coverage. Tracking, market, malware, and reference layers have separate queries and refresh rules. See [map loading controls](https://y2.dev/docs/osint#loading-and-refreshing-observations). ## Hazards and earth observation ### USGS earthquakes USGS supplies global earthquakes of magnitude 2.5 or greater. Records include magnitude, depth, location, time, and the provider's tsunami indicator. ### GDACS disasters GDACS supplies disaster alerts for earthquakes, cyclones, floods, volcanic events, and droughts. ### NASA EONET natural events EONET supplies storms, fires, volcanic activity, and other natural events. Records with suitable locations and categories can appear in weather and fire views. ### NASA FIRMS fires FIRMS collection covers nine configured regions. Y2 requests today's and yesterday's detections from Suomi-NPP VIIRS, NOAA-20 VIIRS, NOAA-21 VIIRS, and Terra/Aqua MODIS. Low-confidence detections are excluded. Acquisition times use UTC. Source health reports partial collection failures. New or changed detections remain for seven days after collection. An identical repeat does not extend retention. Requests do not recover older gaps or cover areas outside the configured regions. A thermal detection does not establish conflict activity or its cause. ## OSINT RSS headlines The map uses 24 RSS feeds, separate from the 40-topic [News Signal Feed](https://y2.dev/docs/news/topics). ### Regional - Al Jazeera, Middle East Eye, and Al Monitor - BBC Africa and AllAfrica - BBC Latin America, InSight Crime, Mexico News Daily, and Reuters Americas - BBC Asia and South China Morning Post - BBC Europe and EUobserver ### Global - BBC World - New York Times World - Reuters World ### Thematic - OilPrice - BleepingComputer and The Hacker News - WHO News, WHO Disease Outbreaks, ProMED-Mail, ReliefWeb Health, and CDC MMWR Category and severity depend on source defaults and headline or description keywords. Location and incident links require sufficient geographic context. RSS health covers the group RSS collection counts as successful when at least one feed succeeds. A healthy RSS status does not establish that all 24 feeds were available. ## Cyber intelligence | Source | Data | Coverage limit | | ------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | URLhaus | Malware URLs and related hosts | Each collection has a record limit | | Feodo Tracker | Botnet control IP addresses and hosts | Collected through the same processing queue as URLhaus | | NVD | Changed vulnerability records | Change collection does not load the full historical catalog | | CISA KEV | Vulnerabilities known to be exploited | Exploitation status is separate from severity | | DNSDumpster | DNS records, network operators, netblocks, and banners for one domain | On request only. Up to 50 A records per domain. One snapshot per domain every 14 days | URLhaus and Feodo support Live Malware and Network Intel. NVD and CISA KEV also support Cyber views. DNSDumpster supports [DNS Explorer](https://y2.dev/docs/osint/dns-explorer). Y2 collects it only when a Pro or Elite workspace looks up a domain. In-app Cyber is available on Free. Situation Room requires Lite or higher. New scoped API keys require Pro or Elite. ## Markets and financial intelligence ### Prediction markets Polymarket and Kalshi provide market questions, probabilities, volume, and other available metadata. Country associations use provider metadata and text matching. Probability is a market price A market probability is not a verified forecast or Y2 confidence score. Check liquidity, resolution terms, end date, and the provider link. ### FININT feeds The desktop FININT panel groups indicators into Markets, Energy, and Macro. Its FRED, Yahoo Finance, and EIA collection schedules appear above. Country stock indices use a separate Yahoo Finance lookup when requested. Those results are cached for one hour. See [country stock indices](https://y2.dev/docs/osint/country-cards#stock-index). In-app FININT requires Lite, Pro, or Elite. New `intel:finint` keys require Pro or Elite. Existing Lite keys can retain compatibility limits while the workspace remains on Lite. ## Military and navigation tracking ### Aircraft Tracks Military aircraft positions come from the [adsb.lol](https://www.adsb.lol/) community ADS-B network, published under ODbL 1.0. One request every 15 minutes returns every aircraft the ADS-B database flags as military; Y2 classifies the type and assigns the smallest enclosing theater. Tracks are overwritten in place and expire 30 minutes after collection, so positions stay ephemeral; only bombers, AWACS, reconnaissance aircraft, and emergency squawks become durable observations. The `adsblol` health card reports the feed. ### GPS Interference GPS interference collection is paused. The Wingbits feed that supplied interference zones was retired on October 26, 2026, and no replacement is connected yet. The map layer is off by default, the `/gps-jamming` API operation returns an empty collection with `sourceStatus: unavailable`, and no health card reports the feed. An empty layer does not establish that interference stopped. ### Naval Vessels USNI-derived vessel positions are collected daily and expire after 24 hours. Records can include class, status, region, strike group, and confidence. The source is a fleet report, not a live vessel-position stream. ## Internal and recognized source types | Source type | Meaning | | ------------------------------------ | ----------------------------------------------------------------- | | `y2_report` | Observations extracted from Y2 reports | | `intel_discovery`, `intel_expansion` | Observations from Y2 intelligence research | | `manual` | Operator-entered observations | | `acled`, `gdelt`, `opensky` | Recognized identifiers without a current scheduled collection job | A source card alone does not establish active collection. ## Reference overlays and media Reference maps include satellite category anchors, cable routes, ports, bases, facilities, and CCTV locations. Satellite anchors do not provide live orbital positions. The desktop media panel uses eight YouTube news channels. Reference maps can age independently of feed health. Check important ownership, location, and operating-status details against primary sources. ## Normalization and retention Y2 maps provider fields to common observations or specialized tracking and market records. Where available, records retain source identifiers and evidence links. See [data processing and retention](https://y2.dev/docs/osint/data-infrastructure) for identity and expiry rules. ## Interpret circuit-breaker state | State | Meaning | | --------- | ----------------------------------------------------------------------------- | | Pending | No collection result has been recorded for this source | | Closed | Requests are allowed. Up to four consecutive failures can still be present. | | Open | At least five consecutive failures paused requests for a five-minute cooldown | | Half open | A probe request can close the circuit on success or reopen it on failure | After cooldown, Y2 permits another request. Success resets the failure count and last error. Failure keeps the circuit open. Health describes collection behavior, not the accuracy or completeness of the data. ## Related pages - [Use the Situation Room](https://y2.dev/docs/osint) - [How intelligence data is processed](https://y2.dev/docs/osint/data-infrastructure) - [Country intelligence cards](https://y2.dev/docs/osint/country-cards) - [OSINT API](https://y2.dev/docs/api/osint) --- # Plans and Limits (https://y2.dev/docs/plans/) Reference for Y2 workspace plans, feature availability, and enforced limits. Y2 resolves feature access and quotas from the active workspace. Switching workspaces can change the features available in the app and API even when the same person is signed in. Active workspace controls access Workspaces have separate plans, resources, API keys, and usage. Confirm the active workspace before troubleshooting a missing feature or unexpected limit. ## Pricing and workspace model | Plan | Price | Workspace | Best fit | | ----- | ------------------------- | ---------------------------- | -------------------------------------------------------------------- | | Free | Free | 1 seat | Follow one community profile | | Lite | $5/month or $50/year | 1 seat | Ongoing in-app intelligence and webhook delivery | | Pro | $20/month or $200/year | 1 seat | Scheduled delivery, API integrations, audio, and advanced publishing | | Elite | $200/month or $2,000/year | 5 seats, including the owner | Shared intelligence operations with governance controls | Workspace allowances are shared. Additional seats do not multiply them. Larger Elite seat allowances are available by arrangement. Situation Room coverage, refresh frequency, and retention are the same across paid plans. ## Projects and Automations | Capability | Free | Lite | Pro | Elite | | ------------------------------------------------ | ---- | ---- | -------- | --------- | | Private Projects | No | Yes | Yes | Yes | | Project graph, timeline, evidence, and knowledge | No | Yes | Yes | Yes | | Automations | No | No | Up to 10 | Up to 100 | | Schedule and profile-completion triggers | No | No | Yes | Yes | | Project-bound Automation output | No | No | Yes | Yes | | User-bound Project and Automation audit | No | No | No | Yes | Project access starts with Lite. Automations require Pro or Elite, and their definition quota is shared by the workspace. Projects start private. Owners can grant selected workspace members Project access. Automation definitions remain private to their owner. ## Profiles and delivery | Capability | Free | Lite | Pro | Elite | | --------------------------- | --------------------------- | --------- | ----------------------- | ------------------------ | | Custom profiles | 0 | 1 | Up to 5 custom profiles | Up to 50 custom profiles | | Community subscriptions | 1 | 3 | Up to 20 total profiles | Up to 200 total profiles | | Total profiles | 1 | 4 | 20 | 200 | | Report deliveries | Community subscription only | Unlimited | Unlimited | Unlimited | | Email delivery | Yes | Yes | Yes | Yes | | Webhook delivery | No | Yes | Yes | Yes | | SMS delivery | No | No | Yes | Yes | | Scheduled reports dashboard | No | No | Yes | Yes | | Branding templates | 0 | 0 | 10 | 100 | | Audio narration | No | No | Yes | Yes | | Pronunciation dictionaries | 0 | 0 | 10 | 100 | Free community access Free includes one community-profile subscription. Creating a custom profile and configuring its report delivery starts with Lite. ## Agent Y2 and research | Capability | Free | Lite | Pro | Elite | | -------------------------- | ---- | ---- | ----- | ------ | | Agent Y2 credits per month | 0 | 100 | 1,000 | 10,000 | | Web search tool | No | Yes | Yes | Yes | | Image generation | No | Yes | Yes | Yes | | Advanced research | No | Yes | Yes | Yes | | News Terminal | Yes | Yes | Yes | Yes | ## API access | Capability | Free | Lite | Pro | Elite | | ----------------------------- | ------------------- | ------------------- | ------------------- | ------------------- | | Create new API keys | No | No | Up to 10 | Up to 100 | | Default rate limit per minute | Not available | Not available | 30 | 300 | | Default rate limit per day | Not available | Not available | 5,000 | 50,000 | | Webhook management | No | Yes | Yes | Yes | | x402 pay-per-request | Supported endpoints | Supported endpoints | Supported endpoints | Supported endpoints | Existing Lite API keys Lite cannot create new API keys. Earlier Lite keys retain their historical limits while the workspace stays on Lite: 10 requests per minute and 500 per day. ## Situation Room and Intel workspaces | Capability | Free | Lite | Pro | Elite | | ------------------------------------ | ------------- | ------- | ------- | ------- | | Cyber dashboard | Yes | Yes | Yes | Yes | | Situation Room | No | Yes | Yes | Yes | | FININT workspace | No | Yes | Yes | Yes | | Explorer investigation boards | No | Yes | Yes | Yes | | Investigation sharing | No | No | Yes | Yes | | Cyber DNS Explorer lookups per month | 0 | 0 | 5 | 1,000 | | Map layers | 0 | 50 | 50 | 50 | | Alert rules | 0 | 100 | 100 | 100 | | Watchlist countries | 0 | 50 | 50 | 50 | | Snapshot retention | Not available | 90 days | 90 days | 90 days | ## Organization capabilities | Capability | Free | Lite | Pro | Elite | | --------------------------- | ---- | ---- | --- | ------------------------------------ | | Organization workspace | No | No | No | Yes | | Workspace members | 1 | 1 | 1 | 5 included. Expansion by arrangement | | Workspace audit logs | No | No | No | Yes | | Workspace API-key oversight | No | No | No | Yes | ## Choose the next guide [Create a profile](https://y2.dev/docs/profiles/creating): Set up a topic, cadence, and delivery path within the active workspace limits. [Configure webhooks](https://y2.dev/docs/delivery/webhooks): Deliver reports to an HTTPS endpoint on Lite, Pro, or Elite. [Create API keys](https://y2.dev/docs/api/authentication): Configure Pro or Elite credentials and scopes for API requests. [Manage workspaces](https://y2.dev/docs/workspaces): Understand workspace switching, resource ownership, and Elite team governance. [Use Projects](https://y2.dev/docs/projects): Organize chats, evidence, private knowledge, graphs, and reports on Lite or higher. [Create Automations](https://y2.dev/docs/automations): Run bounded Agent Y2 work from Pro and Elite workspace triggers. --- # Information Operations (https://y2.dev/docs/profiles/) Information Operations # Information Operations Understand how Y2 profiles turn recurring questions into research and report workflows. An Information Operations profile is the durable configuration behind a recurring Y2 briefing. It defines what to research, how to structure the result, when to run, and where the report should go. ## Default report writing Y2 follows the [Basset-Hound OSINT writing standards](https://github.com/Basset-Hound-OSINT/osint-resources/blob/main/knowledge/reporting/writing-standards.md). Reports lead with the assessment and its importance. They separate sourced facts from judgments. They explain confidence, alternatives, assumptions, and evidence gaps. Reports use neutral language, clear dates, inline citations, and source references. Your saved sections and custom instructions take precedence over the default layout, tone, language, and requested length. Detailed section guidance, bullets, and examples are passed to synthesis together. Existing profiles keep their saved structures, and optional domain templates remain available. The engine's HTML, citation, and minimum-completeness requirements still apply. Writing guidance directs generation. It is not a guarantee that each model judgment is correct. ## Profile lifecycle The profile persists between runs. Updating its topic, instructions, source-quality settings, or cadence changes later reports without requiring a new workflow each time. ## What a profile controls - **Research target:** A topic, tags, and optional custom instructions define the question and desired emphasis. - **Report structure:** A template or custom section list defines how the result is organized. New profiles start with Bottom Line Up Front, Key Judgments, Background, Analysis, and Confidence Assessment. - **Research behavior:** Search depth, time range, domain controls, source freshness, link validation, and recursive research tune how evidence is gathered. - **Cadence and delivery:** Daily, weekly, biweekly, or monthly timing controls when the profile runs. The active plan determines which delivery methods are available. ## Profile types | Type | Meaning | | --------- | ----------------------------------------------- | | Personal | A profile created and managed in a workspace | | Global | A Y2-curated profile available for subscription | | Community | A profile its owner shares with other Y2 users | Subscribing to a global or community profile does not transfer ownership. The original owner keeps the profile configuration. The subscriber controls their own subscription and supported delivery preferences. Workspace limits apply Profile ownership and subscriptions count against the active workspace. See [Plans and limits](https://y2.dev/docs/plans) for the full entitlement reference. ## Research depth and source quality Y2 supports a single-pass workflow and recursive research. When recursion is enabled, the runtime can identify subtopics and research them in parallel before final synthesis. Current recursion boundary Report generation currently caps recursive depth at one child layer: the root topic plus one layer of parallel subtopic research. A larger saved value does not create additional runtime layers. Source-quality settings can prefer recent results, apply a maximum source age, and validate links. These controls improve evidence selection, but they do not guarantee that an external source is complete or correct. ## Report structure Profiles can use a general, finance, technology, or security-oriented structure, or a custom list of sections. The first required section establishes the main conclusion. Later sections add findings, analysis, risks, outlook, or other domain-specific context. Audio narration and pronunciation dictionaries are separate Pro and Elite capabilities. Branding templates can apply a consistent visual identity and terminology to supported reports. ## Choose the next task [Create a profile](https://y2.dev/docs/profiles/creating): Configure a topic, report structure, research behavior, cadence, and initial delivery. [Manage scheduling](https://y2.dev/docs/profiles/scheduling): Understand frequencies, UTC scheduling, and changes to future runs. [Share a profile](https://y2.dev/docs/profiles/sharing): Make an eligible personal profile discoverable to the community. [Configure branding](https://y2.dev/docs/profiles/branding): Apply reusable visual identity and report terminology on supported plans. [Set up audio](https://y2.dev/docs/audio): Choose narration voices and pronunciation dictionaries for generated reports. --- # Branding Templates (https://y2.dev/docs/profiles/branding/) Information Operations # Branding Templates Create reusable branding for reports, email, SMS, and audio delivery Branding templates let a Pro or Elite workspace reuse its logo, colors, terminology, and delivery copy across intelligence profiles. Branding requires an active **Pro** or **Elite** workspace. Pro supports up to **10** templates. Elite supports up to **100**. ## Create and assign a template ### Open Branding Open **InfoOps → Branding**. Select **New Template**. ### Name the template Use a name that identifies where the branding belongs, such as “Company Briefings” or “Client Deliverables.” A template name can contain up to 50 characters. You can also mark the template as the workspace default. Only one template can hold that marker at a time. ### Configure the output Add only the elements you need. Any omitted values fall back to Y2 defaults. | Area | Available settings | | --------------- | ---------------------------------------------------------- | | Visual identity | Logo, logo alt text, header color, accent color | | Terminology | Report type and analyst role | | Delivery copy | Email preview prefix, SMS prefix, audio intro, audio outro | | Static content | Optional content before or after a report | ### Save the template Resolve any validation errors. Select **Save**. ### Assign it to a profile Create or edit a profile. Open **Advanced**. Select the branding template. Save the profile. Y2 applies the template when it renders or delivers a report. The **Set as Default** marker is unique, but the current profile editor still requires you to select a branding template explicitly. Verify the assignment in **Advanced** instead of relying on the default marker alone. ## Visual identity ### Logo The branding editor accepts PNG, JPEG, SVG, and WebP files up to 2 MB. Add meaningful alt text for recipients who cannot see the image. | Property | Enforced limit | | ------------- | -------------- | | File size | 2 MB | | Logo alt text | 100 characters | Use a wide logo with a transparent background. Preview a delivered email. Check that the logo is legible at small sizes. ### Colors Header and accent colors accept three- or six-digit hex values, such as `#05c` or `#0055cc`. Values are normalized when the template is saved. Use only hex colors. Invalid values are rejected by server-side validation. ## Terminology and delivery copy Use `{name}` in supported text fields to insert the assigned profile's name. | Field | Character limit | Default | | -------------------- | --------------- | -------------------------------- | | Report type | 30 | Briefing | | Analyst role | 50 | professional analyst | | Email preview prefix | 30 | Your Briefing: | | SMS prefix | 20 | `{name}:` | | Audio intro | 100 | Welcome to your {name} briefing. | | Audio outro | 200 | Y2 closing message | For pronunciation rules that apply to names, acronyms, or technical terms, use a [pronunciation dictionary](https://y2.dev/docs/audio#create-a-pronunciation-dictionary). ## Add static content Each template can place one content block before the report and another after it. A block can use the `callout`, `highlight`, or `sponsor` style and can contain channel-specific copy. | Content | Enforced limit | Used by | | ---------- | -------------- | ------------------------- | | Label | 30 characters | Block heading | | HTML | 500 characters | Email and rendered report | | Audio text | 200 characters | Audio narration | The `{name}` placeholder is supported in the label, HTML, and audio text. Use the limits in the table above. Y2 rejects larger values even if the editor counter shows a larger allowance. Static HTML is sanitized before it is stored and rendered. Scripts, embedded forms, event handlers, unsafe URLs, iframes, and similar executable elements are removed. Use simple formatting and links rather than interactive markup. ## Update or remove a template Assigned profiles reference the template rather than copying it. Changes therefore affect subsequent renders and deliveries from every profile using that template. To delete a template: ### Find assigned profiles Edit each profile that uses the template. ### Remove or replace the assignment Select another template or clear the branding selection, then save the profile. ### Delete the template Return to **InfoOps → Branding**. Select **Delete**. Confirm the deletion. The backend rejects deletion while any profile still references the template. Unassign every profile first, even if the confirmation dialog suggests that profiles will fall back automatically. ## API boundary The public profile create and update schemas expose `brandingTemplateId`. Use the generated [Profiles API reference](https://y2.dev/docs/api/reference/profiles) for the canonical request schema and required scopes. Creating, editing, and deleting branding templates is currently an app-only workflow. Dedicated branding-management endpoints are not part of the public OpenAPI document. ## Plan limits | Plan | Templates | Logo upload | | ----- | --------- | ----------- | | Free | 0 | No | | Lite | 0 | No | | Pro | 10 | Yes | | Elite | 100 | Yes | ## Next steps [Create a profile](https://y2.dev/docs/profiles/creating): Configure a profile and assign the template. [Configure email delivery](https://y2.dev/docs/delivery/email): Review how generated reports reach recipients. [Review plans and limits](https://y2.dev/docs/plans): Compare workspace capabilities and quotas. --- # Create a Profile (https://y2.dev/docs/profiles/creating/) Information Operations # Create a Profile Set a topic, report structure, schedule, and sharing preference. Use this guide to create a recurring intelligence report. Sign in and select the workspace that will own the profile. Check its capacity in [Plans and limits](https://y2.dev/docs/plans). Choose the profile's visibility New profiles start with **Share with Community** enabled. Turn it off before creation if the topic, instructions, or reports must remain private. ## Create the profile ### Open the editor Open [My Profiles](https://y2.dev/app/infoops/my-profiles). Select **Create Profile**. ### Complete Basic Information Enter a name and topic. Add tags if needed. | Field | Requirement | | --------------- | -------------------------------------------------- | | Name | At least 3 characters | | Topic | At least 10 characters | | Tags | Optional, up to 10 | | Research layers | A root search and at most one parallel child layer | State what Y2 should monitor. For example: ``` Monitor ransomware campaigns affecting US healthcare providers. Include exploited vulnerabilities, named threat actors, and operational impact. ``` The editor always enables recursion. All layer choices run at most one child layer. Use the [Profiles API](https://y2.dev/docs/api/profiles) with `recursionConfig.enabled: false` for root-only research. ### Design the report Choose **General**, **Finance**, **Technology**, **Security**, or **Custom**. Adjust the sections in the preview. Add **Custom Instructions** for required emphasis, comparisons, or exclusions. ``` Separate confirmed exploitation from unverified reporting. Prioritize patient-care impact and named mitigations. ``` Preset templates replace custom sections Switching from custom sections to a preset replaces the section list after confirmation. ### Configure schedule and research Open **Advanced Configuration**. Review the settings you need: | Setting | Action | | ----------------- | ------------------------------------------------------------------------------------------- | | Delivery schedule | Choose a frequency and UTC time. See [scheduling](https://y2.dev/docs/profiles/scheduling). | | Search | Choose Basic or Advanced search and a time range. Add domain restrictions if needed. | | Tool usage | Choose Auto, Required, or None. None disables tool calls. | | Source quality | Set freshness preferences and link validation. | | Audio | Enable [narration](https://y2.dev/docs/audio) if your plan supports it. | | Branding | Assign a [branding template](https://y2.dev/docs/profiles/branding) if needed. | ### Confirm community sharing Find **Share with Community** in **Advanced Configuration**. Turn it off to keep the profile private. Leave it on only if other Y2 users can inspect its configuration and reports. See [Share a profile](https://y2.dev/docs/profiles/sharing) for visibility and subscriber behavior. ### Create and verify Select **Create Feed**. Y2 returns to **My Profiles**. Open the new profile. Confirm its name, topic, schedule, sharing preference, and active status. ### Review delivery Open the saved profile's delivery settings. Email is the default. Select an available method and verify the recipient details. Delivery preferences become available after the subscription exists. ## Troubleshooting **The editor will not continue** Use at least three characters for the name and ten for the topic. Resolve the validation message below each field. **Create Feed reports a limit** Confirm the active workspace. Check its profile count against [Plans and limits](https://y2.dev/docs/plans). **A control is unavailable** Check whether the active workspace plan includes that feature. **The report is too broad** Narrow the topic to a geography, industry, entity, or decision. Use Custom Instructions for output requirements. ## Next steps - [Set the schedule](https://y2.dev/docs/profiles/scheduling). - Configure [email](https://y2.dev/docs/delivery/email), [webhooks](https://y2.dev/docs/delivery/webhooks), or [SMS](https://y2.dev/docs/delivery/sms). - [Understand the report workflow](https://y2.dev/docs/workflows). --- # Schedule Profile Reports (https://y2.dev/docs/profiles/scheduling/) Information Operations # Schedule Profile Reports Configure and change the UTC schedule used by an Information Operations profile. Every active custom profile stores a UTC cron schedule. Y2 uses it to enqueue the next report run after the current run reaches a terminal state. ## Supported frequencies | Frequency | Current schedule behavior | Required input | | --------- | ---------------------------------------------------------- | --------------------- | | Daily | Every day at the selected UTC time | Time | | Weekly | Every selected weekday at the selected UTC time | Weekday and time | | Biweekly | On the 1st and 15th of each month at the selected UTC time | Time | | Monthly | On the selected day of the month at the selected UTC time | Day of month and time | Biweekly means twice monthly The current Biweekly schedule runs on calendar days 1 and 15. It is not a rolling fourteen-day interval and does not use the weekly day selector. Monthly dates 29–31 A monthly schedule runs only when the selected date exists. For example, a profile scheduled for the 31st does not run in a thirty-day month. ## Set a schedule ### Open the profile editor Open [My Profiles](https://y2.dev/app/infoops/my-profiles). Select the profile. Choose its edit action. ### Open Advanced Configuration Move to the third editor step. Find **Delivery Schedule** at the top of the page. ### Choose a frequency Select Daily, Weekly, Biweekly, or Monthly. Choose a weekday for Weekly or a day of the month for Monthly. ### Choose the UTC time Select an hourly time from `00:00` through `23:00`. The editor and backend interpret the value as UTC. Convert the desired local time to UTC before saving. Repeat the conversion when your local timezone enters or leaves daylight saving time. ### Save and verify Select **Update Feed**. Return to **My Profiles**. Confirm that the profile shows the expected next-run information. Schedule edits start an immediate run Changing the schedule of an active profile cancels its existing scheduled job, enqueues the new schedule, and starts a report workflow immediately. Make schedule changes when an extra run is acceptable. ## Generated cron values Y2 generates the cron expression. The profile editor does not accept a custom expression. | Schedule | Generated cron expression | | ----------------------------- | ------------------------- | | Daily at 06:00 UTC | `0 6 * * *` | | Monday at 09:00 UTC | `0 9 * * 1` | | Biweekly at 17:00 UTC | `0 17 1,15 * *` | | Monthly on day 8 at 08:00 UTC | `0 8 8 * *` | ## Choose an effective cadence - **Daily:** Use for topics where a missed day changes the decision: active incidents, market movement, or operational disruptions. - **Weekly:** Use for recurring reviews where developments should accumulate into a manageable briefing. - **Biweekly:** Use when twice-monthly calendar reporting is acceptable and strict fourteen-day spacing is not required. - **Monthly:** Use for slower trend reviews, executive summaries, or stable watch areas. When several profiles serve the same reader, stagger their UTC times. This spreads research work and prevents multiple reports from arriving together. ## Failure and recovery behavior Report workflows use bounded action retries and a recovery watchdog for eligible interrupted or stalled runs. A failed synthesis does not proceed to audio or delivery as if it were complete. Recovery behavior does not change the profile's stored cadence. ## Next steps [Configure email](https://y2.dev/docs/delivery/email): Verify where a completed report is sent by default. [Configure webhooks](https://y2.dev/docs/delivery/webhooks): Send completed reports to an HTTPS endpoint. [Review profile creation](https://y2.dev/docs/profiles/creating): Return to the full editor workflow and research settings. --- # Share a Profile (https://y2.dev/docs/profiles/sharing/) Information Operations # Share a Profile Publish a workspace-owned profile for community discovery and understand subscriber behavior. Turn on **Share with Community** to make a workspace-owned profile discoverable to other Y2 users. Subscribers follow the same profile. Sharing does not create a separate copy for each workspace. Review visibility before creating a profile The current new-profile editor starts with **Share with Community** enabled. Turn it off in Advanced Configuration before selecting **Create Feed** when the profile should remain private. ## How sharing works The owning workspace controls the profile topic, research configuration, cadence, status, and community visibility. Subscriber workspaces control their own subscription and supported delivery preferences. Changes to the shared profile affect later reports for every active subscriber because subscribers reference the same profile. ## Before sharing Confirm that the profile: - Has a clear name and a topic that another reader can understand without private context. - Uses report sections and instructions appropriate for a broader audience. - Does not contain secrets, customer data, private names, or confidential domain restrictions. - Has produced a report you reviewed for scope, source quality, and usefulness. - Uses a cadence the owning workspace intends to maintain. Shared configuration is discoverable Treat the profile name, topic, tags, custom instructions, and research configuration as public metadata when community sharing is enabled. Do not use a shared profile as a secret store. ## Share an existing profile ### Open the profile editor Open [My Profiles](https://y2.dev/app/infoops/my-profiles), select a profile owned by the active workspace, and choose its edit action. ### Review the public-facing configuration Check the name, topic, tags, section titles, and custom instructions. Remove internal-only details before changing visibility. ### Enable community sharing Open **Advanced Configuration** and turn on **Share with Community**. ### Save and verify Select **Update Feed**, then open [Community](https://y2.dev/app/infoops/community). Search for the profile name and confirm that it appears with the expected Global or Community classification. ## What subscribers can do Subscribers can: - Discover and open global or community profiles. - Add a profile to the active workspace when capacity remains. - Remove their own subscription without changing the shared profile. - Configure a supported delivery method for their subscription. They cannot edit or delete the owning workspace's profile. Subscriptions use capacity in the active workspace. See [Plans and limits](https://y2.dev/docs/plans#profiles-and-delivery). ## Stop sharing ### Edit the shared profile Open the profile from **My Profiles** and move to Advanced Configuration. ### Disable community sharing Turn off **Share with Community**, then select **Update Feed**. ### Confirm discovery is disabled Search for the profile in **Community**. It should no longer be available for a new subscription. Existing subscriptions are retained Disabling community sharing removes the profile from public discovery, but it does not automatically delete subscription records that already exist. Deleting the profile removes its subscriptions and associated generated resources. Treat deletion as a separate destructive action. ## Maintain a useful shared profile - **Keep the topic stable:** Make focused refinements. Replacing the subject entirely can surprise existing subscribers. - **Use recognizable tags:** Add concise domain, geography, industry, and cadence tags that improve discovery. - **Review generated reports:** Check whether sources and conclusions still match the published scope before expanding it. - **Communicate breaking changes:** Y2 does not currently promise an automatic subscriber notification for profile edits. Avoid silent changes that materially alter the briefing. ## Next steps [Browse community profiles](https://y2.dev/docs/community): Understand the discovery and subscription experience from the reader's perspective. [Improve the profile](https://y2.dev/docs/profiles/creating): Refine the topic, sections, source controls, and research behavior. [Configure delivery](https://y2.dev/docs/delivery/email): Choose where completed reports should arrive. --- # Projects (https://y2.dev/docs/projects/) Projects # Projects How Projects organize intelligence and control access to shared research. A Project groups work around one intelligence objective. It connects chats, reports, profiles, graphs, images, evidence, and private documents. Projects require Lite, Pro, or Elite. ## The Project boundary Each Project belongs to a workspace and has an owner. It starts private. Its owner can grant selected workspace members access as readers or editors. Workspace membership alone does not grant Project access. Private conversations and linked resources retain their own permissions. A Project grant does not expose every resource its owner can read. Y2 checks access again when background work runs. Project knowledge remains separate from Global Knowledge. Archiving a knowledge binding does not publish it elsewhere. ## Project views | View | Purpose | | --------- | -------------------------------------------------------- | | Graph | Maintain the investigation graph | | Timeline | Review intelligence and activity in time order | | Situation | Explore linked geographic signals | | Evidence | Preserve sources, notes, tags, and lineage | | Knowledge | Add documents for Project chat | | Overview | Review resources, recent chats, and eligible Automations | ## Projects and Automations [Automations](https://y2.dev/docs/automations) require Pro or Elite. They can use an active Project when their owner has write access. Their output stays associated with that Project. ## Elite governance Audit records identify the user and workspace for significant Project changes. Governance access does not grant access to private Project content. ## Choose a task [Create a Project](https://y2.dev/docs/projects/getting-started): Add a resource and start a conversation. [Organize intelligence](https://y2.dev/docs/projects/organizing-intelligence): Manage evidence, knowledge, sharing, and archived work. [Projects reference](https://y2.dev/docs/projects/reference): Look up fields, permissions, limits, and lifecycle rules. --- # Create a Project (https://y2.dev/docs/projects/getting-started/) Projects # Create a Project Create a Project, attach a resource, and start a Project chat. Use this guide to organize an intelligence task in a Project. You need a Lite, Pro, or Elite workspace and a role with write access. Prepare a report, profile, graph board, or image if you want to attach an existing resource. ## Create the Project 1. Select the workspace that should own the Project. 2. Open **Projects**. 3. Select **New Project**. 4. Enter a name. 5. Add an objective for the decision or investigation. 6. Add standing instructions if needed. 7. Save the Project. The Project starts active with private context. It keeps its knowledge separate from Global Knowledge. ## Attach a resource 1. Open **Overview**. 2. Search the resource picker. 3. Select a report, profile, graph board, or image you own in this workspace. 4. Attach the resource. A linked report preserves its stored citations as Project evidence. A linked profile preserves citations from earlier and future reports. Supported report intelligence can also update the graph. ## Start a Project chat 1. Select **New chat** from the Project. 2. Enter a question about the attached material. 3. Review the response and its sources. The conversation stays bound to the Project and workspace. Switching workspaces hides it until you return. ## Verify the result Return to **Overview**. Confirm that the resource and recent conversation appear. Check **Timeline** for the activity record. See [Organize intelligence](https://y2.dev/docs/projects/organizing-intelligence) for evidence, knowledge, sharing, and archiving. --- # Organize Intelligence in a Project (https://y2.dev/docs/projects/organizing-intelligence/) Projects # Organize Intelligence in a Project Manage resources, evidence, knowledge, access, and archived work. Start with an existing Project in the active workspace. You need write access to change its content. Only the Project owner manages access. ## Attach reports and profiles Open **Overview**. Search for a resource you own in the workspace. Choose its role, then attach it. | Role | Use | | ------------- | ------------------- | | Knowledge | Background material | | Working | Active analysis | | Output | Deliverables | | Primary graph | Main graph board | ## Preserve and classify evidence Open **Evidence**. Capture a web source or preserve citations from attached reports. Add notes and tags. Mark important items for later review. Trackers can classify future evidence by domain or URL prefix. Before pruning a source, review its downstream lineage. It can support reports, graph objects, incidents, or assertions. Use archive when you need a reversible removal. ## Add private knowledge Open **Knowledge**. Upload a supported document within the [storage limits](https://y2.dev/docs/projects/reference#view-and-storage-limits). PDFs must contain selectable text. Y2 does not accept scanned PDFs that require OCR. Uploaded content is available to authorized Project chats. It does not enter Global Knowledge. Archive a binding to stop retrieval. Restore it when needed. ## Maintain the Project graph Open **Graph** to create a graph, or save an Explorer graph to the Project. Saving again merges nodes and edges by identifier. See [graph limits](https://y2.dev/docs/projects/reference#view-and-storage-limits). ## Move an existing chat Select a chat you own in the active workspace. Move it to an active Project where you have write access. Future messages and background work must pass that Project's access checks. A chat derived from a shared Project cannot move outside that Project. ## Manage access As the Project owner, select **Manage access**. Choose a workspace member and a **Reader** or **Editor** role. Select **Grant access**. Use **Revoke** to remove a grant. Private conversations and linked resources retain their existing permissions. Revocation also blocks retained Project conversations and future Project work. ## Archive completed work Archive the Project when its objective is complete. Archiving removes it from active lists without deleting history. Restore it from the archived Projects view to resume work. --- # Projects Reference (https://y2.dev/docs/projects/reference/) Projects # Projects Reference Reference for Project availability, ownership, views, resources, limits, and lifecycle behavior. ## Availability and access | Rule | Behavior | | --------------- | ------------------------------------------------------------------------------------------- | | Minimum plan | Lite | | Workspace scope | The active workspace must match the Project workspace. | | Ownership | Private by default. The owner can grant selected workspace members reader or editor access. | | Write access | Workspace write role and Project owner or editor access. Readers cannot write. | | Context policy | `project_only` | | Elite audit | Material changes include the workspace and acting user. | ## Project fields | Field | Constraint or meaning | | ------------------- | ------------------------------------------------------------ | | Name | Required, up to 80 characters. | | Objective | Optional, up to 1,000 characters. | | Instructions | Optional, up to 8,000 characters. | | Status | `active` or `archived`. | | Default view | Graph, Timeline, Situation, Reports, Evidence, or Knowledge. | | Default time window | 24 hours, 7 days, 30 days, or custom. | | Revision | Used to reject conflicting settings updates. | ## Supported resource types | Resource | Ownership check | | ------------------------- | --------------------------------------------------- | | Investigation graph board | Same owner and workspace. | | Profile | Same owner and workspace. | | Report | Its profile must have the same owner and workspace. | | Generated image | Same owner and workspace. | Resource roles are `knowledge`, `working`, `output`, and `primary_graph`. ## View and storage limits - Persistent graphs: 250 nodes and 500 edges. - Recent Project chat list: the app displays up to 12 threads. - Project instructions: 8,000 characters. - Graph title: 200 characters. - Private knowledge accepts PDF, text, Markdown, Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, and CSV files up to 10 MB. - PDFs must contain selectable text. Scanned pages requiring OCR are rejected. - Private knowledge is capped at 100 documents per owner and workspace, 200 PDF pages, 2,000,000 extracted characters, and 512 indexed chunks per revision. - Evidence attachments are separate from Project knowledge and use their own archive and integrity rules. ## Lifecycle Archiving is reversible. Project resources, chat association, evidence history, graph state, and private knowledge remain stored. Active-only mutations reject archived Projects until restored. Deleting an attached resource link does not delete the original report, profile, graph board, or image. Evidence pruning and knowledge-source deletion have separate confirmation and retention behavior in their respective views. --- # Client Libraries and Tools (https://y2.dev/docs/sdks/) Choose a client or command-line tool for the Y2 API Generate a client from the [OpenAPI contract](https://y2.dev/docs/api/openapi), or make requests with an HTTP client. Choose a guide for your runtime: [TypeScript](https://y2.dev/docs/sdks/typescript): Make a typed request with native fetch. [Python](https://y2.dev/docs/sdks/python): Make requests with the standard library. [Y2 command line](https://y2.dev/docs/sdks/cli): Install the native harness and run Agent Y2. [curl recipes](https://y2.dev/docs/sdks/curl): Read, export, and update API resources from a shell. ## Other integration tools | Tool | Use | | ---------------------------------------------------- | ----------------------------------------------- | | [API Workbench](https://y2.dev/docs/api/workbench) | Inspect operations and run read requests | | [MCP server](https://y2.dev/docs/api/mcp-local) | Give a local agent access to Y2 tools | | [OpenAPI generator](https://y2.dev/docs/api/openapi) | Generate types or a client for another language | [Create an API key](https://y2.dev/docs/api/create-key) before making authenticated requests. Keep the key on your server or local runtime. ## Check a generated client Check these behaviors before using a generated client: - Use the operation's server override for Intel v2. - Preserve response headers for pagination, limits, and request IDs. - Handle [Problem Details](https://y2.dev/docs/api/responses#errors). - Handle each response format your integration uses. - Keep generated code in source control or pin the input specification. Package method names depend on the release. Compare the installed package with the current endpoint reference. --- # Set Up the Y2 Command Line (https://y2.dev/docs/sdks/cli/) Install the native harness and run your first Agent Y2 prompt Use Y2 Information Dominance for interactive agent work and single prompts. For direct API requests, use the [curl recipes](https://y2.dev/docs/sdks/curl). You need macOS or Linux on x86-64 or arm64. Agent Y2 requires an API key with `agent:y2`. ## Install the native harness The installer verifies the release checksum and installs `y2` in `~/.y2/bin`. macOS binaries have SHA-256 checksums. They are not Developer ID signed or Apple notarized. Terminal ``` export PATH="$HOME/.y2/bin:$PATH" && curl -fsSL https://y2.dev/harness/install.sh | sh ``` The command adds `y2` to this terminal and your shell profile. Pass `--no-modify-path` to leave shell profiles unchanged. Check the installed version: Terminal ``` export PATH="$HOME/.y2/bin:$PATH" y2 --version ``` Pin an exact release when you need a reproducible install: Terminal ``` export PATH="$HOME/.y2/bin:$PATH" && curl -fsSL https://y2.dev/harness/install.sh | sh -s -- v0.0.7 ``` Upgrade an installed harness on the stable channel: Terminal ``` y2 upgrade ``` ## Save a Y2 API key [Create a key](https://y2.dev/docs/api/create-key) with `agent:y2`. Run `y2 auth` to open API Keys in your browser and enter the key at the prompt: Terminal ``` y2 auth ``` The harness saves the key in local credential storage. Use `y2 setup` to enter an existing key without opening the browser. For temporary shells or CI, set `Y2_API_KEY` in the environment: Terminal ``` export Y2_API_KEY="y2_..." ``` Keep the key out of shell history, logs, prompts, tool arguments, and browser bundles. ## Run Agent Y2 Start an interactive session from the project you want the harness to use as its workspace: Terminal ``` cd your-project y2 ``` Run one noninteractive prompt with `y2 ask`: Terminal ``` y2 ask "Summarize the changes in this repository" ``` The assistant returns a summary in your terminal. Local commands and file changes follow the configured permission policy. The CLI reads applicable `AGENTS.md` files. Local tools run on your machine. Agent Y2 is the default route. Check the configuration and local requirements without printing the key: Terminal ``` y2 status --json y2 doctor ``` ## Use another endpoint Set the provider URL, key, and model: Terminal ``` export OPENAI_BASE_URL="https://your-provider.example/v1" export OPENAI_API_KEY="your-provider-api-key" export Y2_MODEL="your-model-id" y2 ``` `OPENAI_BASE_URL` may include `/chat/completions`. Otherwise, y2 appends it. See the [Agent Y2 API guide](https://y2.dev/docs/api/agent-y2) for the default endpoint and streaming contract. [curl recipes](https://y2.dev/docs/sdks/curl) [Agent Y2 API](https://y2.dev/docs/api/agent-y2) [Harness source](https://github.com/y2-intel/harness) --- # Call the API with curl (https://y2.dev/docs/sdks/curl/) Read, update, paginate, and export Y2 resources from a shell Use these recipes for direct HTTP requests. For interactive agent work, [set up the Y2 command line](https://y2.dev/docs/sdks/cli). ## Before you begin You need curl and, for JSON processing, jq: ``` curl --version jq --version export Y2_API_KEY="y2_..." ``` [Create a key](https://y2.dev/docs/api/create-key) with the scopes required by each operation. These recipes use Bash, curl, and jq. Shell history, debug tracing, process listings, and CI output can expose secrets. Keep the key in the environment, quote variable expansions, and do not use `set -x` in credentialed scripts. ## Create a reusable GET helper y2.sh ``` #!/usr/bin/env bash set -euo pipefail : "${Y2_API_KEY:?Set Y2_API_KEY before running this script}" y2_get() { local path="$1" curl --fail-with-body --silent --show-error \ "https://api.y2.dev${path}" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Accept: application/json" } y2_get "/api/v1/news/feeds" | jq '.meta' ``` Save the helper as `y2.sh`. Run `source ./y2.sh` before using `y2_get` below. It accepts paths such as `/api/v1/news` and `/api/v2/incidents`. ## Discover News topics List all current topic IDs and names: ``` y2_get "/api/v1/news/feeds" | jq -r '.data[] | [.id, .name, .groupLabel] | @tsv' ``` Then request a bounded page: ``` y2_get "/api/v1/news?topics=markets,macro&limit=10" | jq -r '.data[] | [ .publishedAt, (.sentiment.label // "unknown"), .title, (.links.canonical // "") ] | @tsv' ``` News rows use `title`, `summary`, and nested `sentiment` fields. Get available topics from the feed directory. ## Inspect profile and subscription IDs `GET /profiles` returns paired resources. Print both IDs before scripting updates: ``` y2_get "/api/v1/profiles" | jq -r '.data[] | [ .profile.id, .subscription.id, .profile.name, .subscription.delivery.method ] | @tsv' ``` Use `prf_...` for profile configuration and report filtering. Use `sub_...` when changing delivery. ## Create a profile idempotently ``` profile_id=$( curl --fail-with-body --silent --show-error \ "https://api.y2.dev/api/v1/profiles" \ --request POST \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Content-Type: application/json" \ --header "Idempotency-Key: supplier-risk-2026-07-21" \ --data '{ "name": "Critical Supplier Risk", "topic": "Monitor disruption affecting strategic semiconductor suppliers.", "frequency": "daily", "scheduleTimeOfDay": "08:00", "isCommunity": false }' | jq -r '.data.id' ) printf '%s\n' "$profile_id" ``` The response ID is the profile's canonical `prf_...` ID. Reuse the same idempotency key only with the same request body. ## Paginate every report for a profile Y2 returns an opaque continuation link. Follow it unchanged: export-report-index.sh ``` #!/usr/bin/env bash set -euo pipefail : "${Y2_API_KEY:?Set Y2_API_KEY}" : "${PROFILE_ID:?Set PROFILE_ID to a prf_ ID}" next="/api/v1/reports?profileId=$PROFILE_ID&limit=20" while [ -n "$next" ]; do page=$( curl --fail-with-body --silent --show-error \ "https://api.y2.dev${next}" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Accept: application/json" ) jq -r '.data[] | [.id, .publishedAt, (.summary // "")] | @tsv' <<<"$page" next=$(jq -r '.links.next // empty' <<<"$page") done ``` Do not decode or edit the cursor. It is bound to the original filters and ordering. ## Export one report as Markdown ``` : "${REPORT_ID:?Set REPORT_ID to an rpt_ ID}" curl --fail-with-body --silent --show-error \ "https://api.y2.dev/api/v1/reports/$REPORT_ID" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Accept: text/markdown" \ --output "$REPORT_ID.md" ``` The file contains the report body directly. It is not a JSON envelope. ## Process NDJSON one row at a time News and several list endpoints can return newline-delimited JSON: ``` curl --fail-with-body --silent --show-error --get \ "https://api.y2.dev/api/v1/news" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Accept: application/x-ndjson" \ --data-urlencode "topics=cybersecurity" \ --data-urlencode "limit=50" | while IFS= read -r row; do jq -r '[.publishedAt, .title] | @tsv' <<<"$row" done ``` For multi-page ingestion, also capture `X-Y2-Next-Cursor` from the response headers and send it as the next request's `cursor` value. ## Capture status, headers, and errors Use temporary files when a script needs to branch on HTTP status while retaining Problem Details: ``` body_file=$(mktemp) headers_file=$(mktemp) trap 'rm -f "$body_file" "$headers_file"' EXIT status=$( curl --silent --show-error \ --output "$body_file" \ --dump-header "$headers_file" \ --write-out '%{http_code}' \ "https://api.y2.dev/api/v1/reports/not-a-report-id" \ --header "Authorization: Bearer $Y2_API_KEY" \ --header "Accept: application/json" ) if [ "$status" -ge 400 ]; then jq '{status, code, detail, requestId}' "$body_file" >&2 grep -i '^Retry-After:' "$headers_file" >&2 || true exit 1 fi ``` Log `requestId`, not credentials. Retry safe reads or idempotent writes only, and follow `Retry-After` on `429`. ## Call Intel v2 Intel paths use `/api/v2` directly: ``` y2_get "/api/v2/incidents?limit=20" | jq -r '.data[] | [.id, .severity, .title] | @tsv' ``` Do not place `/api/v1` before an Intel v2 path. ## Know when curl is not enough | Task | Additional requirement | | ---------------- | -------------------------------------------------------------------------------------- | | x402 payments | Use a wallet client to create an EIP-3009 signature. Send it in `PAYMENT-SIGNATURE` | | Agent Y2 streams | Use a stream parser in applications. Keep `X-Thread-Id` | | Webhook delivery | Provide a public HTTPS receiver. Preserve raw request bytes for signature verification | [Y2 command line](https://y2.dev/docs/sdks/cli) [Endpoint reference](https://y2.dev/docs/api/reference) [Integration recipes](https://y2.dev/docs/api/integration-recipes) [Authentication](https://y2.dev/docs/api/authentication) [x402 guide](https://y2.dev/docs/api/x402) --- # Build a Python Client (https://y2.dev/docs/sdks/python/) Create a small Python client for Y2 JSON reads, writes, errors, and pagination Use Python 3.11 or later and the standard library to call Y2. Before you begin, [create a key](https://y2.dev/docs/api/create-key) with `news:read`. Keep credentials out of notebooks and source files Load `Y2_API_KEY` from the environment or a secret manager. Notebook output, exception dumps, and committed `.env` files can leak credentials as easily as application logs. ## Configure the environment The examples use Python 3.11 or newer and only the standard library: ``` export Y2_API_KEY="y2_..." python --version ``` New keys require a Pro or Elite workspace and the scopes needed by the operations you call. ## Make a first request Save this complete example as `first_request.py`: first\_request.py ``` import json import os from urllib.request import Request, urlopen request = Request( "https://api.y2.dev/api/v1/news?limit=1", headers={ "Authorization": f"Bearer {os.environ['Y2_API_KEY']}", "Accept": "application/json", }, ) with urlopen(request, timeout=30) as response: print(response.status) page = json.load(response) for item in page["data"]: print(item["title"], item["links"]["canonical"]) ``` Run `python first_request.py` with `Y2_API_KEY` set. Expect `200`, followed by up to one title and source URL. An empty collection prints only `200`. For an HTTP error, see [API errors](https://y2.dev/docs/api/responses#errors). ## Create a reusable JSON transport y2\_client.py ``` from __future__ import annotations import json import os from dataclasses import dataclass from typing import Any, Mapping, TypeVar, cast from urllib.error import HTTPError from urllib.parse import urlencode from urllib.request import Request, urlopen T = TypeVar("T") API_ORIGIN = "https://api.y2.dev" API_V1 = f"{API_ORIGIN}/api/v1" class Y2ApiError(Exception): def __init__( self, status: int, problem: dict[str, Any] | None, retry_after: str | None, request_id: str | None, ) -> None: detail = problem.get("detail") if problem else None super().__init__(detail or f"Y2 request failed with HTTP {status}") self.status = status self.problem = problem self.retry_after = retry_after self.request_id = request_id @dataclass(frozen=True) class Y2Client: api_key: str timeout_seconds: float = 30.0 @classmethod def from_env(cls) -> Y2Client: api_key = os.environ.get("Y2_API_KEY") if not api_key: raise RuntimeError("Y2_API_KEY is required") return cls(api_key=api_key) def request_json( self, method: str, path_or_url: str, *, query: Mapping[str, str | int | float | bool | None] | None = None, body: Mapping[str, Any] | None = None, headers: Mapping[str, str] | None = None, ) -> T: if path_or_url.startswith("https://"): url = path_or_url elif path_or_url.startswith("/api/"): url = f"{API_ORIGIN}{path_or_url}" else: url = f"{API_V1}{path_or_url}" params = { key: str(value).lower() if isinstance(value, bool) else value for key, value in (query or {}).items() if value is not None } if params: separator = "&" if "?" in url else "?" url = f"{url}{separator}{urlencode(params)}" request_headers = { "Authorization": f"Bearer {self.api_key}", "Accept": "application/json", **(headers or {}), } data = None if body is not None: request_headers.setdefault("Content-Type", "application/json") data = json.dumps(body, separators=(",", ":")).encode("utf-8") request = Request(url, data=data, headers=request_headers, method=method) try: with urlopen(request, timeout=self.timeout_seconds) as response: raw = response.read() if response.status == 204 or not raw: return cast(T, None) return cast(T, json.loads(raw)) except HTTPError as error: raw = error.read() problem = None if raw: try: decoded = json.loads(raw) if isinstance(decoded, dict): problem = decoded except json.JSONDecodeError: pass raise Y2ApiError( error.code, problem, error.headers.get("Retry-After"), error.headers.get("X-Request-Id"), ) from error ``` This helper handles JSON and `204 No Content`. Use separate readers for text, NDJSON, audio redirects, and SSE. ## Read news items news.py ``` from typing import Any, TypedDict from y2_client import Y2Client class NewsPage(TypedDict): data: list[dict[str, Any]] meta: dict[str, Any] links: dict[str, str | None] client = Y2Client.from_env() page: NewsPage = client.request_json( "GET", "/news", query={"topics": "markets,macro", "limit": 10}, ) for item in page["data"]: print(item["title"], item["links"]["canonical"]) ``` Use `GET /news/feeds` to discover topics. Items contain `title`, `summary`, and a nested `sentiment` object. Read `sentiment.label` and `sentiment.value`. ## Create a profile Use a key with `profiles:write`. profiles.py ``` from typing import Any from y2_client import Y2Client client = Y2Client.from_env() created: dict[str, Any] = client.request_json( "POST", "/profiles", headers={"Idempotency-Key": "supplier-risk-2026-07-21"}, body={ "name": "Critical Supplier Risk", "topic": "Monitor disruption affecting strategic semiconductor suppliers.", "frequency": "daily", "scheduleTimeOfDay": "08:00", "isCommunity": False, }, ) profile_id = created["data"]["id"] print(profile_id) # prf_... ``` Creation returns the profile in `data`. Use `GET /profiles` to find the associated `sub_...` subscription ID for delivery changes. Use `PATCH /profiles/{profileId}` for partial changes. `PUT` replaces mutable state and resets omitted optional values. Extend this helper to retain `ETag` headers if you need `If-Match` concurrency protection. ## Follow report pagination Use a key with `reports:read`. Replace the example profile ID with an accessible profile ID. reports.py ``` from collections.abc import Iterator from typing import Any from y2_client import Y2Client def reports_for_profile( client: Y2Client, profile_id: str, ) -> Iterator[dict[str, Any]]: next_url: str | None = "/reports" first = True while next_url: page: dict[str, Any] = client.request_json( "GET", next_url, query={"profileId": profile_id, "limit": 20} if first else None, ) yield from page["data"] next_url = page["links"]["next"] first = False client = Y2Client.from_env() for report in reports_for_profile(client, "prf_0123456789abcdef01234567"): print(report["id"], report["summary"]) ``` Treat `links.next` and its cursor as opaque. Do not decode, edit, or combine a continuation link with different filters. ## Run independent reads concurrently The standard-library transport is synchronous. For a small job, run independent calls in worker threads without sharing mutable client state: concurrent\_reads.py ``` import asyncio from y2_client import Y2Client async def main() -> None: client = Y2Client.from_env() news, feeds = await asyncio.gather( asyncio.to_thread( client.request_json, "GET", "/news?topics=markets&limit=10", ), asyncio.to_thread(client.request_json, "GET", "/news/feeds"), ) print(len(news["data"]), len(feeds["data"])) asyncio.run(main()) ``` For more concurrent requests, use an async HTTP client with connection pooling. Keep the same authentication, timeout, error, pagination, and response-format rules. ## Handle Problem Details errors.py ``` from y2_client import Y2ApiError, Y2Client client = Y2Client.from_env() try: client.request_json("GET", "/reports/not-a-report-id") except Y2ApiError as error: code = error.problem.get("code") if error.problem else "UNKNOWN" print(error.status, code, error.request_id) if error.status == 429: print("Retry after", error.retry_after) ``` Retry only safe reads or writes protected by an idempotency key. A `404` on tenant-owned resources can intentionally avoid revealing whether another tenant owns the ID. ## Call Intel v2 with the correct base Intel paths include `/api/v2` and use `https://api.y2.dev` as the server. Use a key with an accepted Intel scope: ``` from y2_client import Y2Client client = Y2Client.from_env() incidents = client.request_json( "GET", "https://api.y2.dev/api/v2/incidents", query={"limit": 20}, ) ``` Do not prepend `https://api.y2.dev/api/v1` to an Intel v2 path. ## Evaluate a generated Python client If you generate models and operation methods from OpenAPI, verify that the result: - honors operation-level server overrides. - represents nullable and optional fields separately. - exposes `application/problem+json` rather than replacing it with generic exceptions. - preserves response headers for rate limits, ETags, request IDs, and x402. - handles `204` and `302` without trying to decode JSON. - provides explicit streaming APIs for NDJSON and Agent Y2 SSE. Compare a generated package with the current endpoint reference before using it. Package releases can differ from the API contract. [OpenAPI contract](https://y2.dev/docs/api/openapi) [Endpoint reference](https://y2.dev/docs/api/reference) [Profiles API](https://y2.dev/docs/api/profiles) [Reports API](https://y2.dev/docs/api/reports) --- # Build a TypeScript Client (https://y2.dev/docs/sdks/typescript/) Generate Y2 API types and add a small server-side fetch transport Use generated OpenAPI types with native `fetch`. This guide uses Bun to run TypeScript examples. The transport also works in runtimes that support `fetch` and `AbortSignal.timeout`. Before you begin, [create a key](https://y2.dev/docs/api/create-key) with `news:read`. Set `Y2_API_KEY` in your environment. Keep the API key server-side Run API calls on your server or local runtime. Keep `Y2_API_KEY` out of browser bundles. ## Generate declarations Install the same generator used by the Y2 platform repository: **Bun** ``` bun add --dev openapi-typescript@^7.13.0 bunx openapi-typescript https://y2.dev/api/openapi.yaml \ --immutable \ --alphabetize \ --output src/y2-api.d.ts ``` **npm** ``` npm install --save-dev openapi-typescript@^7.13.0 npx openapi-typescript https://y2.dev/api/openapi.yaml \ --immutable \ --alphabetize \ --output src/y2-api.d.ts ``` Commit the generated declarations or pin the input specification. Review changes when you regenerate them. Add a repeatable script: package.json ``` { "scripts": { "generate:y2-types": "openapi-typescript https://y2.dev/api/openapi.yaml --immutable --alphabetize --output src/y2-api.d.ts" } } ``` ## Make a first request Save this complete example as `src/first-request.ts`: src/first-request.ts ``` import type { paths } from "./y2-api"; type NewsPage = paths["/news"]["get"]["responses"][200]["content"]["application/json"]; const apiKey = process.env.Y2_API_KEY; if (!apiKey) throw new Error("Set Y2_API_KEY"); const response = await fetch("https://api.y2.dev/api/v1/news?limit=1", { headers: { Authorization: `Bearer ${apiKey}`, Accept: "application/json" }, signal: AbortSignal.timeout(30_000), }); if (!response.ok) throw new Error(`Y2 returned HTTP ${response.status}`); const page: NewsPage = await response.json(); console.log(response.status); for (const item of page.data) { console.log(item.title, item.links.canonical); } ``` Run `bun src/first-request.ts` with `Y2_API_KEY` set. Expect `200`, followed by up to one title and source URL. An empty collection prints only `200`. For other statuses, see [API errors](https://y2.dev/docs/api/responses#errors). ## Create a reusable JSON transport Set the credential in the runtime environment: ``` export Y2_API_KEY="y2_..." ``` Then create a transport that preserves Y2 Problem Details and rate-limit context: src/y2-client.ts ``` import type { components } from "./y2-api"; const API_ORIGIN = "https://api.y2.dev"; const API_V1 = `${API_ORIGIN}/api/v1`; export type Y2Problem = components["schemas"]["ErrorResponse"]; export class Y2ApiError extends Error { constructor( readonly status: number, readonly problem: Y2Problem | null, readonly retryAfter: string | null, readonly requestId: string | null, ) { super(problem?.detail ?? `Y2 request failed with HTTP ${status}`); } } function isProblem(value: unknown): value is Y2Problem { return ( typeof value === "object" && value !== null && "status" in value && "code" in value && "detail" in value ); } function resolveUrl(pathOrUrl: string): string { if (pathOrUrl.startsWith("https://")) return pathOrUrl; if (pathOrUrl.startsWith("/api/")) return `${API_ORIGIN}${pathOrUrl}`; return `${API_V1}${pathOrUrl}`; } export async function y2Json( pathOrUrl: string, init: RequestInit = {}, ): Promise { const apiKey = process.env.Y2_API_KEY; if (!apiKey) throw new Error("Y2_API_KEY is required"); const headers = new Headers(init.headers); headers.set("Authorization", `Bearer ${apiKey}`); if (!headers.has("Accept")) headers.set("Accept", "application/json"); if (init.body && !headers.has("Content-Type")) { headers.set("Content-Type", "application/json"); } const response = await fetch(resolveUrl(pathOrUrl), { ...init, headers, signal: init.signal ?? AbortSignal.timeout(30_000), }); const text = await response.text(); let payload: unknown = null; if (text) { try { payload = JSON.parse(text); } catch { payload = text; } } if (!response.ok) { throw new Y2ApiError( response.status, isProblem(payload) ? payload : null, response.headers.get("Retry-After"), response.headers.get("X-Request-Id"), ); } return payload as T; } ``` `y2Json` handles JSON only. Use separate readers for text, streams, and audio redirects. ## Type a read operation Extract parameter and response types from the path entry: src/news.ts ``` import type { paths } from "./y2-api"; import { y2Json } from "./y2-client"; type ListNewsQuery = Pick< NonNullable, "topics" | "limit" | "cursor" >; type ListNewsResponse = paths["/news"]["get"]["responses"][200]["content"]["application/json"]; export async function listNews(query: ListNewsQuery): Promise { const params = new URLSearchParams(); if (query.topics) params.set("topics", query.topics); if (query.limit !== undefined) params.set("limit", String(query.limit)); if (query.cursor) params.set("cursor", query.cursor); return y2Json(`/news?${params}`); } const page = await listNews({ topics: "markets,macro", limit: 10 }); for (const item of page.data) { console.log(item.title, item.links.canonical); } ``` Use `GET /news/feeds` to discover topics. Items contain `title`, `summary`, and a nested `sentiment` object. Read `sentiment.label` and `sentiment.value`. ## Type a mutation Profile creation returns a `PublicProfile` in `data`. Read its ID from `data.id`. Use `GET /profiles` to find the associated `sub_...` subscription ID. This request needs `profiles:write`. src/profiles.ts ``` import type { paths } from "./y2-api"; import { y2Json } from "./y2-client"; type CreateProfileBody = paths["/profiles"]["post"]["requestBody"]["content"]["application/json"]; type CreateProfileResponse = paths["/profiles"]["post"]["responses"][201]["content"]["application/json"]; export async function createProfile( body: CreateProfileBody, idempotencyKey: string, ): Promise { return y2Json("/profiles", { method: "POST", headers: { "Idempotency-Key": idempotencyKey }, body: JSON.stringify(body), }); } const created = await createProfile( { name: "Critical Supplier Risk", topic: "Monitor disruption affecting strategic semiconductor suppliers.", frequency: "daily", scheduleTimeOfDay: "08:00", isCommunity: false, }, "supplier-risk-2026-07-21", ); console.log(created.data.id); // prf_... ``` Use `PATCH /profiles/{profileId}` for partial changes. Use `PUT` for full replacement. Extend this helper to retain `ETag` headers if you need `If-Match` concurrency protection. ## Paginate reports Use a key with `reports:read`. Replace the example profile ID with an accessible profile ID. Follow each response link unchanged: src/reports.ts ``` import type { paths } from "./y2-api"; import { y2Json } from "./y2-client"; type ReportsPage = paths["/reports"]["get"]["responses"][200]["content"]["application/json"]; export async function* reportsForProfile(profileId: string) { let next: string | null = `/reports?profileId=${encodeURIComponent(profileId)}&limit=20`; while (next) { const page: ReportsPage = await y2Json(next); yield* page.data; next = page.links.next; } } for await (const report of reportsForProfile("prf_0123456789abcdef01234567")) { console.log(report.id, report.summary); } ``` The list and default detail response are compact. Request `include=content,sources` or `Accept: text/markdown` only when the consumer needs those representations. ## Call Intel v2 correctly Intel paths include `/api/v2` and use `https://api.y2.dev` as the server. Use a key with an accepted Intel scope: ``` import type { paths } from "./y2-api"; import { y2Json } from "./y2-client"; type IncidentList = paths["/api/v2/incidents"]["get"]["responses"][200]["content"]["application/json"]; const incidents = await y2Json( "https://api.y2.dev/api/v2/incidents?limit=20", ); ``` Do not compose Intel URLs by adding `/api/v1` to the path. ## Handle special representations | Format | Handling | | -------- | ------------------------------------------------------------------------------------------------ | | NDJSON | Read `response.body` as a stream. Parse complete lines. Keep `X-Y2-Next-Cursor` | | Markdown | Send `Accept: text/markdown` on a supported report request. Read the body with `response.text()` | | SSE | Use an SSE parser for Agent Y2. Keep `X-Thread-Id` | Do not pass these responses through `y2Json`. ## Production checklist - Pin or review generated declaration changes. - Give the key only the required scopes. - Use idempotency keys on supported create operations. - Follow `Retry-After` on `429` and retry only safe or idempotent requests. - Log `X-Request-Id` without logging credentials or full payment payloads. - Treat `404` as non-disclosing for tenant-owned resources. - Test special media types separately from JSON. [OpenAPI contract](https://y2.dev/docs/api/openapi) [Authentication](https://y2.dev/docs/api/authentication) [Profiles API](https://y2.dev/docs/api/profiles) [Reports API](https://y2.dev/docs/api/reports) --- # Vision (https://y2.dev/docs/vision/) The long-term direction for connected, user-controlled intelligence workflows. Y2's vision is a workspace that preserves useful context for decisions. Users can understand changes and act without restarting their research. Direction, not a release promise This page explains the design direction of Y2. For current product availability, use [Plans and limits](https://y2.dev/docs/plans) and the [Changelog](https://y2.dev/docs/changelog). ## The intelligence loop The goal is not a larger stream of information. New evidence updates shared context. Research produces a result that readers can inspect. Operator priorities shape the next cycle. ## Design direction ### Persistent rather than one-off A question that matters today will often matter again tomorrow. Profiles and saved workspace context should make recurring monitoring easier than restarting the same search. ### Connected rather than isolated Reports, events, entities, sources, and investigations should reinforce one another. Readers should be able to move from a summary to the evidence, relationships, and prior context behind it. ### Human-directed agents AI should extend an analyst's reach while preserving user control. The operator defines the goal, reviews the evidence, and decides whether to act. ### Usable wherever decisions happen Intelligence should work in the Y2 interface and through delivery channels, APIs, and interoperable contracts. A useful result should not be trapped in one screen. ### Compounding community knowledge Reusable profiles and shared intelligence patterns can reduce duplicated work. Community knowledge becomes more valuable when its authorship, scope, and source context remain understandable. ## What remains constant - Operators control the topics, workspace, and delivery paths that matter to them. - Source context and limitations remain visible enough to support independent judgment. - Product capabilities are documented as they exist, separately from long-term direction. - Integrations use explicit contracts so teams can build without depending on hidden behavior. ## Continue exploring [Read the mission](https://y2.dev/docs/mission): Understand the access and decision-support problem Y2 is designed to address. [See current capabilities](https://y2.dev/docs/plans): Compare available workspace features and enforced limits. [Review product changes](https://y2.dev/docs/changelog): Follow shipped improvements and current release notes. --- # InfoOps Report Workflow (https://y2.dev/docs/workflows/) How Y2 researches a profile, creates its report, and recovers from failures. A profile defines a recurring research task. Each run collects sources, writes one report, adds intelligence data, and delivers the result. [Automations](https://y2.dev/docs/automations) are separate tasks that run Agent Y2 on a schedule or after a report. ## How a run starts Y2 queues a run when: - An active custom profile is created. - A paused or canceled profile becomes active. - An active profile's status or schedule changes. - The next scheduled time arrives. - Recovery restarts an eligible failed or interrupted run. Y2 prevents overlapping runs for the same profile. A pending retry can delay a new start. Creating an active profile starts an initial report and schedules the next regular run. ## Research and synthesis ### Root research Y2 searches the profile topic through Exa. Time range, topic, result count, and domain restrictions affect the request. The engine checks source freshness before synthesis. Freshness controls The engine uses its default freshness rules. Saved **Source Freshness** and **Link Validation** switches do not override those rules. Domain and time-range controls apply directly. ### Child research With recursion enabled, Y2 proposes two or three subtopics and researches them in parallel. Successful findings and unique sources join the root results. A failed child search does not discard successful research. One child layer maximum The editor always enables recursion. Its layer choices run at most one child layer. Set `recursionConfig.enabled: false` through the Profiles API for root-only research. The engine uses breadth-first research. The saved strategy field does not change that behavior. Research has a 480-second overall budget, with up to 120 seconds reserved for child searches. ### Report synthesis Y2 combines the research and removes duplicate sources. The combined research input is limited to 35,000 characters. Synthesis also receives: - The topic and up to 2,000 characters of custom instructions. - The saved report sections and their guidance. - Evidence, confidence, and source-citation requirements. - Branding terminology. - A summary of up to three prior reports. - Structured signal requirements and source URLs. User instructions control presentation. Required report structure and completeness checks still apply. An incomplete report stops before audio and delivery. ## Models and provider routing The profile editor does not select the report model. Generation can retry a model or use a configured fallback after a supported failure. A profile's `modelConfig.modelId` does not replace the executed model sequence. Temperature and output-token settings still apply. If subtopic generation fails, Y2 can use prepared child-query templates. Final synthesis must still produce a complete report. Provider routing settings deny data collection through OpenRouter. ## Post-processing and delivery | Stage | Behavior | | ---------- | -------------------------------------------------------------------------------------------- | | Audio | Attempts narration when enabled. Failure does not block the report. | | Enrichment | Extracts events, graph information, and incident metadata. This must finish before delivery. | | Delivery | Sends the report through each subscription's configured channel. | | Scheduling | Updates delivery state and schedules the next normal run. | Webhooks contain report status, counts, audio availability, and API links. They do not contain the complete report. See [Webhook delivery](https://y2.dev/docs/delivery/webhooks). ## Failure recovery Report state is `generating`, `completed`, `failed`, or `canceled`. A run has a 45-minute execution lease. Recovery can extend it once by 30 minutes. Eligible failures can retry three times, after 5 minutes, 15 minutes, and 1 hour. Recovery resumes the failed step when workflow history is available. Otherwise, it queues a fresh run. After retries end, Y2 repairs the regular schedule. A current run or pending retry prevents duplicate starts. Check the profile's state before starting another run. ## Configure the implemented workflow Use [Create a profile](https://y2.dev/docs/profiles/creating) to set the topic, sections, research controls, and delivery. Use [Schedule profile reports](https://y2.dev/docs/profiles/scheduling) to change its cadence. ## API boundary Use the [Profiles API](https://y2.dev/docs/api/profiles) to create or change a profile. Use the [Reports API](https://y2.dev/docs/api/reports) to read its output. There is no public endpoint for starting an arbitrary internal workflow. Profile writes require `profiles:write`. Report reads require the corresponding `reports:*` scope. --- # Workspaces (https://y2.dev/docs/workspaces/) Manage workspace plans, resources, teammates, and shared usage A workspace holds its own plan, resources, API keys, usage, and memberships. All workspaces use the same model. Free, Lite, and Pro include one seat. Elite includes five seats, including the owner. Your first workspace is created during onboarding. Retrying setup or checkout resumes that workspace. An invited teammate joins the invited workspace without creating another one. ## Upgrade your workspace Open **Settings → Billing** to manage the active workspace's plan. Upgrading from Pro to Elite unlocks team seats in that same workspace. Its profiles, reports, keys, projects, and billing history stay with it. Only the owner can manage billing. An Elite workspace can have an approved higher seat allowance. Contact Y2 to arrange expansion. Additional seats do not multiply the workspace's credits, profiles, Automations, or API limits. ## Switch or create workspaces Use the workspace menu in the app sidebar to switch. Each entry shows its name, plan, and your role. **Settings → Workspace** also shows seat usage and lets owners and admins rename it. To create a workspace, select **New workspace**. Enter a name of 2–80 characters. It starts on Free with its own resources and billing. Upgrade that workspace to Elite to invite teammates. Creating it does not copy another workspace's subscription or data. Switching changes which workspace the app reads and writes. It does not move resources. Suspended memberships do not appear in the switcher. If no accessible workspace remains, the app lets you create one before continuing. ## Invite teammates on Elite 1. Switch to the workspace. 2. Open **Settings → Members** as an owner or admin. 3. Create an invitation for the recipient's email. 4. Assign an `admin`, `member`, or `viewer` role. 5. Ask the recipient to sign in with that verified email and request access. 6. Approve the request as an owner or admin. The recipient can then use the workspace. The owner, active members, and unexpired pending invitations must fit within the seat allowance. An invitation reserves a seat. Suspended members do not. Owners and admins can revoke invitations. Owners can change non-owner roles or remove members. A non-owner can leave the workspace. ## Roles and management permissions | Operation | Owner | Admin | Member | Viewer | | ----------------------------------------------- | ----- | ----- | ------ | ------ | | Switch into an active seat | Yes | Yes | Yes | Yes | | View the member roster | Yes | Yes | Yes | Yes | | Rename the workspace | Yes | Yes | No | No | | Invite people, approve requests, revoke invites | Yes | Yes | No | No | | View governance and audit activity | Yes | Yes | No | No | | Manage workspace API keys | Yes | Yes | No | No | | Change another member's role or remove them | Yes | No | No | No | | Manage billing | Yes | No | No | No | | Delete an empty workspace | Yes | Yes | No | No | Role requirements also depend on the resource. Owners and admins can manage workspace profiles. Members can write profiles they created. Viewers cannot write profiles. Projects start private and support explicit member grants. Automation definitions remain private to their owner. Governance access does not grant access to another member's private Project content. ## Seat limits and downgrades When a workspace moves to a one-seat plan, the owner keeps access and other memberships are suspended. Their membership records remain available for restoration. Returning to Elite restores members in a deterministic order up to the available seat allowance. A downgrade applies only to that workspace. Moving to Free or Lite pauses profiles beyond the new allowance while preserving their ownership and privacy. Resources in other workspaces are unaffected. ## Governance and shared limits On Elite, owners and admins can open **Settings → Governance**. It shows shared Agent Y2 credits, member usage, API keys, and recent audit records. Credit attribution does not create separate allowances for each member. Activity units are informational and are not Agent Y2 credits. The audit log includes membership actions and material Project and Automation changes. It is not a complete log of every report, chat message, model call, or API operation. Pro and Elite support workspace API keys. Owners and admins manage them. Requests use the workspace associated with the key. Rotating keys or adding members does not multiply request limits or credit allowances. See [Plans and limits](https://y2.dev/docs/plans) for current allowances. ## Delete a workspace Only an owner or admin can delete an empty workspace. Open **Settings → Workspace**. Type its name to confirm deletion. The checklist identifies billing subscriptions and dependent resources that must be resolved first. Deletion removes the workspace and its memberships, invitations, audit records, and rate counters. Users with another accessible membership can continue there. Account deletion also checks workspace ownership. An account that owns a workspace with other members must resolve that shared ownership before its billing or account can be removed. ## Related guides [Plans and limits](https://y2.dev/docs/plans): Compare workspace features, seats, API keys, and usage limits [API authentication](https://y2.dev/docs/api/authentication): Create and protect workspace credentials [Create profiles](https://y2.dev/docs/profiles/creating): Understand profile ownership and workspace capacity