---
title: "Verify an Ask site"
method: POST
path: "/v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/verify"
tags: ["Ask Sites"]
---

# Verify an Ask site

`POST /v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/verify`

## Request

- Base URL: `https://context7.com/api`
- URL: `https://context7.com/api/v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/verify`
- Auth: HTTP bearer

Fetch the site's URL and look for the verification tag in `<head>` and the note (with this site's endpoint) in `<body>`; both are required. A site that does not verify is not an error: the response is 200 with `verified: false` and the reason in `data.verification.reason`. A verified site stays verified. Verification starts indexing the site into Context7 in the background; read `data.indexStatus` (or get the site) to follow it. Calling verify again after a failed index starts a new one. Owner or admin.

## Path parameters

- `teamspaceId` string, uuid, required
- `siteKey` string, required

## Response `200`

The check result

- AskVerifyResponse
  - `verified` boolean, required
  - `data` AskSite, required
    - `siteKey` string, required: Public site key, also the site's id.
    - `url` string, required
    - `hostname` string, required
    - `verification` union, required: Where the site stands in the ownership check.
      - object
        - `kind` 'pending', required
      - object
        - `kind` 'verified', required
        - `verifiedAt` string, date-time, required
      - object
        - `kind` 'failed', required
        - `reason` string, required: What to fix, in words for the site owner.
        - `checkedAt` string, date-time, required
    - `indexStatus` union, required: Indexing of the site into Context7. `pending` until the site is verified and submitted; `submitted` while the parser works; `ready` when the library is finalized; `failed` with a reason (verify again to retry).
      - object
        - `kind` 'pending', required
      - object
        - `kind` 'submitted', required
        - `library` AskLibrary, required
          - `name` string, required: Context7 library id.
          - `title` string, required
          - `description` string, nullable, required
          - `url` string, required
      - object
        - `kind` 'ready', required
        - `library` AskLibrary, required
          - `name` string, required: Context7 library id.
          - `title` string, required
          - `description` string, nullable, required
          - `url` string, required
      - object
        - `kind` 'failed', required
        - `reason` string, required
        - `library` AskLibrary, required
          - `name` string, required: Context7 library id.
          - `title` string, required
          - `description` string, nullable, required
          - `url` string, required
    - `verificationTag` string, required: Required. Add it to the server-rendered `<head>` of every page under `url`. Verify checks for it.
    - `snippet` string, required: Required. The hidden note for agents: an HTML block to add at the top of `<body>` in the shared server-rendered layout. Verify checks for it. Keep the `data-context7-ask` attribute. Do not render it with client-side JavaScript.
    - `markdown` string, required: The same note as a Markdown `## Search` section, for `llms.txt`, `llms-full.txt` and Markdown pages, if the site serves them.
    - `endpoint` string, required: The site's Ask endpoint. Agents append `&query=<URL-encoded question>`.

## Other responses

- `400`: Invalid teamspace id or parameters
- `401`: Unauthorized - Invalid or missing API key
- `403`: Owner or admin role required, or the key belongs to another teamspace
- `404`: No site with this key in this teamspace
- `409`: The site changed during the check
- `500`: Internal Server Error

## Changes

- **2026-10-22** `e17589fd8767`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/context7/apis/context7-public-api/changes/v2/teamspaces/:teamspaceId/ask-sites/:siteKey/verify/post.md)

---

[API](https://skmtc.dev/context7/apis/context7-public-api.md) - [All operations](https://skmtc.dev/context7/apis/context7-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/context7/apis/context7-public-api/revisions/945f7834fa8c?raw)
