{ "libraryId": "/vercel/next.js", "codeSnippets": [ { "codeTitle": "Middleware Authentication Example", "codeDescription": "Shows how to implement authentication checks in Next.js middleware", "codeLanguage": "typescript", "codeTokens": 150, "codeId": "https://github.com/vercel/next.js/blob/canary/docs/middleware.mdx#_snippet_0", "pageTitle": "Middleware", "codeList": [ { "language": "typescript", "code": "import { NextResponse } from 'next/server'\nimport type { NextRequest } from 'next/server'\n\nexport function middleware(request: NextRequest) {\n const token = request.cookies.get('token')\n if (!token) {\n return NextResponse.redirect(new URL('/login', request.url))\n }\n return NextResponse.next()\n}" } ], "rank": 2 } ], "infoSnippets": [ { "pageId": "https://github.com/vercel/next.js/blob/canary/docs/middleware.mdx", "breadcrumb": "Routing > Middleware", "content": "Middleware allows you to run code before a request is completed...", "contentTokens": 200, "rank": 1 } ]}
Context
Get documentation context
Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, rank gives that order. A version in the library ID that is not indexed is not an error: a ready tag that matches the requested numbers is served (15 serves v15.1.8); otherwise the newest stable release of the requested line when it is newer than the request (v2.3.1 for 2.0.0; below 1.0, the same minor), or else the library’s current documentation. A prerelease tag serves only a request for that prerelease. The text response then starts with a version note when the served documentation is not the requested version, and the JSON response carries a version object. A version that is not indexed for a public GitHub library is queued for indexing in the background, so a later request for it can be answered. A branch or channel name that is not indexed (/owner/repo/canary), or a version with nothing ready to serve, still returns 404 version_not_found. When the requested library has moved to another library ID, the response serves the new library (up to three moves, keeping the requested version): the text output starts with a one-line note that names the old and new IDs, and the JSON output’s libraryId is the new ID.
{ "libraryId": "/vercel/next.js", "codeSnippets": [ { "codeTitle": "Middleware Authentication Example", "codeDescription": "Shows how to implement authentication checks in Next.js middleware", "codeLanguage": "typescript", "codeTokens": 150, "codeId": "https://github.com/vercel/next.js/blob/canary/docs/middleware.mdx#_snippet_0", "pageTitle": "Middleware", "codeList": [ { "language": "typescript", "code": "import { NextResponse } from 'next/server'\nimport type { NextRequest } from 'next/server'\n\nexport function middleware(request: NextRequest) {\n const token = request.cookies.get('token')\n if (!token) {\n return NextResponse.redirect(new URL('/login', request.url))\n }\n return NextResponse.next()\n}" } ], "rank": 2 } ], "infoSnippets": [ { "pageId": "https://github.com/vercel/next.js/blob/canary/docs/middleware.mdx", "breadcrumb": "Routing > Middleware", "content": "Middleware allows you to run code before a request is completed...", "contentTokens": 200, "rank": 1 } ]}
Authorizations
Authorization
string
header
required
Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely. Every key can read the management API (/v2/teamspaces/*), except personal data: member and invitation emails, library requesters, visitor questions, Docs7 reader searches, conversations, feedback and feature requests, and the GitHub account behind a build. To read those or make changes there, the key must be created with Write access ticked; other keys get 403 write_access_required. A teamspace can limit API keys to owners and admins, or turn them off for OAuth only; a key that its teamspace's policy refuses gets 403 api_key_admins_only or api_keys_disabled.
Query Parameters
libraryId
string
required
Context7-compatible library ID — the URL path of the library on context7.com. Use /owner/repo for GitHub repositories, or /<source>/<id> for other sources (websites, llms.txt, GitLab/Bitbucket, etc.). Optionally suffix with /<version> or @<version> to pin a specific version. See Library ID format.
Required string length: 1 - 500
Pattern: ^/[^/]+/[^/]+([/@][^/]+)?$
query
string
required
User's original question or task - used for intelligent relevance ranking
Required string length: 1 - 500
type
enum<string>
default:txt
Response format type
Available options:
json,
txt
fast
enum<string>
default:false
When true, skip LLM reranking and return top vector-search results directly. Trades relevance quality for lower latency.
Available options:
true,
false
language
string
Optional programming language the caller writes in, such as Python or TypeScript. A soft ranking preference: the SDK and code examples in that language rank first, and other documentation is still returned when nothing in that language matches. Only the first 40 characters are used.
version
string
Optional version of the library the caller's project uses, such as 15.4.3. It wins over a version in libraryId. A value copied from a package file (^15.4.3, ~1.2, 15.x) keeps its first version. latest (any case) is the same as no version; any other value with no version (any) is a 400 validation_error with the message Invalid version, as on /v3/search. A version with indexed documentation is served as is. Otherwise the smallest indexed version above it in its major serves it (versions are tagged at the newest release of a group of releases whose docs barely differ, so that version covers the releases below it); for an old major newer than all its indexed versions, that major's newest version; else the current documentation. The response then names the version served (a Version note in text, the version field in JSON).
ID of the library that served the response, with the requested version tag. It differs from the requested ID when the library has moved; a served version that differs from the requested one is reported in version.
Example:
"/vercel/next.js"
rules
object
Optional library-specific rules and guidelines
Show child attributes
version
object
Present only when the library ID names a version that is not indexed. Says what was served instead, with the fields of each entry of the Search API's version.libraries. The text response states the same in a leading version note when the status is unverified.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Context7 MCP","description":"Up-to-date docs for AI agents.","colors":{"primary":"#10B981","light":"#ECFDF5","dark":"#064E3B"},"logo":{"light":"https://mintcdn.com/context7/U6tImExBAiuicuew/public/logo/logo.svg?fit=max\u0026auto=format\u0026n=U6tImExBAiuicuew\u0026q=85\u0026s=34753285ee1ce27ba8e58f105be9400d","dark":"https://mintcdn.com/context7/U6tImExBAiuicuew/public/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=U6tImExBAiuicuew\u0026q=85\u0026s=af940971c0a07546d58498f92f080237","href":"https://context7.com"},"favicon":"https://mintcdn.com/context7/SgNxFp4zqYjChMW3/public/favicon.ico?fit=max\u0026auto=format\u0026n=SgNxFp4zqYjChMW3\u0026q=85\u0026s=fde1d06735875edbfaece72470929b7e","api":{"playground":{"display":"simple"}},"navbar":{"links":[{"href":"https://context7.com/contact","label":"Contact"},{"href":"https://github.com/upstash/context7","label":"GitHub"}],"primary":{"type":"button","label":"Dashboard","href":"https://context7.com"}},"footer":{"socials":{"x":"https://x.com/context7ai","github":"https://github.com/upstash/context7","discord":"https://upstash.com/discord"},"links":[{"header":"Resources","items":[{"label":"Website","href":"https://context7.com"},{"label":"Submit a Library","href":"https://context7.com/add-library"},{"label":"Dashboard","href":"https://context7.com/dashboard"}]},{"header":"Community","items":[{"label":"GitHub","href":"https://github.com/upstash/context7"},{"label":"Discord","href":"https://upstash.com/discord"},{"label":"Twitter","href":"https://x.com/context7ai"}]}]},"integrations":{"intercom":{"appId":"rtjkeau6"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"context7","hasAudioNarration":false,"actualSubdomain":"context7","customDomains":["context7.com"],"gitSource":{"type":"github","owner":"upstash","repo":"context7","deployBranch":"master","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b07f6182271807f99494add","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"Context7","count":432},{"language":"default","tag":"API Reference","count":125},{"language":"default","tag":"API","count":116},{"language":"default","tag":"Docs7","count":80},{"language":"default","tag":"Enterprise","count":43},{"language":"default","tag":"On-Premise","count":37},{"language":"default","tag":"Docs7 Sites","count":28},{"language":"default","tag":"Components","count":26},{"language":"default","tag":"Teamspace Admin","count":23},{"language":"default","tag":"Teamspace Libraries","count":22}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/context/get-documentation-context","slug":"/api-reference/context/get-documentation-context","pageMetadata":{"title":"Get documentation context","description":"Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, `rank` gives that order. A version in the library ID that is not indexed is not an error: a ready tag that matches the requested numbers is served (`15` serves v15.1.8); otherwise the newest stable release of the requested line when it is newer than the request (v2.3.1 for 2.0.0; below 1.0, the same minor), or else the library's current documentation. A prerelease tag serves only a request for that prerelease. The text response then starts with a version note when the served documentation is not the requested version, and the JSON response carries a `version` object. A version that is not indexed for a public GitHub library is queued for indexing in the background, so a later request for it can be answered. A branch or channel name that is not indexed (`/owner/repo/canary`), or a version with nothing ready to serve, still returns 404 `version_not_found`. When the requested library has moved to another library ID, the response serves the new library (up to three moves, keeping the requested version): the text output starts with a one-line note that names the old and new IDs, and the JSON output's `libraryId` is the new ID.","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/context","href":"/api-reference/context/get-documentation-context","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, \", _jsx(_components.code, {\n children: \"rank\"\n }), \" gives that order. A version in the library ID that is not indexed is not an error: a ready tag that matches the requested numbers is served (\", _jsx(_components.code, {\n children: \"15\"\n }), \" serves v15.1.8); otherwise the newest stable release of the requested line when it is newer than the request (v2.3.1 for 2.0.0; below 1.0, the same minor), or else the library’s current documentation. A prerelease tag serves only a request for that prerelease. The text response then starts with a version note when the served documentation is not the requested version, and the JSON response carries a \", _jsx(_components.code, {\n children: \"version\"\n }), \" object. A version that is not indexed for a public GitHub library is queued for indexing in the background, so a later request for it can be answered. A branch or channel name that is not indexed (\", _jsx(_components.code, {\n children: \"/owner/repo/canary\"\n }), \"), or a version with nothing ready to serve, still returns 404 \", _jsx(_components.code, {\n children: \"version_not_found\"\n }), \". When the requested library has moved to another library ID, the response serves the new library (up to three moves, keeping the requested version): the text output starts with a one-line note that names the old and new IDs, and the JSON output’s \", _jsx(_components.code, {\n children: \"libraryId\"\n }), \" is the new ID.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get documentation context","description":"Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, `rank` gives that order. A version in the library ID that is not indexed is not an error: a ready tag that matches the requested numbers is served (`15` serves v15.1.8); otherwise the newest stable release of the requested line when it is newer than the request (v2.3.1 for 2.0.0; below 1.0, the same minor), or else the library's current documentation. A prerelease tag serves only a request for that prerelease. The text response then starts with a version note when the served documentation is not the requested version, and the JSON response carries a `version` object. A version that is not indexed for a public GitHub library is queued for indexing in the background, so a later request for it can be answered. A branch or channel name that is not indexed (`/owner/repo/canary`), or a version with nothing ready to serve, still returns 404 `version_not_found`. When the requested library has moved to another library ID, the response serves the new library (up to three moves, keeping the requested version): the text output starts with a one-line note that names the old and new IDs, and the JSON output's `libraryId` is the new ID.","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/context","href":"/api-reference/context/get-documentation-context","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Get documentation context","description":"Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, `rank` gives that order. A version in the library ID that is not indexed is not an error: a ready tag that matches the requested numbers is served (`15` serves v15.1.8); otherwise the newest stable release of the requested line when it is newer than the request (v2.3.1 for 2.0.0; below 1.0, the same minor), or else the library's current documentation. A prerelease tag serves only a request for that prerelease. The text response then starts with a version note when the served documentation is not the requested version, and the JSON response carries a `version` object. A version that is not indexed for a public GitHub library is queued for indexing in the background, so a later request for it can be answered. A branch or channel name that is not indexed (`/owner/repo/canary`), or a version with nothing ready to serve, still returns 404 `version_not_found`. When the requested library has moved to another library ID, the response serves the new library (up to three moves, keeping the requested version): the text output starts with a one-line note that names the old and new IDs, and the JSON output's `libraryId` is the new ID.","operationId":"getContext","tags":["Context"],"parameters":["b0322062-e4ff-4b4a-9d7c-af55c3add1c3","b4792c33-fbf8-4106-8864-56f98ee02e94","516b0405-ae99-42a8-9564-d58e772a648a","f44c6897-8069-41b4-95d2-a786b234b318","2fb0de6c-5c96-4e00-9511-d4dc9421cd19","32a2524d-9a0e-4064-9cf1-ad68d25dd020"],"responses":{"200":"f516db36-c66a-43d3-9f99-55947d54cd97","202":"9fb0fa39-8635-4a64-ab3c-81467555c1d0","301":"164857e2-5003-4c67-ba67-bc853a3214c1","400":"dc848c24-e2f1-463d-9906-79b489a72e6d","401":"932e21af-d1ee-461e-861c-eeedcff8fc04","402":"2d0bd71b-bce8-42c7-8d28-b7556a7f6dbe","403":"86b0ce44-369d-4eb5-9e54-c3e7018135b9","404":"2aaa618e-fd9d-44dd-8049-d9b1e4c605cc","422":"156c5526-bcaa-4373-98e2-1102ec4b1491","429":"e1d31df1-5874-43af-b173-942268810ed6","500":"fcfa7391-ec2c-4093-86a3-c074893edb31"},"security":["fb960243-4c4e-4445-b37e-9017f0f61cf3","f7088b01-2a19-422a-a949-95c5834ab9a9"],"method":"get","type":"path","servers":["45f08b63-5e12-429a-907c-2f4fcd752aec"],"path":"/v2/context","baseUrlOptions":["https://context7.com/api"],"title":"Get documentation context","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"b0322062-e4ff-4b4a-9d7c-af55c3add1c3":{"name":"libraryId","in":"query","description":"Context7-compatible library ID — the URL path of the library on context7.com. Use `/owner/repo` for GitHub repositories, or `/\u003csource>/\u003cid>` for other sources (websites, llms.txt, GitLab/Bitbucket, etc.). Optionally suffix with `/\u003cversion>` or `@\u003cversion>` to pin a specific version. See [Library ID format](/api-guide#library-id-format).","required":true,"schema":{"type":"string","minLength":1,"maxLength":500,"pattern":"^/[^/]+/[^/]+([/@][^/]+)?$","isRequired":true,"description":"Context7-compatible library ID — the URL path of the library on context7.com. Use `/owner/repo` for GitHub repositories, or `/\u003csource>/\u003cid>` for other sources (websites, llms.txt, GitLab/Bitbucket, etc.). Optionally suffix with `/\u003cversion>` or `@\u003cversion>` to pin a specific version. See [Library ID format](/api-guide#library-id-format).","uniqueKey":"","typeLabel":"string"},"examples":{"github":{"summary":"GitHub repository","value":"/vercel/next.js"},"website":{"summary":"Website source","value":"/websites/uploadcare_com"},"llmstxt":{"summary":"llms.txt source","value":"/llmstxt/example"},"withVersion":{"summary":"With specific version (slash)","value":"/vercel/next.js/v14.3.0"},"withVersionAt":{"summary":"With specific version (@ syntax)","value":"/vercel/next.js@v14.3.0"}}},"b4792c33-fbf8-4106-8864-56f98ee02e94":{"name":"query","in":"query","description":"User's original question or task - used for intelligent relevance ranking","required":true,"schema":{"type":"string","minLength":1,"maxLength":500,"isRequired":true,"description":"User's original question or task - used for intelligent relevance ranking","uniqueKey":"","typeLabel":"string"},"example":"How to manage state with hooks"},"516b0405-ae99-42a8-9564-d58e772a648a":{"name":"type","in":"query","description":"Response format type","required":false,"schema":{"type":"string","enum":["json","txt"],"default":"txt","isRequired":false,"description":"Response format type","uniqueKey":"","typeLabel":"enum\u003cstring>"},"example":"json"},"f44c6897-8069-41b4-95d2-a786b234b318":{"name":"fast","in":"query","description":"When `true`, skip LLM reranking and return top vector-search results directly. Trades relevance quality for lower latency.","required":false,"schema":{"type":"string","enum":["true","false"],"default":"false","isRequired":false,"description":"When `true`, skip LLM reranking and return top vector-search results directly. Trades relevance quality for lower latency.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"example":"true"},"2fb0de6c-5c96-4e00-9511-d4dc9421cd19":{"name":"language","in":"query","description":"Optional programming language the caller writes in, such as `Python` or `TypeScript`. A soft ranking preference: the SDK and code examples in that language rank first, and other documentation is still returned when nothing in that language matches. Only the first 40 characters are used.","required":false,"schema":{"type":"string","isRequired":false,"description":"Optional programming language the caller writes in, such as `Python` or `TypeScript`. A soft ranking preference: the SDK and code examples in that language rank first, and other documentation is still returned when nothing in that language matches. Only the first 40 characters are used.","uniqueKey":"","typeLabel":"string"},"example":"Python"},"32a2524d-9a0e-4064-9cf1-ad68d25dd020":{"name":"version","in":"query","description":"Optional version of the library the caller's project uses, such as `15.4.3`. It wins over a version in `libraryId`. A value copied from a package file (`^15.4.3`, `~1.2`, `15.x`) keeps its first version. `latest` (any case) is the same as no version; any other value with no version (`any`) is a 400 `validation_error` with the message `Invalid version`, as on `/v3/search`. A version with indexed documentation is served as is. Otherwise the smallest indexed version above it in its major serves it (versions are tagged at the newest release of a group of releases whose docs barely differ, so that version covers the releases below it); for an old major newer than all its indexed versions, that major's newest version; else the current documentation. The response then names the version served (a Version note in text, the version field in JSON).","required":false,"schema":{"type":"string","pattern":"^([Ll][Aa][Tt][Ee][Ss][Tt]|(.*[^A-Za-z0-9._])?[Vv]?[0-9].*)$","isRequired":false,"description":"Optional version of the library the caller's project uses, such as `15.4.3`. It wins over a version in `libraryId`. A value copied from a package file (`^15.4.3`, `~1.2`, `15.x`) keeps its first version. `latest` (any case) is the same as no version; any other value with no version (`any`) is a 400 `validation_error` with the message `Invalid version`, as on `/v3/search`. A version with indexed documentation is served as is. Otherwise the smallest indexed version above it in its major serves it (versions are tagged at the newest release of a group of releases whose docs barely differ, so that version covers the releases below it); for an old major newer than all its indexed versions, that major's newest version; else the current documentation. The response then names the version served (a Version note in text, the version field in JSON).","uniqueKey":"","typeLabel":"string"},"example":"15.4.3"}},"responses":{"f516db36-c66a-43d3-9f99-55947d54cd97":{"description":"Documentation context","content":{"application/json":{"schema":{"type":"object","description":"Documentation context response","properties":{"codeSnippets":{"type":"array","description":"Relevant code snippets","items":{"type":"object","description":"A code snippet from library documentation","required":["rank","codeTitle","codeDescription","codeLanguage","codeTokens","codeId","pageTitle","codeList"],"properties":{"codeTitle":{"type":"string","description":"Title of the code snippet","isRequired":true,"uniqueKey":"codeSnippets.items.[INDEX].codeTitle","typeLabel":"string"},"codeDescription":{"type":"string","description":"Description of what the code does","isRequired":true,"uniqueKey":"codeSnippets.items.[INDEX].codeDescription","typeLabel":"string"},"codeLanguage":{"type":"string","description":"Primary programming language","isRequired":true,"uniqueKey":"codeSnippets.items.[INDEX].codeLanguage","typeLabel":"string"},"codeTokens":{"type":"integer","description":"Token count for the snippet","isRequired":true,"uniqueKey":"codeSnippets.items.[INDEX].codeTokens","typeLabel":"integer"},"codeId":{"type":"string","description":"URL to source location","isRequired":true,"uniqueKey":"codeSnippets.items.[INDEX].codeId","typeLabel":"string"},"pageTitle":{"type":"string","description":"Title of the documentation page","isRequired":true,"uniqueKey":"codeSnippets.items.[INDEX].pageTitle","typeLabel":"string"},"codeList":{"type":"array","description":"Code examples in different languages","items":{"type":"object","description":"A single code example","properties":{"language":{"type":"string","description":"Programming language","isRequired":true,"uniqueKey":"codeSnippets.items.[INDEX].codeList.items.[INDEX].language","typeLabel":"string"},"code":{"type":"string","description":"The actual code content","isRequired":true,"uniqueKey":"codeSnippets.items.[INDEX].codeList.items.[INDEX].code","typeLabel":"string"}},"required":["language","code"],"uniqueKey":"codeSnippets.items.[INDEX].codeList.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"codeSnippets.items.[INDEX].codeList","typeLabel":"object[]"},"rank":{"type":"integer","minimum":1,"description":"1-based position in the text response, shared by codeSnippets and infoSnippets. Sort both lists together by rank to read the snippets in the order the text response gives them (the selection model's relevance order when it ranked them).","example":1,"isRequired":true,"uniqueKey":"codeSnippets.items.[INDEX].rank","typeLabel":"integer"},"isDynamic":{"type":"boolean","description":"Whether this snippet was recovered from the dynamic source-code index instead of the primary docs index","uniqueKey":"codeSnippets.items.[INDEX].isDynamic","typeLabel":"boolean"},"sourceFile":{"type":"string","description":"Repo-relative source file path for dynamic snippets","uniqueKey":"codeSnippets.items.[INDEX].sourceFile","typeLabel":"string"}},"uniqueKey":"codeSnippets.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"codeSnippets","typeLabel":"object[]"},"infoSnippets":{"type":"array","description":"Relevant documentation snippets","items":{"type":"object","description":"A documentation snippet","required":["rank","content","contentTokens"],"properties":{"content":{"type":"string","description":"The documentation content","isRequired":true,"uniqueKey":"infoSnippets.items.[INDEX].content","typeLabel":"string"},"contentTokens":{"type":"integer","description":"Token count for the content","isRequired":true,"uniqueKey":"infoSnippets.items.[INDEX].contentTokens","typeLabel":"integer"},"rank":{"type":"integer","minimum":1,"description":"1-based position in the text response, shared by codeSnippets and infoSnippets. Sort both lists together by rank to read the snippets in the order the text response gives them (the selection model's relevance order when it ranked them).","example":1,"isRequired":true,"uniqueKey":"infoSnippets.items.[INDEX].rank","typeLabel":"integer"},"pageId":{"type":"string","description":"URL to source page","uniqueKey":"infoSnippets.items.[INDEX].pageId","typeLabel":"string"},"breadcrumb":{"type":"string","description":"Navigation breadcrumb path","uniqueKey":"infoSnippets.items.[INDEX].breadcrumb","typeLabel":"string"}},"uniqueKey":"infoSnippets.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"infoSnippets","typeLabel":"object[]"},"libraryId":{"type":"string","description":"ID of the library that served the response, with the requested version tag. It differs from the requested ID when the library has moved; a served version that differs from the requested one is reported in `version`.","example":"/vercel/next.js","uniqueKey":"libraryId","typeLabel":"string"},"rules":{"type":"object","description":"Optional library-specific rules and guidelines","properties":{"global":{"type":"array","description":"Global team rules","items":{"type":"string","uniqueKey":"rules.global.items.[INDEX]","typeLabel":"string"},"uniqueKey":"rules.global","typeLabel":"string[]"},"libraryOwn":{"type":"array","description":"Rules defined by the library owner","items":{"type":"string","uniqueKey":"rules.libraryOwn.items.[INDEX]","typeLabel":"string"},"uniqueKey":"rules.libraryOwn","typeLabel":"string[]"},"libraryTeam":{"type":"array","description":"Library-specific rules from the team","items":{"type":"string","uniqueKey":"rules.libraryTeam.items.[INDEX]","typeLabel":"string"},"uniqueKey":"rules.libraryTeam","typeLabel":"string[]"}},"uniqueKey":"rules","typeLabel":"object"},"version":{"type":"object","description":"Present only when the library ID names a version that is not indexed. Says what was served instead, with the fields of each entry of the Search API's `version.libraries`. The text response states the same in a leading version note when the status is unverified.","required":["libraryId","requested","served","status"],"properties":{"libraryId":{"type":"string","description":"The library id served, including the served tag when one was matched.","example":"/vercel/next.js/v15.1.11","isRequired":true,"uniqueKey":"version.libraryId","typeLabel":"string"},"requested":{"type":"string","description":"The version named by the library ID.","example":"v15.0.0","isRequired":true,"uniqueKey":"version.requested","typeLabel":"string"},"served":{"oneOf":[{"type":"string","description":"The indexed tag served: the matching tag or, when unverified, the newest stable release of the requested line that is newer than the request. Null when current documentation was served instead.","example":"v15.1.11","isRequired":true,"uniqueKey":"version.served.oneOf.0","typeLabel":"string"},{"type":"null","description":"The indexed tag served: the matching tag or, when unverified, the newest stable release of the requested line that is newer than the request. Null when current documentation was served instead.","example":"v15.1.11","isRequired":true,"uniqueKey":"version.served.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"version.served","typeLabel":"string | null"},"status":{"type":"string","enum":["verified","unverified"],"description":"verified when the served tag matches the requested version (`15` served by v15.1.11); unverified when another release or current documentation was served.","isRequired":true,"uniqueKey":"version.status","typeLabel":"enum\u003cstring>"}},"example":{"libraryId":"/vercel/next.js/v15.1.11","requested":"v15.0.0","served":"v15.1.11","status":"unverified"},"uniqueKey":"version","typeLabel":"object"}},"required":["codeSnippets","infoSnippets"],"uniqueKey":"","typeLabel":"object"},"example":{"libraryId":"/vercel/next.js","codeSnippets":[{"codeTitle":"Middleware Authentication Example","codeDescription":"Shows how to implement authentication checks in Next.js middleware","codeLanguage":"typescript","codeTokens":150,"codeId":"https://github.com/vercel/next.js/blob/canary/docs/middleware.mdx#_snippet_0","pageTitle":"Middleware","codeList":[{"language":"typescript","code":"import { NextResponse } from 'next/server'\nimport type { NextRequest } from 'next/server'\n\nexport function middleware(request: NextRequest) {\n const token = request.cookies.get('token')\n if (!token) {\n return NextResponse.redirect(new URL('/login', request.url))\n }\n return NextResponse.next()\n}"}],"rank":2}],"infoSnippets":[{"pageId":"https://github.com/vercel/next.js/blob/canary/docs/middleware.mdx","breadcrumb":"Routing > Middleware","content":"Middleware allows you to run code before a request is completed...","contentTokens":200,"rank":1}]},"examples":{"Example":{"title":"Example","value":{"libraryId":"/vercel/next.js","codeSnippets":[{"codeTitle":"Middleware Authentication Example","codeDescription":"Shows how to implement authentication checks in Next.js middleware","codeLanguage":"typescript","codeTokens":150,"codeId":"https://github.com/vercel/next.js/blob/canary/docs/middleware.mdx#_snippet_0","pageTitle":"Middleware","codeList":[{"language":"typescript","code":"import { NextResponse } from 'next/server'\nimport type { NextRequest } from 'next/server'\n\nexport function middleware(request: NextRequest) {\n const token = request.cookies.get('token')\n if (!token) {\n return NextResponse.redirect(new URL('/login', request.url))\n }\n return NextResponse.next()\n}"}],"rank":2}],"infoSnippets":[{"pageId":"https://github.com/vercel/next.js/blob/canary/docs/middleware.mdx","breadcrumb":"Routing > Middleware","content":"Middleware allows you to run code before a request is completed...","contentTokens":200,"rank":1}]}}},"exampleType":"examples"},"text/plain":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"example":"### Middleware Authentication Example\n\nSource: https://github.com/vercel/next.js/blob/canary/docs/middleware.mdx\n\nShows how to implement authentication checks in Next.js middleware\n\n```typescript\nimport { NextResponse } from 'next/server'\n...\n```","examples":{"Example":{"title":"Example","value":"### Middleware Authentication Example\n\nSource: https://github.com/vercel/next.js/blob/canary/docs/middleware.mdx\n\nShows how to implement authentication checks in Next.js middleware\n\n```typescript\nimport { NextResponse } from 'next/server'\n...\n```"}},"exampleType":"examples"}},"exampleType":"examples"},"9fb0fa39-8635-4a64-ab3c-81467555c1d0":{"description":"Accepted - Library not yet finalized","content":{"application/json":{"schema":{"type":"object","description":"Standard error response","properties":{"error":{"type":"string","description":"Error code identifier","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"library_not_finalized","message":"Library /owner/repo is still being processed. Please try again shortly."},"examples":{"Example":{"title":"Example","value":{"error":"library_not_finalized","message":"Library /owner/repo is still being processed. Please try again shortly."}}},"exampleType":"examples"}},"exampleType":"examples"},"164857e2-5003-4c67-ba67-bc853a3214c1":{"description":"Moved Permanently - The library moves more than three times or in a loop, so no documentation is served. `redirectUrl` is the next library ID in the chain.","content":{"application/json":{"schema":{"type":"object","description":"Standard error response","required":["error","message"],"properties":{"error":{"type":"string","description":"Error code identifier","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"redirectUrl":{"type":"string","description":"New location of the library","uniqueKey":"redirectUrl","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"library_redirected","message":"Library /owner/repo has been redirected to this library: /new-owner/new-repo.","redirectUrl":"/new-owner/new-repo"},"examples":{"Example":{"title":"Example","value":{"error":"library_redirected","message":"Library /owner/repo has been redirected to this library: /new-owner/new-repo.","redirectUrl":"/new-owner/new-repo"}}},"exampleType":"examples"}},"exampleType":"examples"},"dc848c24-e2f1-463d-9906-79b489a72e6d":{"description":"Bad Request - Invalid input parameters","content":{"application/json":{"schema":{"type":"object","description":"Standard error response","properties":{"error":{"type":"string","description":"Error code identifier","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"validationError":{"title":"validationError","summary":"Validation error","value":{"error":"validation_error","message":"Library name is required"}},"invalidLibraryId":{"title":"invalidLibraryId","summary":"Invalid library ID format","value":{"error":"invalid_library_id","message":"Invalid library ID format. Expected: `/owner/repo` for GitHub repositories, or `/\u003csource>/\u003cid>` for other sources (the URL path of the library on context7.com)"}}},"exampleType":"examples"}},"exampleType":"examples"},"932e21af-d1ee-461e-861c-eeedcff8fc04":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","description":"Standard error response","properties":{"error":{"type":"string","description":"Error code identifier","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"invalid_api_key","message":"Invalid API key. Please check your API key. API keys should start with 'ctx7sk' prefix."},"examples":{"Example":{"title":"Example","value":{"error":"invalid_api_key","message":"Invalid API key. Please check your API key. API keys should start with 'ctx7sk' prefix."}}},"exampleType":"examples"}},"exampleType":"examples"},"2d0bd71b-bce8-42c7-8d28-b7556a7f6dbe":{"description":"Payment Required - the teamspace's configured monthly spending limit has been reached. A teamspace owner or admin can raise the limit in billing settings, or the cap will reset at the start of the next billing month.","content":{"application/json":{"schema":{"type":"object","description":"Standard error response","properties":{"error":{"type":"string","description":"Error code identifier","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"spending_limit_exceeded","message":"Monthly spending limit of $5.00 reached for this teamspace. An owner or admin can raise the limit at https://context7.com/dashboard/billing, or the cap will reset at the start of next month."},"examples":{"Example":{"title":"Example","value":{"error":"spending_limit_exceeded","message":"Monthly spending limit of $5.00 reached for this teamspace. An owner or admin can raise the limit at https://context7.com/dashboard/billing, or the cap will reset at the start of next month."}}},"exampleType":"examples"}},"exampleType":"examples"},"86b0ce44-369d-4eb5-9e54-c3e7018135b9":{"description":"Forbidden - Insufficient permissions or plan restrictions","content":{"application/json":{"schema":{"type":"object","description":"Standard error response","properties":{"error":{"type":"string","description":"Error code identifier","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"accessDenied":{"title":"accessDenied","summary":"Library not in allowed list","value":{"error":"access_denied","message":"Access denied: Library /owner/repo is not included in your allowed libraries"}},"insufficientRole":{"title":"insufficientRole","summary":"Insufficient team role","value":{"error":"forbidden","message":"Only team owners and admins can add private repositories"}},"apiKeysDisabled":{"title":"apiKeysDisabled","summary":"The teamspace allows OAuth only","value":{"error":"api_keys_disabled","message":"This teamspace does not allow API keys. Connect with OAuth instead: run `npx ctx7@latest setup --mcp --oauth`, or see https://context7.com/docs/howto/oauth"}},"planRequired":{"title":"planRequired","summary":"Plan upgrade required","value":{"error":"forbidden","message":"Private repositories require a pro plan or team. Upgrade at https://context7.com/plans"}}},"exampleType":"examples"}},"exampleType":"examples"},"2aaa618e-fd9d-44dd-8049-d9b1e4c605cc":{"description":"Not Found - Resource doesn't exist","content":{"application/json":{"schema":{"type":"object","description":"Standard error response","properties":{"error":{"type":"string","description":"Error code identifier","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"libraryNotFound":{"title":"libraryNotFound","summary":"Library not found","value":{"error":"library_not_found","message":"Library \"/owner/repo\" not found. Please check the library ID or your access permissions."}},"versionNotFound":{"title":"versionNotFound","summary":"Version not found","value":{"error":"version_not_found","message":"Version \"canary\" not found for library \"/owner/repo\". Available versions: v2.0.0, v1.5.0"}},"noSnippetsFound":{"title":"noSnippetsFound","summary":"No snippets found","value":{"error":"no_snippets_found","message":"Could not fetch documentation snippets from the library."}},"noRelevantSnippets":{"title":"noRelevantSnippets","summary":"No snippets matched the query","value":{"error":"no_relevant_snippets","message":"No documentation in \"/owner/repo\" matched this query. Try a more specific query with different terms, or search for another library that covers this topic."}},"teamNotFound":{"title":"teamNotFound","summary":"Team not found","value":{"error":"team_not_found","message":"Team not found or access denied"}},"userNotFound":{"title":"userNotFound","summary":"User not found","value":{"error":"user_not_found","message":"User not found"}},"noLibrariesFound":{"title":"noLibrariesFound","summary":"No libraries matched search query","value":{"error":"no_libraries_found","message":"No libraries found for \"nonexistent-lib\". Try a different search term."}}},"exampleType":"examples"}},"exampleType":"examples"},"156c5526-bcaa-4373-98e2-1102ec4b1491":{"description":"Unprocessable Entity - Library is too large or has no code","content":{"application/json":{"schema":{"type":"object","description":"Standard error response","properties":{"error":{"type":"string","description":"Error code identifier","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"tooLarge":{"title":"tooLarge","summary":"Library too large","value":{"error":"library_too_large","message":"Library /owner/repo is too large to process."}},"noCode":{"title":"noCode","summary":"No code found","value":{"error":"no_code_found","message":"Library /owner/repo has no or too few snippets found in documentation files."}}},"exampleType":"examples"}},"exampleType":"examples"},"e1d31df1-5874-43af-b173-942268810ed6":{"description":"Too Many Requests - Rate limit exceeded","headers":{"Retry-After":{"description":"Seconds until rate limit resets","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request limit","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Remaining requests","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Unix timestamp when limit resets","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","description":"Standard error response","properties":{"error":{"type":"string","description":"Error code identifier","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"rate_limit_exceeded","message":"Rate limit exceeded. Please try again later."},"examples":{"Example":{"title":"Example","value":{"error":"rate_limit_exceeded","message":"Rate limit exceeded. Please try again later."}}},"exampleType":"examples"}},"exampleType":"examples"},"fcfa7391-ec2c-4093-86a3-c074893edb31":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","description":"Standard error response","properties":{"error":{"type":"string","description":"Error code identifier","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["error","message"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"internal_error","message":"An error occurred while processing your request"},"examples":{"Example":{"title":"Example","value":{"error":"internal_error","message":"An error occurred while processing your request"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"fb960243-4c4e-4445-b37e-9017f0f61cf3":{},"f7088b01-2a19-422a-a949-95c5834ab9a9":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Get your API key at [context7.com/dashboard](https://context7.com/dashboard). Treat your API key like a password and store it securely. Every key can read the management API (`/v2/teamspaces/*`), except personal data: member and invitation emails, library requesters, visitor questions, Docs7 reader searches, conversations, feedback and feature requests, and the GitHub account behind a build. To read those or make changes there, the key must be created with **Write access** ticked; other keys get 403 `write_access_required`. A teamspace can limit API keys to owners and admins, or turn them off for OAuth only; a key that its teamspace's policy refuses gets 403 `api_key_admins_only` or `api_keys_disabled`.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"45f08b63-5e12-429a-907c-2f4fcd752aec":{"url":"https://context7.com/api","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Get your API key at [context7.com/dashboard](https://context7.com/dashboard). Treat your API key like a password and store it securely. Every key can read the management API (`/v2/teamspaces/*`), except personal data: member and invitation emails, library requesters, visitor questions, Docs7 reader searches, conversations, feedback and feature requests, and the GitHub account behind a build. To read those or make changes there, the key must be created with **Write access** ticked; other keys get 403 `write_access_required`. A teamspace can limit API keys to owners and admins, or turn them off for OAuth only; a key that its teamspace's policy refuses gets 403 `api_key_admins_only` or `api_keys_disabled`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Get your API key at [context7.com/dashboard](https://context7.com/dashboard). Treat your API key like a password and store it securely. Every key can read the management API (`/v2/teamspaces/*`), except personal data: member and invitation emails, library requesters, visitor questions, Docs7 reader searches, conversations, feedback and feature requests, and the GitHub account behind a build. To read those or make changes there, the key must be created with **Write access** ticked; other keys get 403 `write_access_required`. A teamspace can limit API keys to owners and admins, or turn them off for OAuth only; a key that its teamspace's policy refuses gets 403 `api_key_admins_only` or `api_keys_disabled`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"https://context7.com/openapi.json"},"subdomain":"context7","siteName":"Context7 MCP","title":"Get documentation context - Context7 MCP","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T14:59:55.739Z","originalFileLocation":"api-reference/context/get-documentation-context.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, rank gives that order. A version in the library ID that is not indexed is not an error: a ready tag that matches the requested numbers is served (15 serves v15.1.8); otherwise the newest stable release of the requested line when it is newer than the request (v2.3.1 for 2.0.0; below 1.0, the same minor), or else the library\u0026#x27;s current documentation. A prerelease tag serves only a request for that prerelease. The text response then starts with a version note when the served documentation is not the requested version, and the JSON response carries a version object. A version that is not indexed for a public GitHub library is queued for indexing in the background, so a later request for it can be answered. A branch or channel name that is not indexed (/owner/repo/canary), or a version with nothing ready to serve, still returns 404 version_not_found. When the requested library has moved to another library ID, the response serves the new library (up to three moves, keeping the requested version): the text output starts with a one-line note that names the old and new IDs, and the JSON output\u0026#x27;s libraryId is the new ID.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Context7 MCP\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/context7/b-_BfHo-yCLnnnm9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/context7/b-_BfHo-yCLnnnm9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/context7/b-_BfHo-yCLnnnm9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/context7/b-_BfHo-yCLnnnm9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/context7/b-_BfHo-yCLnnnm9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/context7/b-_BfHo-yCLnnnm9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/context7/b-_BfHo-yCLnnnm9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/context7/b-_BfHo-yCLnnnm9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/context7/b-_BfHo-yCLnnnm9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get documentation context - Context7 MCP\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, rank gives that order. A version in the library ID that is not indexed is not an error: a ready tag that matches the requested numbers is served (15 serves v15.1.8); otherwise the newest stable release of the requested line when it is newer than the request (v2.3.1 for 2.0.0; below 1.0, the same minor), or else the library\u0026#x27;s current documentation. A prerelease tag serves only a request for that prerelease. The text response then starts with a version note when the served documentation is not the requested version, and the JSON response carries a version object. A version that is not indexed for a public GitHub library is queued for indexing in the background, so a later request for it can be answered. A branch or channel name that is not indexed (/owner/repo/canary), or a version with nothing ready to serve, still returns 404 version_not_found. When the requested library has moved to another library ID, the response serves the new library (up to three moves, keeping the requested version): the text output starts with a one-line note that names the old and new IDs, and the JSON output\u0026#x27;s libraryId is the new ID.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Context7 MCP\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://context7.com/docs/api-reference/context/get-documentation-context\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://context7.mintlify.site/docs/_mintlify/api/og/v2?division=Context\u0026amp;title=Get+documentation+context\u0026amp;description=Retrieve+intelligent%2C+LLM-reranked+documentation+context+for+natural+language+queries.+Returns+the+most+relevant+code+snippets+and+documentation+for+your+specif\u0026amp;theme=2454ad4c3524da9de9eceb9a\u0026amp;signature=35b7767a1df15701ceeb0e2a47fe7643d86b9bafdf59b1f67390a04a571f04d9\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get documentation context - Context7 MCP\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, rank gives that order. A version in the library ID that is not indexed is not an error: a ready tag that matches the requested numbers is served (15 serves v15.1.8); otherwise the newest stable release of the requested line when it is newer than the request (v2.3.1 for 2.0.0; below 1.0, the same minor), or else the library\u0026#x27;s current documentation. A prerelease tag serves only a request for that prerelease. The text response then starts with a version note when the served documentation is not the requested version, and the JSON response carries a version object. A version that is not indexed for a public GitHub library is queued for indexing in the background, so a later request for it can be answered. A branch or channel name that is not indexed (/owner/repo/canary), or a version with nothing ready to serve, still returns 404 version_not_found. When the requested library has moved to another library ID, the response serves the new library (up to three moves, keeping the requested version): the text output starts with a one-line note that names the old and new IDs, and the JSON output\u0026#x27;s libraryId is the new ID.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://context7.mintlify.site/docs/_mintlify/api/og/v2?division=Context\u0026amp;title=Get+documentation+context\u0026amp;description=Retrieve+intelligent%2C+LLM-reranked+documentation+context+for+natural+language+queries.+Returns+the+most+relevant+code+snippets+and+documentation+for+your+specif\u0026amp;theme=2454ad4c3524da9de9eceb9a\u0026amp;signature=35b7767a1df15701ceeb0e2a47fe7643d86b9bafdf59b1f67390a04a571f04d9\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/context7/b-_BfHo-yCLnnnm9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Context7 MCP\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#10B981\">\u003clink data-mint-head rel=\"canonical\" href=\"https://context7.com/docs/api-reference/context/get-documentation-context\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/context/get-documentation-context.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://context7.com/#organization\",\"name\":\"Context7 MCP\",\"url\":\"https://context7.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/context7/U6tImExBAiuicuew/public/logo/logo.svg?fit=max\u0026auto=format\u0026n=U6tImExBAiuicuew\u0026q=85\u0026s=34753285ee1ce27ba8e58f105be9400d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://context7.com/docs#website\",\"name\":\"Context7 MCP\",\"url\":\"https://context7.com/docs\",\"publisher\":{\"@id\":\"https://context7.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://context7.com/docs/api-reference/context/get-documentation-context#webpage\",\"url\":\"https://context7.com/docs/api-reference/context/get-documentation-context\",\"name\":\"Get documentation context\",\"description\":\"Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, rank gives that order. A version in the library ID that is not indexed is not an error: a ready tag that matches the requested numbers is served (15 serves v15.1.8); otherwise the newest stable release of the requested line when it is newer than the request (v2.3.1 for 2.0.0; below 1.0, the same minor), or else the library's current documentation. A prerelease tag serves only a request for that prerelease. The text response then starts with a version note when the served documentation is not the requested version, and the JSON response carries a version object. A version that is not indexed for a public GitHub library is queued for indexing in the background, so a later request for it can be answered. A branch or channel name that is not indexed (/owner/repo/canary), or a version with nothing ready to serve, still returns 404 version_not_found. When the requested library has moved to another library ID, the response serves the new library (up to three moves, keeping the requested version): the text output starts with a one-line note that names the old and new IDs, and the JSON output's libraryId is the new ID.\",\"dateModified\":\"2026-11-24T14:59:55.739Z\",\"isPartOf\":{\"@id\":\"https://context7.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://context7.com/docs/api-reference/context/get-documentation-context#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://context7.com/docs/api-reference/context/get-documentation-context#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Context7\",\"item\":\"https://context7.com/docs/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https://context7.com/docs/api-guide\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"API Reference\",\"item\":\"https://context7.com/docs/api-reference/search/search-for-libraries\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Get documentation context\",\"item\":\"https://context7.com/docs/api-reference/context/get-documentation-context\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://context7.com/docs/api-reference/context/get-documentation-context#apireference\",\"headline\":\"Get documentation context\",\"name\":\"Get documentation context\",\"description\":\"Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, rank gives that order. A version in the library ID that is not indexed is not an error: a ready tag that matches the requested numbers is served (15 serves v15.1.8); otherwise the newest stable release of the requested line when it is newer than the request (v2.3.1 for 2.0.0; below 1.0, the same minor), or else the library's current documentation. A prerelease tag serves only a request for that prerelease. The text response then starts with a version note when the served documentation is not the requested version, and the JSON response carries a version object. A version that is not indexed for a public GitHub library is queued for indexing in the background, so a later request for it can be answered. A branch or channel name that is not indexed (/owner/repo/canary), or a version with nothing ready to serve, still returns 404 version_not_found. When the requested library has moved to another library ID, the response serves the new library (up to three moves, keeping the requested version): the text output starts with a one-line note that names the old and new IDs, and the JSON output's libraryId is the new ID.\",\"url\":\"https://context7.com/docs/api-reference/context/get-documentation-context\",\"mainEntityOfPage\":{\"@id\":\"https://context7.com/docs/api-reference/context/get-documentation-context#webpage\"},\"dateModified\":\"2026-11-24T14:59:55.739Z\",\"publisher\":{\"@id\":\"https://context7.com/#organization\"},\"isPartOf\":{\"@id\":\"https://context7.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Context7 MCP\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Context7 MCP\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/context/get-documentation-context.md","siteName":"Context7 MCP","nav":{"global":null,"tabs":[{"tab":"Context7","groups":[{"group":"Context7","pages":[{"group":"Get Started","expanded":true,"pages":[{"title":"Intro","sidebarTitle":"Intro","href":"/overview"},{"title":"Installation","href":"/installation"},{"title":"Search API","href":"/search-api"},{"title":"CLI","href":"/clients/cli"},{"title":"Plans \u0026 Pricing","href":"/plans-pricing"},{"title":"Library Owners","href":"/library-owners"},{"title":"Best Practices","href":"/tips"}]},{"group":"How To","expanded":false,"pages":[{"title":"Adding Libraries","href":"/adding-libraries"},{"title":"Keeping Libraries Fresh","href":"/library-updates"},{"title":"Claim Your Library","href":"/howto/claiming-libraries"},{"title":"Verify Your Library","href":"/howto/verification"},{"title":"Add the Chat Widget","href":"/howto/chat-widget"},{"title":"Manage Rules","href":"/howto/rules"},{"title":"Add Private Sources","href":"/howto/private-sources"},{"title":"Experimental Tools","href":"/howto/experimental-tools"}]},{"group":"Ask","expanded":false,"pages":[{"title":"Context7 Ask","sidebarTitle":"Overview","href":"/ask/overview"},{"title":"Quickstart","href":"/ask/quickstart"},{"title":"Questions and Analytics","href":"/ask/dashboard"}]},{"group":"Account","expanded":false,"pages":[{"group":"Authentication","expanded":false,"pages":[{"title":"Manage API Keys","href":"/howto/api-keys"},{"title":"Set Up OAuth","href":"/howto/oauth"}]},{"title":"Monitor Usage","href":"/howto/usage"},{"title":"Manage Your Teamspace","href":"/howto/teamspace"},{"title":"Manage Policies","href":"/howto/policies"},{"title":"Context7 Admin MCP","href":"/howto/admin-mcp"}]},{"group":"Enterprise","expanded":false,"pages":[{"title":"Enterprise","sidebarTitle":"Overview","href":"/enterprise"},{"group":"Auth","pages":[{"group":"Microsoft Entra ID","pages":[{"title":"Microsoft Entra ID SSO","sidebarTitle":"SSO","href":"/enterprise/enterprise-managed-auth/entra-sso"},{"title":"Azure API Management as MCP gateway","sidebarTitle":"Azure APIM gateway","href":"/enterprise/enterprise-managed-auth/entra"},{"title":"Your own MCP gateway with Microsoft Entra ID","sidebarTitle":"Other MCP gateways","href":"/enterprise/enterprise-managed-auth/mcp-gateway-entra"},{"title":"SCIM provisioning with Microsoft Entra ID","sidebarTitle":"SCIM provisioning","href":"/enterprise/enterprise-managed-auth/entra-scim"}]},{"title":"Enterprise-Managed Auth with Okta","sidebarTitle":"Okta","href":"/enterprise/enterprise-managed-auth/okta"}]},{"group":"On-Premise","pages":[{"title":"On-Premise Deployment","sidebarTitle":"Getting Started","href":"/enterprise/on-premise"},{"title":"Changelog","href":"/enterprise/changelog"},{"group":"Integrations","pages":[{"title":"GitHub Integration","sidebarTitle":"GitHub","href":"/enterprise/integrations/github"},{"title":"Other Git Integration","sidebarTitle":"Other Git","href":"/enterprise/integrations/other-git"},{"title":"Gerrit Integration","sidebarTitle":"Gerrit","href":"/enterprise/integrations/gerrit"},{"title":"Confluence Integration","sidebarTitle":"Confluence","href":"/enterprise/integrations/confluence"},{"title":"Google Integration","sidebarTitle":"Google","href":"/enterprise/integrations/google-drive"},{"title":"Notion Integration","sidebarTitle":"Notion","href":"/enterprise/integrations/notion"},{"title":"Azure DevOps Integration","sidebarTitle":"Azure DevOps","href":"/enterprise/integrations/azure-devops"},{"title":"AWS Bedrock","sidebarTitle":"AWS Bedrock","href":"/enterprise/integrations/aws-bedrock"},{"title":"Google Vertex AI","sidebarTitle":"Google Vertex AI","href":"/enterprise/integrations/google-vertex-ai"}]},{"group":"Security","pages":[{"title":"Microsoft Entra ID (SSO)","sidebarTitle":"Entra SSO","href":"/enterprise/security/entra-sso"},{"title":"OpenID Connect (OIDC) SSO","sidebarTitle":"OIDC SSO","href":"/enterprise/security/oidc-sso"},{"title":"SAML 2.0 SSO","sidebarTitle":"SAML SSO","href":"/enterprise/security/saml-sso"},{"title":"Library Access Control","sidebarTitle":"Library Access","href":"/enterprise/security/library-access"},{"title":"OAuth Sign-In for MCP Clients","sidebarTitle":"MCP OAuth","href":"/enterprise/security/mcp-oauth"}]},{"group":"Deployment","pages":[{"title":"Docker Deployment","sidebarTitle":"Docker","href":"/enterprise/deployment/docker"},{"title":"Kubernetes Deployment","sidebarTitle":"Kubernetes","href":"/enterprise/deployment/kubernetes"},{"title":"Helm Deployment","sidebarTitle":"Helm","href":"/enterprise/deployment/helm"},{"title":"Scaling","sidebarTitle":"Scaling","href":"/enterprise/deployment/scaling"},{"title":"Vector Stores","sidebarTitle":"Vector Stores","href":"/enterprise/deployment/vector-stores"}]},{"group":"Features","pages":[{"title":"Library Import","sidebarTitle":"Library Import","href":"/enterprise/library-import"},{"title":"Automatic Repository Updates","sidebarTitle":"Automatic Updates","href":"/enterprise/automatic-repository-updates"},{"title":"GitOps","sidebarTitle":"GitOps","href":"/enterprise/gitops"},{"title":"Authority Labels","sidebarTitle":"Authority Labels","href":"/enterprise/authority-labels"},{"title":"Backup and Restore","sidebarTitle":"Backup \u0026 Restore","href":"/enterprise/backup-restore"},{"title":"Decision Models","sidebarTitle":"Decision Models","href":"/enterprise/decision-models"}]},{"group":"API Reference","pages":[{"title":"Authentication","href":"/enterprise/api/authentication"},{"group":"Search","pages":[{"title":"Search for libraries","openapi":"openapi-enterprise.json GET /v2/libs/search","href":"/enterprise/api/search/search-for-libraries"}]},{"group":"Context","pages":[{"title":"Get documentation context","openapi":"openapi-enterprise.json GET /v2/context","href":"/enterprise/api/context/get-documentation-context"}]},{"group":"Parse","pages":[{"title":"Parse a Git repository","openapi":"openapi-enterprise.json POST /parse","href":"/enterprise/api/parse/parse-a-git-repository"},{"title":"Parse an OpenAPI spec by URL","openapi":"openapi-enterprise.json POST /parse-openapi","href":"/enterprise/api/parse/parse-an-openapi-spec-by-url"},{"title":"Upload an OpenAPI spec file","openapi":"openapi-enterprise.json POST /parse-openapi-upload","href":"/enterprise/api/parse/upload-an-openapi-spec-file"},{"title":"Import a library bundle","openapi":"openapi-enterprise.json POST /import-libraries","href":"/enterprise/api/parse/import-libraries"},{"title":"Parse a website","openapi":"openapi-enterprise.json POST /parse-website","href":"/enterprise/api/parse/parse-a-website"},{"title":"Refresh a library","openapi":"openapi-enterprise.json POST /projects/{projectId}/refresh","href":"/enterprise/api/parse/refresh-a-library"},{"title":"Get parse status","openapi":"openapi-enterprise.json GET /parse-status","href":"/enterprise/api/parse/get-parse-status"}]}]}]}]},{"group":"Security","expanded":false,"pages":[{"title":"Security","sidebarTitle":"Overview","href":"/security/overview"},{"title":"Data Privacy","href":"/security/data-privacy"},{"title":"Infrastructure Security","sidebarTitle":"Infrastructure","href":"/security/infrastructure"},{"title":"Authentication and Access Control","href":"/security/auth-and-access-control"},{"title":"Compliance and Reporting","href":"/security/compliance-and-reporting"},{"title":"Data Safety","href":"/security/data-safety"},{"title":"Best Practices for Users","sidebarTitle":"Best Practices","href":"/security/best-practices"}]},{"group":"Coding Agents","expanded":false,"pages":[{"title":"Claude Code","href":"/clients/claude-code"},{"title":"Codex","href":"/clients/codex"},{"title":"GitHub Copilot CLI","href":"/clients/copilot-cli"},{"title":"Cursor","href":"/clients/cursor"},{"title":"OpenCode","href":"/clients/opencode"},{"title":"Pi","href":"/clients/pi"},{"title":"VS Code","href":"/clients/vscode"},{"title":"MCP Clients","href":"/resources/all-clients"}]},{"group":"API","expanded":false,"pages":[{"title":"API Guide","href":"/api-guide"},{"group":"API Reference","pages":[{"group":"Search","pages":[{"title":"Search for libraries","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/libs/search","href":"/api-reference/search/search-for-libraries"},{"title":"Search documentation in one request","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v3/search","href":"/api-reference/search/search-documentation-in-one-request"},{"title":"Read one web page, optionally narrowed to a question","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v3/fetch","href":"/api-reference/search/read-one-web-page-optionally-narrowed-to-a-question"}]},{"group":"Metrics","pages":[{"title":"Get library usage metrics","description":"Retrieve full usage metrics for a library: cumulative and daily request counters broken down by surface (web page, text docs, MCP, CLI), MCP client daily unique-user breakdown, and lifetime topic and country distributions. The API key must belong to a member of the teamspace that owns the library — claim ownership from the library's admin page on context7.com.","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/libs/metrics","href":"/api-reference/metrics/get-library-usage-metrics"}]},{"group":"Context","pages":[{"title":"Get documentation context","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/context","href":"/api-reference/context/get-documentation-context"}]},{"group":"Ask","pages":[{"title":"Ask a registered website","description":"Answer a question from the pages of one website registered with Context7 Ask. AI agents find this endpoint in the hidden note, llms.txt section or Link header the site publishes. No API key is needed. Without `query`, the endpoint returns a short description of itself.","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/ask","href":"/api-reference/ask/ask-a-registered-website"}]},{"group":"Refresh","pages":[{"title":"Refresh a library","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v1/refresh","href":"/api-reference/refresh/refresh-a-library"}]},{"group":"Policies","pages":[{"title":"Get teamspace policies","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/policies","href":"/api-reference/policies/get-teamspace-policies"},{"title":"Update teamspace policies","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json patch /v2/policies","href":"/api-reference/policies/update-teamspace-policies"}]},{"group":"Usage","pages":[{"title":"Get API usage","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/usage","href":"/api-reference/usage/get-api-usage"}]},{"group":"Add Library","pages":[{"title":"Add a GitHub repository","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/repo/github","href":"/api-reference/add-library/add-a-github-repository"},{"title":"Add a GitLab repository","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/repo/gitlab","href":"/api-reference/add-library/add-a-gitlab-repository"},{"title":"Add a Bitbucket repository","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/repo/bitbucket","href":"/api-reference/add-library/add-a-bitbucket-repository"},{"title":"Add from other Git providers","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/repo/git","href":"/api-reference/add-library/add-from-other-git-providers"},{"title":"Add an OpenAPI specification by URL","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/openapi","href":"/api-reference/add-library/add-an-openapi-specification-by-url"},{"title":"Upload an OpenAPI specification file","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/openapi-upload","href":"/api-reference/add-library/upload-an-openapi-specification-file"},{"title":"Upload a PDF document","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/pdf-upload","href":"/api-reference/add-library/upload-a-pdf-document"},{"title":"Upload documentation files","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/file-upload","href":"/api-reference/add-library/upload-documentation-files"},{"title":"Upload a Microsoft Word document","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/docx-upload","href":"/api-reference/add-library/upload-a-microsoft-word-document"},{"title":"Add an llms.txt file","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/llmstxt","href":"/api-reference/add-library/add-an-llmstxt-file"},{"title":"Add a website","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/website","href":"/api-reference/add-library/add-a-website"},{"title":"Add a Confluence space","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/confluence","href":"/api-reference/add-library/add-a-confluence-space"},{"title":"Add Notion pages","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/notion","href":"/api-reference/add-library/add-notion-pages"},{"title":"Add Google Drive files and folders","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/add/google-drive","href":"/api-reference/add-library/add-google-drive-files-and-folders"}]},{"group":"Teamspaces","pages":[{"title":"List teamspaces","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces","href":"/api-reference/teamspaces/list-teamspaces"},{"title":"Get a teamspace","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}","href":"/api-reference/teamspaces/get-a-teamspace"}]},{"group":"Teamspace Admin","pages":[{"title":"List members and invitations","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/members","href":"/api-reference/teamspace-admin/list-members-and-invitations"},{"title":"Invite a member","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/members","href":"/api-reference/teamspace-admin/invite-a-member"},{"title":"Remove a member or leave","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/members/{memberId}","href":"/api-reference/teamspace-admin/remove-a-member-or-leave"},{"title":"Change a member's role","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json patch /v2/teamspaces/{teamspaceId}/members/{memberId}","href":"/api-reference/teamspace-admin/change-a-members-role"},{"title":"Cancel an invitation","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/invitations/{invitationId}","href":"/api-reference/teamspace-admin/cancel-an-invitation"},{"title":"Change an invitation's role","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json patch /v2/teamspaces/{teamspaceId}/invitations/{invitationId}","href":"/api-reference/teamspace-admin/change-an-invitations-role"},{"title":"List rules","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/rules","href":"/api-reference/teamspace-admin/list-rules"},{"title":"Create a rule","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/rules","href":"/api-reference/teamspace-admin/create-a-rule"},{"title":"Delete a rule","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/rules/{ruleId}","href":"/api-reference/teamspace-admin/delete-a-rule"},{"title":"Update a rule's text","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json patch /v2/teamspaces/{teamspaceId}/rules/{ruleId}","href":"/api-reference/teamspace-admin/update-a-rules-text"},{"title":"Get library policies","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/policies","href":"/api-reference/teamspace-admin/get-library-policies"},{"title":"Update library policies","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json patch /v2/teamspaces/{teamspaceId}/policies","href":"/api-reference/teamspace-admin/update-library-policies"},{"title":"List library requests","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/library-requests","href":"/api-reference/teamspace-admin/list-library-requests"},{"title":"Request a library filter change","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/library-requests","href":"/api-reference/teamspace-admin/request-a-library-filter-change"},{"title":"Reject a library request","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/library-requests/{requestId}","href":"/api-reference/teamspace-admin/reject-a-library-request"},{"title":"Approve a library request","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/library-requests/{requestId}/approve","href":"/api-reference/teamspace-admin/approve-a-library-request"},{"title":"Get usage and cost","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/usage","href":"/api-reference/teamspace-admin/get-usage-and-cost"},{"title":"Get the spending limit","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/spending-limit","href":"/api-reference/teamspace-admin/get-the-spending-limit"},{"title":"Set the spending limit","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json put /v2/teamspaces/{teamspaceId}/spending-limit","href":"/api-reference/teamspace-admin/set-the-spending-limit"},{"title":"Get the invite link","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/invite-link","href":"/api-reference/teamspace-admin/get-the-invite-link"},{"title":"Reset the invite link","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json put /v2/teamspaces/{teamspaceId}/invite-link","href":"/api-reference/teamspace-admin/reset-the-invite-link"},{"title":"Create the invite link","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/invite-link","href":"/api-reference/teamspace-admin/create-the-invite-link"},{"title":"Disable the invite link","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/invite-link","href":"/api-reference/teamspace-admin/disable-the-invite-link"}]},{"group":"Teamspace Libraries","pages":[{"title":"List libraries","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/libraries","href":"/api-reference/teamspace-libraries/list-libraries"},{"title":"Add a library","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/libraries","href":"/api-reference/teamspace-libraries/add-a-library"},{"title":"Get a library","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}","href":"/api-reference/teamspace-libraries/get-a-library"},{"title":"Remove a library","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}","href":"/api-reference/teamspace-libraries/remove-a-library"},{"title":"Update library settings","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json patch /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}","href":"/api-reference/teamspace-libraries/update-library-settings"},{"title":"Refresh a library","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/refresh","href":"/api-reference/teamspace-libraries/refresh-a-library"},{"title":"Add a version","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/versions","href":"/api-reference/teamspace-libraries/add-a-version"},{"title":"Delete a version","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/versions/{version}","href":"/api-reference/teamspace-libraries/delete-a-version"},{"title":"Get claim instructions","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/claim","href":"/api-reference/teamspace-libraries/get-claim-instructions"},{"title":"Verify a claim","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/claim","href":"/api-reference/teamspace-libraries/verify-a-claim"},{"title":"Get library analytics","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/analytics","href":"/api-reference/teamspace-libraries/get-library-analytics"},{"title":"List library suggestions","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/suggestions","href":"/api-reference/teamspace-libraries/list-library-suggestions"},{"title":"List library benchmarks","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/benchmarks","href":"/api-reference/teamspace-libraries/list-library-benchmarks"},{"title":"Set library visibility","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/visibility","href":"/api-reference/teamspace-libraries/set-library-visibility"},{"title":"Redirect the library","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/redirect","href":"/api-reference/teamspace-libraries/redirect-the-library"},{"title":"Remove the redirect","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/redirect","href":"/api-reference/teamspace-libraries/remove-the-redirect"},{"title":"Get chat widget settings","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/widget","href":"/api-reference/teamspace-libraries/get-chat-widget-settings"},{"title":"Update chat widget settings","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json put /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/widget","href":"/api-reference/teamspace-libraries/update-chat-widget-settings"},{"title":"Check verification","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/verification","href":"/api-reference/teamspace-libraries/check-verification"},{"title":"Apply for verification","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/verification","href":"/api-reference/teamspace-libraries/apply-for-verification"},{"title":"Block the library","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/block","href":"/api-reference/teamspace-libraries/block-the-library"},{"title":"Transfer ownership","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/libraries/{owner}/{repo}/transfer","href":"/api-reference/teamspace-libraries/transfer-ownership"}]},{"group":"Docs7 Sites","pages":[{"title":"List Docs7 sites","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites","href":"/api-reference/docs7-sites/list-docs7-sites"},{"title":"Add a Docs7 site","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/sites","href":"/api-reference/docs7-sites/add-a-docs7-site"},{"title":"Get a Docs7 site","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}","href":"/api-reference/docs7-sites/get-a-docs7-site"},{"title":"Delete a Docs7 site","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/sites/{siteId}","href":"/api-reference/docs7-sites/delete-a-docs7-site"},{"title":"Update a Docs7 site","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json patch /v2/teamspaces/{teamspaceId}/sites/{siteId}","href":"/api-reference/docs7-sites/update-a-docs7-site"},{"title":"Check a custom domain again","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/sites/{siteId}/domain/refresh","href":"/api-reference/docs7-sites/check-a-custom-domain-again"},{"title":"List deployments","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/deployments","href":"/api-reference/docs7-sites/list-deployments"},{"title":"Start a deployment","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/sites/{siteId}/deployments","href":"/api-reference/docs7-sites/start-a-deployment"},{"title":"List CLI site deployments","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/local-deployments","href":"/api-reference/docs7-sites/list-cli-site-deployments"},{"title":"Get a deployment","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/deployments/{deploymentId}","href":"/api-reference/docs7-sites/get-a-deployment"},{"title":"Get build logs","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/deployments/{deploymentId}/logs","href":"/api-reference/docs7-sites/get-build-logs"},{"title":"Get a build health report","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/deployments/{deploymentId}/health","href":"/api-reference/docs7-sites/get-a-build-health-report"},{"title":"Get a build origin","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/deployments/{deploymentId}/origin","href":"/api-reference/docs7-sites/get-a-build-origin"},{"title":"Delete a branch preview","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/sites/{siteId}/previews","href":"/api-reference/docs7-sites/delete-a-branch-preview"},{"title":"List agent runs","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/agent-runs","href":"/api-reference/docs7-sites/list-agent-runs"},{"title":"Get agent usage","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/agent-usage","href":"/api-reference/docs7-sites/get-agent-usage"},{"title":"List feature requests","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/feature-requests","href":"/api-reference/docs7-sites/list-feature-requests"},{"title":"Delete a feature request","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/sites/{siteId}/feature-requests","href":"/api-reference/docs7-sites/delete-a-feature-request"},{"title":"Ship or reopen a feature request","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json patch /v2/teamspaces/{teamspaceId}/sites/{siteId}/feature-requests","href":"/api-reference/docs7-sites/ship-or-reopen-a-feature-request"},{"title":"Get GitHub App access","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/github","href":"/api-reference/docs7-sites/get-github-app-access"},{"title":"Get the way to hosting","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/migration","href":"/api-reference/docs7-sites/get-the-way-to-hosting"},{"title":"Check the analytics script","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics-script","href":"/api-reference/docs7-sites/check-the-analytics-script"},{"title":"List open pull requests","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/pull-requests","href":"/api-reference/docs7-sites/list-open-pull-requests"},{"title":"List agent pull requests","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/agent-pull-requests","href":"/api-reference/docs7-sites/list-agent-pull-requests"},{"title":"Connect a CLI site to GitHub","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/sites/{siteId}/connect","href":"/api-reference/docs7-sites/connect-a-cli-site-to-github"},{"title":"Get Example Check variables","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/example-check/settings","href":"/api-reference/docs7-sites/get-example-check-variables"},{"title":"Replace Example Check variables","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json put /v2/teamspaces/{teamspaceId}/sites/{siteId}/example-check/settings","href":"/api-reference/docs7-sites/replace-example-check-variables"},{"title":"List Example Check runs","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/example-check/checks","href":"/api-reference/docs7-sites/list-example-check-runs"}]},{"group":"Docs7 Analytics","pages":[{"title":"Get visitor analytics","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/humans","href":"/api-reference/docs7-analytics/get-visitor-analytics"},{"title":"Get AI crawler analytics","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/ai-crawlers","href":"/api-reference/docs7-analytics/get-ai-crawler-analytics"},{"title":"Get top AI paths","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/top-paths","href":"/api-reference/docs7-analytics/get-top-ai-paths"},{"title":"Get recent AI requests","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/recent-requests","href":"/api-reference/docs7-analytics/get-recent-ai-requests"},{"title":"Get search and question analytics","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/queries","href":"/api-reference/docs7-analytics/get-search-and-question-analytics"},{"title":"Get page feedback analytics","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/feedback","href":"/api-reference/docs7-analytics/get-page-feedback-analytics"},{"title":"Explore analytics records","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/explore","href":"/api-reference/docs7-analytics/explore-analytics-records"},{"title":"Get an assistant conversation","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/sites/{siteId}/analytics/conversation","href":"/api-reference/docs7-analytics/get-an-assistant-conversation"}]},{"group":"Ask Sites","pages":[{"title":"List Ask sites","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/ask-sites","href":"/api-reference/ask-sites/list-ask-sites"},{"title":"Add an Ask site","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/ask-sites","href":"/api-reference/ask-sites/add-an-ask-site"},{"title":"Get an Ask site","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}","href":"/api-reference/ask-sites/get-an-ask-site"},{"title":"Remove an Ask site","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json delete /v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}","href":"/api-reference/ask-sites/remove-an-ask-site"},{"title":"Verify an Ask site","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json post /v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/verify","href":"/api-reference/ask-sites/verify-an-ask-site"},{"title":"Get Ask site analytics","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/analytics","href":"/api-reference/ask-sites/get-ask-site-analytics"},{"title":"List Ask site questions","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/questions","href":"/api-reference/ask-sites/list-ask-site-questions"},{"title":"Get the answer to an Ask question","deprecated":null,"version":null,"openapi":"https://context7.com/openapi.json get /v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/questions/{questionId}","href":"/api-reference/ask-sites/get-the-answer-to-an-ask-question"}]}]}]},{"group":"SDKs","expanded":false,"pages":[{"title":"Agentic Tools","sidebarTitle":"Agentic Tools","href":"/agentic-tools"},{"group":"TypeScript","expanded":false,"pages":[{"title":"Getting Started","href":"/sdks/ts/getting-started"},{"group":"Commands","expanded":false,"pages":[{"title":"Search","href":"/sdks/ts/commands/search"},{"title":"Search Library","href":"/sdks/ts/commands/search-library"},{"title":"Get Context","href":"/sdks/ts/commands/get-context"}]}]},{"group":"Vercel AI SDK","expanded":false,"pages":[{"title":"Getting Started","sidebarTitle":"Getting Started","href":"/agentic-tools/ai-sdk/getting-started"},{"group":"Tools","expanded":false,"pages":[{"title":"resolveLibraryId","sidebarTitle":"resolveLibraryId","href":"/agentic-tools/ai-sdk/tools/resolve-library-id"},{"title":"queryDocs","sidebarTitle":"queryDocs","href":"/agentic-tools/ai-sdk/tools/query-docs"}]},{"group":"Agents","expanded":false,"pages":[{"title":"Context7Agent","sidebarTitle":"Context7Agent","href":"/agentic-tools/ai-sdk/agents/context7-agent"}]}]}]},{"group":"Integrations","expanded":false,"pages":[{"title":"GitHub Actions","sidebarTitle":"GitHub Actions","href":"/integrations/github-actions"},{"title":"CodeRabbit","sidebarTitle":"CodeRabbit","href":"/integrations/code-rabbit"},{"title":"Factory AI","sidebarTitle":"Factory AI","href":"/integrations/factory-ai"},{"title":"Tembo","sidebarTitle":"Tembo","href":"/integrations/tembo"},{"title":"Mastra","sidebarTitle":"Mastra","href":"/integrations/mastra"},{"title":"eve","sidebarTitle":"eve","href":"/integrations/eve"}]},{"group":"Resources","expanded":false,"pages":[{"title":"Developer Guide","href":"/resources/developer"},{"title":"Troubleshooting","href":"/resources/troubleshooting"},{"title":"Feature Requests","href":"/resources/feature-requests"}]}]}]},{"tab":"Docs7","pages":[{"title":"Docs7","href":"/docs7/overview"}]}]},"basePath":"","title":"Get documentation context - Context7 MCP","deploymentId":"dpl_GdAzCmzmx9W4gre8gBQCspoLrBzA","buildId":"dpl_GdAzCmzmx9W4gre8gBQCspoLrBzA","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D6BRPibu.js","snippetPresets-DsVotmIn.js","utils-JkySM0S9.js","style-to-object-BY3JEAdk.js","utils-2LVMUG-b.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-Cu4GBcqW.js","conditional-requirements-CFM0id0Q.js","cloneDeep-E7nJO2ao.js","_Uint8Array-CrqfV1l9.js","isObject-FP1Yky1u.js","ApiExamples-BZGAm2ku.js","usePlaygroundInputsStore-CPGdvGcU.js","shallow-RUq8jv1c.js","isEqual-Biqx0dfZ.js","CodeSnippets-DRItjFNm.js","CodeSnippet-DCGpIA6_.js","use-playground-group-access-D3hf_5DD.js","Page-Bz_ZNFmj.js","api-description-markdown-4VF3VdSe.js","DynamicMarkdown-CG1SzpW8.js","SectionHeading-Qkn3p9WH.js","MethodPill-1rLYbtHF.js","getPastedJson-rsbWFJUH.js","Check2Icon-DYVgxsyH.js","axios-CsQoIw0U.js","Markdown-fnczw8FV.js","AssistantPageLink-BWJlpE1a.js","dist-DmLaGBKJ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}