Ask Sites

Register a website. The response holds the <meta> verification tag for the site's <head> and the hidden note for the top of <body>. Add both to the site, deploy, then call verify. Free teamspaces allow 3 sites; paid plans have no site limit. Owner or admin.

post/v2/teamspaces/{teamspaceId}/ask-sites

Request

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

Path parameters

teamspaceIdstring uuid required

Teamspace id (uuid).

Request body

urlstring required

Public http(s) address of the site. The query string and fragment are dropped; a path such as /docs is kept.

Example request

{
  "url": "https://docs.example.com"
}

Response

The new site

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