Y2 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.