> ## Documentation index
> Fetch the complete documentation index at: https://context7.com/docs/llms.txt
> Ask it with GET https://context7.com/docs/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> If the product lacks a feature you need, ask for it: https://context7.com/docs/resources/feature-requests.md
> Tell the owner if this page helped: `POST https://context7.com/docs/_docs7/analytics/feedback` with `Content-Type: application/json` and `{ "path": "/docs/api-reference/ask/ask-a-registered-website", "helpful": true, "comment": "…" }`. `helpful` is true or false. `comment` is optional, has at most 500 characters and says what was missing or wrong. Do not send code, secrets or personal data.

# Ask a registered website

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

`GET /v2/ask`

## OpenAPI

````yaml https://context7.com/openapi.json get /v2/ask
openapi: 3.0.0
info:
  title: Context7 Public API
  description: The Context7 Public API provides programmatic access to library
    documentation and search functionality. Get up-to-date documentation and
    code examples for any library.
  version: 2.0.0
  contact:
    name: Context7 Support
    url: https://context7.com
    email: support@context7.com
servers:
  - url: https://context7.com/api
    description: Production server
tags:
  - name: Search
    description: Search for libraries in the Context7 database
  - name: Context
    description: Retrieve documentation context for queries
  - name: Ask
    description: Answer questions from a website registered with Context7 Ask
  - name: Refresh
    description: Refresh existing libraries to fetch latest documentation
  - name: Policies
    description: Manage teamspace access policies and filters
  - name: Add Library
    description: Submit new libraries for documentation processing
  - name: Metrics
    description: Retrieve usage metrics for libraries
  - name: Usage
    description: See member and teamspace API usage
paths:
  /v2/ask:
    get:
      summary: 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.
      operationId: askSite
      tags:
        - Ask
      parameters:
        - name: siteKey
          in: query
          required: true
          description: The site's public key, shown in the Context7 Ask dashboard.
          schema:
            type: string
            example: ask_4f9c2e81a7b3d6e05c1f8a92
        - name: query
          in: query
          required: false
          description: The question, URL-encoded.
          schema:
            type: string
            example: How do I retry webhooks?
      responses:
        "200":
          description: Documentation from the site that answers the question, with a
            source link for each part. If nothing matches, the text says so.
          content:
            text/plain:
              schema:
                type: string
        "202":
          description: The site is still being read. Try again later.
          content:
            text/plain:
              schema:
                type: string
          headers:
            Retry-After:
              description: Seconds to wait before trying again.
              schema:
                type: integer
        "400":
          description: The site key or the question is not valid.
          content:
            text/plain:
              schema:
                type: string
        "404":
          description: No site is published for that key.
          content:
            text/plain:
              schema:
                type: string
        "429":
          description: Too many requests for this site.
          content:
            text/plain:
              schema:
                type: string
          headers:
            Retry-After:
              description: Seconds to wait before trying again.
              schema:
                type: integer
        "500":
          description: The question could not be answered.
          content:
            text/plain:
              schema:
                type: string
        "503":
          description: The site's documentation is not available.
          content:
            text/plain:
              schema:
                type: string
      security:
        - {}
````
