Ask Sites
Verify an Ask site
Changed onFetch 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.
post/v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/verify
Request
- Base URLhttps://context7.com/api
- URLhttps://context7.com/api/v2/teamspaces/{teamspaceId}/ask-sites/{siteKey}/verify
- AuthHTTP bearer
Path parameters
teamspaceIdstring uuid required
Teamspace id (uuid).
siteKeystring required
The site's public key, which is also its id.
Response
The check result
Example response
{
"data": {
"siteKey": "ask_0123456789abcdef01234567",
"url": "https://docs.example.com",
"hostname": "docs.example.com",
"indexStatus": {
"library": {
"name": "/websites/docs_example_com"
}
},
"verificationTag": "<meta name=\"context7-site-verification\" content=\"ask_0123456789abcdef01234567\">",
"endpoint": "https://context7.com/api/v2/ask?siteKey=ask_0123456789abcdef01234567"
}
}Changes
- info
endpoint added
- info