v1
latestOpenAPI 3.1.02026-07-13580393.0 KBParagraphs
Get a paragraph with surrounding context
Returns the target paragraph along with N paragraphs before and after it (ordered by sort_id). Useful for AI agents doing RAG that need surrounding context for better understanding. The window query parameter controls how many paragraphs before/after to include (default: 2, max: 10).
Use ?include=entities to include typed entity mentions in the response.
get/paragraphs/{ref}/context
Path parameters
refstring required
Query parameters
windowinteger
includestring
format'default' | 'rag'
lang'eng' | 'es' | 'fr' | 'pt' | 'de' | 'ko'
Response
Paragraph with context